iis6

Catch IIS level error to handle in ASP.NET

I am developing an ASP.NET site with C# on IIS 7, but I hope for an answer that will apply to IIS 6 as well. Part of this site is the ability to upload up to 5 images at a time. I have a nice algorithm to resize the image that is uploaded to my optimal size and ratio. So the only real size limitation I have is during the initial upload...

ASP.NET MVC on IIS6 rendering issue

I have a small asp.net mvc app running on WIN2k3 and IIS6. I'm using a wildcard mapping under the application settings in IIS as described in this article http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx . The application works fine under my local asp.net development server. When I publish from VS2008 out to ...

IIS 6.0 Load Balancing and ASP.NET In-Proc Session

We have three web servers in our web farm that are load balanced using the Network Load Balancing Manager in Windows 2003. The sites that run on these boxes use In-Proc ASP.NET session. Our assumption is that the balancing uses a "sticky" session because users seem to be assigned to a given server during their use of the application as...

Strange IIS Windows Authentication behavior

I have an ASP.NET 3.5 web service (old school SOAP, not WCF) running on two servers set up identically in IIS 6.0. The Authentication/Access control is set up as follows: Enable Anonymous Access = False Integrated Windows authentication = True Digest authentication for Windows domain servers = False Basic authentication = False .NET ...

64-bit php timestamp issue

Need to be able to use dates beyond the 32-bit timestamp limit so upgraded our server to Windows Server 2003 64-bit version. And running php 5.2.5 64-bit. However still can't use dates beyond the 32-bit limit. echo strtotime("11-11-2050"); returns nothing. Running php on IIS 6.0 using C:\WINDOWS\system32\inetsrv\fcgiext.dll Let me ...

How to deploy WCF service on IIS 6.0

I have IIS 6.0 on Windows Server 2003. I installed .NET 3.5 and 4 beta 2. "Normal" ASP things are working (perfect). But when I try to navigate to my service (/myServer/MyService.svc) I get a 404. Page not found. To be exact, I got a 404 2 "Web service extension lockdown policy prevents this request." I used ServiceModelReg.exe /ia t...

C# - is there a way to get the local path of the Default FTP site?

Hi, Is there a way to get the local path of the Default FTP site (in IIS) programmatically? Like C:\program files\ftproot, shown below: I'd imagine it would be something like: DirectoryEntry ftproot = new DirectoryEntry("IIS://localhost/MSFTPSVC/1/Root"); string directory; // = ftproot.something Any ideas? Edit: This would be f...

How can I add extra information to IIS logfile though ISAPI filter?

I am writing an ISAPI filter which provides authentication services. I would like to ensure that any requests I allow through have some additional information logged in the IIS logfile. This will include details on the logged in user to allow later stats generation. In Apache, I have accomplished this by adding a named "note" the the re...

Server with Load Balancing is redirecting to wrong page

Hi! i'm having a problem using Load-Balancing on my server (using IIS 6). I have a Manager Website that works correctly most part of the time, but sometimes when i go to another page inside this manager, instead of redirecting to the correct page, it redirects to the login page of it. I don't think this is a timeout problem, because if ...

MVC - FilePathResult Not working in IIS6

Hi, in my project I have a few actions for specifically returning files (pdf/excel) within my view using FilePathResult. Unfortunately my hosting is currently in IIS6 and while the routing is working by using wildcard mapping for aspnet_isapi.dll the file links simply arent. Is there any way to get these to work with IIS6 ...

Change script execute permissions of a directory in IIS6 dynamically thru ASP.

This is kind of an advanced problem, hopefully one of you asp/VB gurus will have a suggestion. I am trying to dynamically set a folder's execute permissions in IIS6 from an asp page. I have given the server full permissions to make the changes necessary. When I run the code I get: Microsoft VBScript runtime error '800a0046' Permission ...

what happens to asp.net web application (asmx ws) on IIS 6.0 when it's idle for hours or so?

I have an asmx web service and I load bunch of system data to internal data structures. This system data is used to check the validity of requests. However when there is no requests for say 3 hours (maybe less) the initializations are done again. The object that serves the requests has private static bool _initOk variable that contro...

Program to scan ASP.NET projects or IIS 6 site and show bad links?

I've looked around and haven't had much luck locating a program that will search a site for bad / broken links. We have IIS 6 so I can't use Microsoft's IIS 7 SEO offering which supposedly will do that. We use forms auth so I need something that will allow me to store the user/pass stuff needed to navigate past the login page. Many of...

What is the effect of <authentication mode="windows"> in versions of IIS?

I am wondering what the effect of setting <authentication mode="windows"> in the web.config is in different version of IIS. I believe that in IIS 5, it has little to no effect, as all of that is integrated and controlled by the web server. On IIS 6 and 7, I believe that I can set the web server to Anonymous access and then each hosted ...

bulk create websites in IIS 6.0 Management Console

I have a list of about 80 websites that I want to create on a fresh IIS install. There is going to be only one IP and all websites be host-header'd. Is there any tool that will let me do this in one go as I am sure doing it one by one must be the worst option. Any help will be appreciated. ...

IIS: web applications warmup

After IIS reset, first hit taking a long time because AppPool is starting and other .NET components, DB connections are initializing. What would be the best way to warm up IIS applications and preload required components (e.g. GAC Assemblies, WCF, WWF libraries) I'm working on IIS 6, Windows 2003 server x64 (I know there is warmup mo...

Intermittent webservice error

My webservice produces a "Service not available" error first, then when I restart the IIS service it works. When i checked the eventlog I found this error concerning ASP.NET 2.0.50727.0 Event code: 3005 Event message: An unhandled exception has occurred. Event time: 1/13/2010 5:31:02 PM Event time (UTC): 1/13/2010 10:31:02 PM Event...

Running/debugging SMTP Event Sinks under windows 2008

I have an SMTP Event Sink to process incoming SMTP email messages to perform special processing. Under IIS 6/SMTP, this event sink runs as expected. Under IIS 7/SMTP, it does not appear to run, even though it appears to register successfully, as shown below: c:\Program Files\Kryptiq Corporation\GW\Bin>regsvr32 SpoolFilter.dll c:\Progra...

IIS6 hosted WCF service in SSL on nonstandard port, WebInvoke vs WebGet

I have a WCF service hosted in IIS6 with a method called DoSomething that I can access like https://mysite.com:8888/mysvc.svc/DoSomething (note its using https not http..and on a nonstandard port) I have setup wildcard mapping in IIS6. If I decorate DoSomething with a WebGet Attribute in the interface, I access the service method via ...

UrlMapping giving 404 Page not found on IIS but working fine on local server port

Hello guys! Well I am having a problem when I have put my .NET 2.0 web site on IIS 6. I have used UrlMapping to redirect some old urls. It is working fine when I am using it on the VS local server port but when I deploy it to IIS 6, its giving a 404 Page not found error. I've found that in a few forums they are talking about using Wild...