Home > ASP.NET > ASP.NET 2.0 Notes

ASP.NET 2.0 Notes

April 24th, 2009

Here are some notes on installing and configuring ASP.NET with IIS…

If you are installing on Windows XP Pro…

On an XP Pro website you are limited by default to 0 concurrent connections by design, but this can be increased.

First, make sure your default windows script host is set to the console (cscript.exe) one.

cscript //h:cscript

Next, increase the connection limit to 40.

C:\Inetpub\AdminScripts\adsutil set w3svc/MaxConnections 40

Note that 40 is a hard-coded limit; it can’t be increased any further unless you are into serious Windows hacking.

If you are installing on Windows Server 2003…

IIS (6.0) on Windows Server 2003 has some features that IIS (5.1) does not have Windows XP Pro.

When IIS is first installed on Windows Server 2003, it starts out in “highly secure” or “lockdown” mode. This means many of the more sophisticated web service features, such as Active Server Pages (ASP), ASP.NET, Web Distributed Authoring and Versioning (WebDAV) and server-side includes (SSI) are not functional. That’s because all of these features, used for serving dynamic content, present vulnerabilities of their own. In this lockdown mode, FrontPage server extensions don’t work, and only static content can be served. Any attempt to use these features causes a 404 error (file not found). An administrator must enable dynamic content features in the IIS Manager to be able to use these features. The details of this are covered later in this document.

If IIS is installed after .NET 2.0 Framework…

If IIS is installed after the .NET 2.0 Framework, you need to manually configure IIS for ASP.NET 2.0. The details of this are covered below.

Configuring IIS for ASP.NET 2.0

Depending on the order in which the .NET 2.0 Framework and IIS were installed you may need to configure IIS to use .NET 2.0. To do this, in IIS select and right-click the default web site and select Properties. From the Properties dialog, select the ASP.NET tab.


If .NET 2.0 is not listed then open command-prompt in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and run aspnet_regiis with the –i option.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -i

Start installing ASP.NET (2.0.50727).


Finished installing ASP.NET (2.0.50727).

Also, note that if you are installing ASP.NET web services and web applications on Windows Server 2003 then you must also go into the Web Services Extensions of IIS and ensure that ASP.NET 2.0 is allowed.


Categories: ASP.NET Tags: