Search code examples
visual-studio-2008iiscassini

How to change web server from iis to cassini without loading project to VS?


I want to change webserver of a project from IIS to cassini. I can't load my web project to VS. VS gives this error:

enter image description here

Can I change webserver option without loading project.

Thanks for your helps.


Solution

  • Web project files in Visual Studio are Xml files. Consequently, IIS vs Cassini settings are stored in plain sight Xml. You can programmatically modify them using only any Xml api.

    There is an example of such a work here: Programmatically change Web project settings from dynamic port to static, although it's not changing the web server type, it's exactly the same idea.