iis7

How do I pre-empt IIS StaticFileHandler with my own HttpHandler

Hi there, I'm building a website referencing an assembly that contains several js scripts as embedded resources, some controls which use those scripts and a 'HttpResourcesHandler' that knows how to retrieve those embedded scripts when asked for them. In web.config I have an entry in the section that reads <add verb="*" path="...

Can I programattically define my IIS7 site-bindings (eg. foo.domain.com)?

Hi folks, for my IIS7 website, i've had to go into the IIS7 Services Manager and define all the bindings for the site. Works fine. I was wondering if it's possible to do this programatically in the web.config file instead? I know you can provide a few iis7 settings in there.. wasn't sure if it's possible to also include the bindings? ...

HTTP 400 : detected invalid characters in the URL. IIS decoding URL too early? Whats going on here?

So i have this URL: http://test.com/afolder/who-else-wants-to-make-horror-movies%3f/ which is URL encoded version of : http://test.com/afolder/who-else-wants-to-make-horror-movies?/ But IIS7 throws a 400: HTTP Error 400.0 - Bad Request ASP.NET detected invalid characters in the URL. But why is it doing that if i have correct...

IIS5 or IIS6 Web Application running under IIS7?

I have a web application that runs fine under IIS5 or IIS6. I just installed Vista, which has IIS7. I just copied the entire web app over as-is, no changes to any files. I went into the IIS7 manager and created a web appliction under the Default Web Site and pointed it to the app I copied over. When I try to browse to the app in IE, ...

asp.net custom error page and file without extension

How can i get IIS 7 to return my custom error pages for file without extension? I got it working for file with extension, but when the extension is not specified, i get the generic page. ...

.NET MVC Slow Site

I have a site that is taking around 20 seconds to load every page (no matter what it does) So i put in a /scripts/test.html that isn't part of a route and it still takes this long... no db hit nothing. I renamed the web.config to _web.config and it loads instantly, rename it back... back to around 20-30 second load times. Running the ...

How to keep my ASP.NET app always "alive", and if its a bad idea, why shouldn't I do it?

I've recently deployed an ASP.NET application to my shiny new VPS and while I'm happy with the general performance increase that a VPS can give over a shared hosting solution, I'm unhappy with the startup time of my application. My web application takes a fair amount of time to start up when my client first hits it. I'm not running it i...

How to get operating IP Address of the WEB instance on IIS7

Hi, I have Vista x64 IIS7 running on my dev. machine. I used to use Request.ServerVariables.Get("LOCAL_ADDR") to get the operating instance IP address of the website which was resolving into like 192.168.1.89, however after switching to Vista & IIS7, I started to get ::1 which people say that it is IPv6. How can I get it the old way?...

Error when deploying ASP.NET MVC NHibernate app to IIS7

I have an Asp.Net MVC application that works in the vs.net development web server. When I publish to IIS7 I get the following error. I have spent many hours and still no solution! [NullReferenceException: Object reference not set to an instance of an object.] System.Web.PipelineStepManager.ResumeSteps(Exception error) +929 System...

number of IP bound on website in IIS7

Is there any recommendation or limit to the number of IPs one can bind to a website in IIS7? I have a website that is bound to several IPs (each has it's own SSL certificate) and it seems like the SSL processing on it is becoming really slow ...

May i config healthMonitoring for classic asp in ii7?

I see that for showing error of classic asp in ii7 i must use web.config with configurations for asp.net like this: <system.webServer> <httpErrors errorMode="Detailed" /> <asp scriptErrorSentToBrowser="true" /> </system.webServer> BUT: may i use healthMonitoring in classic asp for getting e...

Clickonce deploy problem with IIS 7

I have a "ClickOnce" application that deploys without any problems from a Win2K3 server and IIS 6. But the same application fails to be deployed from a Windows Server 2008/IIS7, I receive a 404 file not found (on a .config file and not on one of the manifest files) during the installation on a client machine. In the IIS the mime types ...

Disable GZIP compression for IE6 clients.

We need to conditionally disable GZIP compression if user's browser is IE6 (it hangs browser for 5min) in few pages of larger site. Server is IIS7 and has compression for static content turned on - want that compression left working if user agent is not Mozilla/4.0. ASPX code sample anyone? Alternatively, code to conditionally redirect ...

Determine SSL Certificate Expiration Date IIS

I need to determine the expiration date of the SSL certificates on my IIS boxes programatically. Ideally I would want to do this in C#, but if VB script is the only way that is acceptable as well. Environment => IIS versions 6 & 7, .NET 2.0, Windows 2003 & 2008 Thanks ...

Is it possible to simulate subdomain on a development machine?

I am trying to set up a subdomain on my website but i am having a hard time getting it to work. Especially since the only way i can test it is by sending all the files needed from my development machine to the hosting server (and sometimes breaking the website). i am using asp.net on an IIS7 servers Is there an easy way to do the settin...

Mysterious IIS Problem: Site stops serving dynamic pages, no errors in logs

Hi all, This may be the most mysterious problem I've ever encountered. We have an IIS7 install with 3 Web Sites on it, each with it's own Application Pool. Once a day, for about an hour, a specific one of them goes down. What I mean by "goes down" is: It stops responding to requests for dynamic pages (ex. default.aspx) but will ser...

Is it worth it to enable dynamic compression in IIS7 ?

I am trying to find all possible ways I could improve my website performance. I was considering enabling dynamic compression at the server level but was concerned by performance hits (no caching of compressed pages - corruption of files - overhead on the server). Should I just give up on the dynamic compression with IIS 7? are there modu...

ASP.NET: Request.Form is slow!

I have a very strange behavior with Request.Form. Here are two IIS 7 servers running the same ASP.NET application. On the first instance it's all ok. But the second one have very slow performance. Profiler showed that this line: context.Request.Form["id"] takes more than 130 ms each time! Profiler log: 0,60% get_Form - 4536 ms - 6...

Permission Denied error when uploading files in FCKEditor

I recently moved my asp.net appliaction from windows 2003 / IIS 6 to windows IIS7. No other changes, but now the file upload for the fckeditor doesn't work anymore. Anyone know the obvious mistake I made here. :) Thanks ...

Accessing user credentials with PHP on IIS 7

Hi all We are installing WordPress MU onto an IIS 7 sever We need to enable single sign on against the AD. We are happy to code the PHP to auto login / create accounts for the users etc. What we need help with is how to we get the users Credential (username,email,name etc.) from the IIS / windows server into PHP variables so we can ...