How to upgrade IIS 6 web app, so it opens in visual studio on machine running IIS 7

Triynko picture Triynko · Jul 9, 2009 · Viewed 8.7k times · Source

My web apps created in VS 2008 on Windows Server 2003, refuse to open in VS 2008 on Windows Server 2008.

"The Web Application project 'MyProjectName' is configured to use IIS. To access local IIS Web sites, you must install the following IIS components: IIS 6 Metabase and IIS 6 Configuration Compatibility Authentication".

I want nothing to do with IIS 6, so I am not installing those components. I want pure IIS 7.

Is there an upgrade tool or something I can modify in the project file that will allow them to open in visual studio?

Answer

Triynko picture Triynko · Jul 9, 2009

This is bizarre. The only thing I replace is "<IISUrl> http://localhost/site </IISUrl>"; with "<CustomServerUrl> http://localhost/site </CustomServerUrl>" in the project file, and the project loads and debugs (as admin) just fine.

Why is this change in tag name, which seems to provide the same information -- the project URL -- enough to prevent the entire project from loading. Unacceptable.