Full web server (IIS 5.1, 7 & IIS Express) support in SharpDevelop


Some time ago, I've started working on supporting IIS (all versions - but tested only on IIS 5.1 in Windows XP and IIS 7.5 in Windows 7 Ultimate 32 bit) in SharpDevelop. Now, basically you can do the classic steps: 

  • create a ASP.NET WebForms application, 
  • go to Debug tab inside Project Properties & set the web server you have installed (IIS full or IIS express) ,
  • create a virtual directory or application,
  • hit F5 & start debugging.
Normally (I know it is not perfect - (yet :)), your default browser should open the default page(default.aspx) or a specific page and the debugger should be attached to the worker process.
Of course, you should grant the access for IIS account on the folder where the ASP.NET app is, register ASP.NET, set the security for the application in IIS and set the ASP.NET version in IIS (for 5.1).
Prerequisites for IIS Express:
  • after installing IIS Express, you have to run it first time manually - it creates some config files necesary for running the apps
  • csproj file must be in the same location as virtual directory path.
DON'T use IIS Express side by side with IIS 7. If so, IIS Express might became the default web server and I don't think you want that (this does not happen if IIS Express is side-by-side with IIS 5.1).
Below, you have some screenshots for IIS Express and IIS 5.1:
IIS Express

IIS 5.1

Web server options

If you encounter any issues with this new feature, I'd like you to post them on the Bug reporting forum in order to fix them as soon as possible! :)

Happy coding!

P.S.: this is available in SD 4.1.

Published Wednesday, January 12, 2011 10:55 AM by Eusebiu


# re: Full web server (IIS 5.1, 7 & IIS Express) support in SharpDevelop

Hi Eusebiu,

Looks pretty awesome work you've been doing there :) I can't wait to give it a try.

Just one thought and that is have you considered bundling CassiniDev (cassinidev.codeplex.com) as an alternative to IIS that way SharpDevelop would be able to support web development even on a machine that hadn't yet had ISS (or ISS Express) installed on it much like Visual Studio does. I believe the licensing is OK (MS-PL) though that is of course for the SharpDevelop team to consider :)



Friday, January 21, 2011 9:53 PM by charlesw

# re: Full web server (IIS 5.1, 7 & IIS Express) support in SharpDevelop

Hey Charles,

I'd like to hear your feedback after trying this feature. :)

I think that bundling CassiniDev is not a major issue... but since every Windows OS comes with IIS also, why bundling CassiniDev?... :)



Friday, January 21, 2011 10:28 PM by Eusebiu

# re: Full web server (IIS 5.1, 7 & IIS Express) support in SharpDevelop

Hey Eusebiu,

Sorry about the late reply. There are a few reasons to include CassiniDev the main one being that it's easier to get up and running quickly as there is no configuration necessary. It also means you don't have to have IIS installed either. As I understand it these are the same reasons why Microsoft includes ASP.NET Development Server in Visual Studio.

I'll have to get back too you with some feedback about what you've currently done a little latter (I'm kinda busy atm).



Tuesday, February 01, 2011 1:02 AM by charlesw