SharpDevelop Classic ASP.NET websites using IIS Express


Today I'm going to post something on how to create & debug ASP.NET websites using IIS express.

1. Download IIS Express from here

this will going to install in C:\Program Files\IIS Express

2. Register ASP.NET using "aspnet_regiis /i" tool - this is in c:\program files\Microsoft .NET\Framework\v4.0.***

3. Create a ASP.NET website in SharpDevelop

4. Create your own IIS express applicationhost.config file (I put in C:\) - use an existing one from "C:\Program Files\IIS Express\config\templates\PersonalWebServer"

5 Modify the site element:


            <site name="testaspnet" id="1" serverAutoStart="true">

                <application path="/">

                    <virtualDirectory path="/" physicalPath="C:\Documents and Settings\Administrator\My Documents\SharpDevelop Projects\test\testaspnet" />



                    <binding protocol="http" bindingInformation=":80:localhost" />



6. At project properties, at Debug tab set "Start external program" to "C:\Program Files\IIS Express\iisexpress.exe" and set "Command line arguments" to "/config:C:\applicationhost.config /siteid:1"

7. Press F5 and see IIS Express starting.

8. Click on the application menu and see it in browser. Click on the button to debug it.


That's it! Have fun!

Published Tuesday, December 28, 2010 5:19 PM by Eusebiu
Filed under: ,


No Comments