iis

How do I secure a folder used to let users upload files?

I have a folder in my web server used for the users to upload photos using an ASP page. Is it safe enough to give IUSR write permissions to the folder? Must I secure something else? I am afraid of hackers bypassing the ASP page and uploading content directly to the folder. I'm using ASP classic and IIS6 on Windows 2003 Server. The uplo...

What does an IISReset do?

On IIS 6, what does an IIS Reset do? Please compare to recycling an app pool and stopping and starting an ASP.NET web site. If you replace a DLL or edit/replace the web.config on an ASP.NET web site is that the same as stopping and starting that web site? ...

Failed to load resources from resource file.

Get the following error periodically in an IIS application: Failed to load resources from resource file. The full error message in the Application Event Log is: Event Type: Error Event Source: .NET Runtime Event Category: None Event ID: 0 Date: 8/8/2008 Time: 8:8:8 AM User: N/A Computer: BLAH123 D...

Asp.net Reinstalling a DLL into the GAC

I'm trying to reinstall a DLL in the GAC, everything seems to work fine but the web application accessing it still seems to be using the old one. The old DLL is the same version as the new one with only a minor edit, it will be used by 50 different sites so changing the version then changing the reference in the web.config is not a good...

IE6 security login (debugging via VirtualPC)

I am debugging my ASP.NET application on my Windows XP box with a virtual directory set up in IIS (5.1). I am also running VirtualPC with XP and IE6 for testing purposes. When I connect to my real machine from the virtual machine, I enter the URL:http://machinename/projectname. I get a security popup to connect to my machine (which I e...

(IIS/Win2000Pro) Granting Registry read rights to IIS user?

Okay, so I'm running a small test webserver on my private network. I've got a machine running Windows 2000 Pro, and I'm trying to run an ASP.NET app through IIS. I wrote it so that the webpage would use the registry to store certain settings (connection strings, potentially volatile locations of other web services, paths in the local f...

Automated script to zip IIS logs?

I'd like to write a script/batch that will bunch up my daily IIS logs and zip them up by month. ex080801.log which is in the format of ex*yymmdd*.log ex080801.log - ex080831.log gets zipped up and the log files deleted. The reason we do this is because on a heavy site a log file for one day could be 500mb to 1gb so we zip them up whic...

How do I replicate content on a web farm

We have a Windows Server Web Edition 2003 Web Farm. What can we use that handle replication across the servers for: Content & IIS Configuration (App Pools, Virtual Directories, etc...) We will be moving to Windows 2008 in the near future, so I guess what options are there on Windows 2008 as well. ...

Delayed Write Failed on Windows 2003 Clustered Fileshare

I am trying to solve a persistent IO problem when we try to read or write to a Windows 2003 Clustered Fileshare. It is happening regularly and seem to be triggered by traffic. We are writing via .NET's FileStream object. Basically we are writing from a Windows 2003 Server running IIS to a Windows 2003 file share cluster. When writing...

Limiting traffic to SSL version of page only

We have an external service that is currently accessible via the http (port 80, non-SSL) and https (port 443, SSL) addresses. What is the best way to limit connections to only the https address? Is it something we can do via IIS or does it have to be done via code. Additional info: Regular ASP.NET web service (.asmx) running on IIS on ...

How to make 'pretty urls' work in php hosted in IIS?

Is there some way I can use urls like: http://www.blog.com/team-spirit/ instead of http://www.blog.com/?p=122 in a windows hosted php server? ...

Multiple web-sites running in IIS simulatenously

At work, we have multiple branches that we may be working on at any time. Our solution so far as been to create multiple web-sites but you can only run one web-site at a time. This makes switching between branches more of a pain that in should be. I just want to go to the URL, mapped in my hosts file, for that branch and it just work....

Exception in Web Service locks DLL and prevents publishing. Workaround?

I'm using a native DLL (FastImage.dll) in a C# ASP.NET Web Service that sometimes locks (can't delete it---says access denied); this requires stopping IIS to delete the DLL. The inability to delete this DLL in the bin folder of my published Web Service prevents me from publishing successfully (even though it thinks it published successfu...

How can I access a website configured with host headers in IIS on the local machine?

When using host headers to host multiple websites on the same IP address in IIS, is there any way of accessing that website from a browser running on the local machine? This is normally required when a given web component only allows configuration from the local machine. It's also useful when things like ASP.Net's built in error handlin...

How do you implement caching in Linq to SQL?

We've just started using LINQ to SQL at work for our DAL & we haven't really come up with a standard for out caching model. Previously we had being using a base 'DAL' class that implemented a cache manager property that all our DAL classes inherited from, but now we don't have that. I'm wondering if anyone has come up with a 'standard'...

Viewing event log via a web interface

I'd like to be able to view the event log for a series of asp.net websites running on IIS. Can I do this externally, for example, through a web interface? ...

Can IIS 6 serve requests for pages with no extensions?

Is there any way in IIS to map requests to a particular URL with no extension to a given application. For example, in trying to port something from a Java servlet, you might have a URL like this... http://[server]/MyApp/HomePage?some=parameter Ideally I'd like to be able to map everything under MyApp to a particular application, but f...

php mail() not working windows 2003, IIS SMTP

getting this: problem PHP Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [email protected] in c:\inetpub\wwwroot\mailtest.php on line 12 from this page: <?php $to = "[email protected]"; $subject = "test"; $body = "this is a test"; if (mail($to, $subject, $body)){ echo "mail sent"; } ...

What is a good deployment tool for websites on Windows?

I'm looking for something that can copy (preferably only changed) files from a development machine to a staging machine and finally to a set of production machines. A "what if" mode would be nice as would the capability to "rollback" the last deployment. Database migrations aren't a necessary feature. UPDATE: A free/low-cost tool w...

How to ensure that the same thread is used to execute code in IIS?

We have a third party dll that is used in our web service hosted in IIS6. The problem is that once this dll is loaded into memory, the exception AccessViolationException gets thrown if a thread different then the one that created it tries to execute any code within the dll. The worker process is multi threaded and each call to the web se...