iis6

IIS website deployment with subdirectories throwing 404 error for pages in subdirectory

In IIS 6, I am trying to deploy a Web Site project from Visual Studio 2008. This site has a sub-folder with some aspx pages in it. When I deploy the project to the server and navigate to the site, everything works except for the pages that exist in the sub-folder, they throw a 404 error. In IIS, I can navigate the sub-folders and see t...

Using a custom URL rewriter, IIS6, and urls with .htm, .html, etc

I have a custom site I'm building with automatic url rewriting using a custom engine. The rewriting works fine as long as the page url doesn't end in somehting like .htm or .html. For these pages it goes directly to the iis 404 page instead of hitting my rewriting engine first. I have the * wildcard handler in the "Home Directory" sec...

Issues with FastCGI and links containing index.php? versus index.php

On a Windows 2003 server running IIS 6.0 and FastCGI with an ExpressionEngine-powered website, I've encountered an issue where links containing index.php fail unless a question mark is added. The basic issue is that if a link points to "index.php/archive/article", the page fails to load (see below) but it will work when "index.php?/arc...

IIS AppPool error (1013 - W3SVC)

We're getting a number of warnings in the Event Viewer on our IIS installation. We have an AppPool set up which contains two websites (both ColdFusion sites, not .NET). The Event Viewer shows the following warning: A process serving application pool 'HighPriorityApps' exceeded time limits during shut down. The process id was '175540'. ...

How do I deny access to .dll files in a web site (on both IIS 6 and 7)

If I use an URL like http://mysite/myfolder/myfile.dll, I get a dialog "Do you want to open or save this file". Of course, I don't want people to be able to download and disassembly our dll's. How can I deny people accessing such files directly ? ...

Change Default Locale in IIS 6.0

I've got a hosted VPS hosted by a UK hosting company that for some reason is set to US settings. In fact, until recently, the regional settings were 'English - United States'. I've corrected the regional settings, but my application is still working with the wrong date format. See: http://www.albaassoc.com/events/listevents.aspx The de...

How can one IIS6 .NET app appear as subsite of another?

SiteA.com and siteB.com are .NET 2.0 apps on IIS6. SiteA uses SSL. Can I set things up so siteA.com/train gets people to siteB.com? Are there multiple ways to do this? How would a good way be configured? ...

IIS 6 - sort websites by name

In IIS 6 on a Server 2003 box, when I view the list of websites, it doesn't list them in alphabetical order. I'm assuming that it sorts them on their website ID. I have one server that won't be getting upgraded to 2008 for a while and it hosts about 40 websites. It has become quite cumbersome for me to look through the list to find ...

IIS 6.0 Virtual Directory setup

I set up a website and I created a folder names (docs) in the website as Virtual Directory with some documents. Therefore the URL is xxxxxxyyyyzzzz.com/docs The problem is that when i try to access xxxxxxyyyyzzzz.com/docs/1.doc, Authentication is required. Can you tell me how to remove this and leave any user access this folder with a...

PHP warnings cause script to halt on IIS running FastCGI

We are migrating to a new server running Windows 2003 and IIS 6. When my PHP code runs, it has a warning on a particular line (which I'm expecting at the moment but will fix shortly). However, when it hits the warning, it immediately halts processing and returns a 500 error in the HTTP header. Normally, I would expect PHP to output the w...

WCF and Multiple Host Headers

My employers website has multiple hostnames that all hit the same server and we just show different skins for branding purposes. Unfortunately WCF doesn't seem to work well in this situation. I've tried overriding the default host with a custom host factory. That's not an acceptable solution because it needs to work from all hosts, ...

Configure IIS 6 website SSL port programmatically?

I am trying to configure the website SSL port with the certificate for a website within IIS 6.0 programmatically. IIS 7.0 provides the API, ServerManager, to do so, but I am not sure if there is something similar for IIS 6.0 or command line utilities. Thanks in advance! ...

Impersonation and Delegation

I am using impersonation is used to access file on UNC share as below. var ctx = ((WindowsIdentity)HttpContext.Current.User.Identity).Impersonate(); string level = WindowsIdentity.GetCurrent().ImpersonationLevel); On two Windows 2003 servers using IIS6, I am getting different impersonation levels: Delegation on one server and Impe...

SqlClient calls causing "Thread was being aborted at SNINativeMethodWrapper.SNIPacketGetConnection(IntPtr packet)"

I would really appreciate any suggestions, no matter how simple or complex, to help me get this issue isolated and resolved. I have a bit of code that generates small report files. For each file in the collection, a stored proc is executed to get the data via XML reader (its a pretty big result set). When I created all this, and steppe...

How to set up windows authentication just for a single route in ASP.NET MVC on iis6?

I'm developing a web application and I need to mix Forms & Windows authentication together. The approach which I selected is this: authentication method on all the web site has to be forms auth. There is a form page (~/home/Login) to login in via forms auth. The magic (and trouble) is that only one page (say ~/Home/WinLogin) has to hav...

IIS6 is not finding .asp files

Hoping someone can provide an answer with this, although it's not 100% programming related. All of a sudden my IIS6 install on Server 2003 will give me a "404 Not Found" error when I try to load any file ending in .asp. I can see the file there if I turn on directory browsing, but clicking on it immediately gives me a 404. Regular H...

WCF sessions with HTTPS

I cannot figure out how to enable per-session instances for my WCF service while using HTTPS. (I'm not an ASP.NET expert but don't want to use ASP.NET session state if possible.) I am using .NET Framework 3.0. I have arrived at the following contradiction and am hoping that someone can tell me where there is a flaw in the logic. 1) The...

User Powershell to stop 'Default Web Site' in IIS6

I've done several Google searches and can't find a good sample to stop/start the 'Default Web Site' (in II6) using Powershell. This... $server = "localhost" $siteName = "default web site" $iis = [ADSI]"IIS://$server/W3SVC" $site = $iis.psbase.children | where { $_.keyType -eq "IIsWebServer" -AND $_.ServerComment -eq $siteNam...

robots.txt in ASP.NET MVC app returning 404

I've deployed an ASP.NET MVC site with a robots.txt file in the root but when I try and access this url it's returning 404. I have an .xml and a .html file in the root as well and they return valid content. I'm running this on IIS 6. I've tried adding .txt as "text/plain" to the MIME Types but no luck. Suggestions? ...

Setting up passive FTP (IIS6) on Windows Server 2003

I am having trouble setting up passive FTP on IIS 6. I used this instruction: http://www.velikan.net/iis-passive-ftp/ When I tried to upload a file through the FTP, I got the error: 425 Can't open data connection. : /index.html The interesting thing is that from the server, I can see the index.html file is already created but the fi...