Partager via


VS 2005 not loading project on IIS 7 and Vista

If you get this error when loading a Web Application project on Visual Studio 2005 running on Vista and IIS 7 -

"Unable to read the project file 'xxx.csproj'. The Web Application Project xxx is configured to use IIS. To access local IIS Web sites, you must install all of the following components:

Internet Information Services.

IIS 6 Metabase and IIS 6 Configuration Compatibility

ASP.Net

In addition, you must run Visual Studio in the context of an administrator account........"

 

IIS 7 error on VS 2005 and Vista

Do the following -

Run VS.Net 2005 as Administrator - On the VS.Net 2005 shortcut, right click, Properties-Compatability and check the Run as administrator box is checked.

Check if ASP.NET is installed: Go to Control Panel - Programs and Features - Turn Windows features on or off - Internet Information Services -World Wide Web Services - Application Development Features - Check ASP.Net option.  

Make sure the IIS 6 compatibility is installed: Go to Control Panel - Programs and Features - Turn Windows features on or off - Internet Information Services - Web Management Tools - IIS 6 Management Compatibility - Check all of them.

Comments

  • Anonymous
    July 14, 2007
    I have done all that's required and am still getting this error. I can access the local website with the browser but I cannot open it with VS. Running clean install of Vista Business with VS2005. All SPs and updates installed. Any help appreciated. Andrew

  • Anonymous
    July 14, 2007
    Are you getting the same error as above? That error message is cryptic and generic at the same time. There may be many possible errors types with this same message. If you have not found a solution already, I would post in iis.net forums. Here are a few links I found on IIS.net forums - http://forums.iis.net/t/1073894.aspx http://forums.iis.net/t/1037444.aspx http://forums.iis.net/blogs/mvolo/archive/2006/12/28/fix-problems-with-visual-studio-f5-debugging-of-asp-net-applications-on-iis7-vista.aspx Hope this helps.

  • Anonymous
    October 16, 2007
    The comment has been removed

  • Anonymous
    October 25, 2007
    VS 2005 used to work perfect but out of the blue I started getting the error when I try to open any of the solutions I have successfully created and worked with in the past. I have not installed anything else to cause and I double checked the troubleshoot list: ASP.NET and IIS are installed and I run VS 2005 as an admin. Anyone has an idea what may have caused it?

  • Anonymous
    October 25, 2007
    Actually I reviewed Program and Features and the last application I installed was Silverlight...

  • Anonymous
    February 07, 2008
    PingBack from http://christianpayne.com.au/2008/02/08/vs-2005-not-loading-project-on-iis-7-and-vista/

  • Anonymous
    March 23, 2008
    thanx..... i was also getting this error.... working on it... hope it gets solved....

  • Anonymous
    March 26, 2008
    Thanks alot. It worked for me.

  • Anonymous
    April 24, 2008
    Thank you so much.  Have been struggling all day.  This fixed my issue.  Really appreciate it.

  • Anonymous
    May 06, 2008
    I had the same error and I fixed it. I had other issues with Vista SP1, VS 2005 and IIS 7 and I have written a post here http://developershelf.blogspot.com/2008/05/problem-loading-iis7-hosted-wap.html

  • Anonymous
    June 10, 2008
    PingBack from http://javon.yoursitedesigns.com/solutionforprogramsnotloadingonvista.html

  • Anonymous
    January 03, 2009
    Great stuff. This solved the problem for me. Have a great day dude!

  • Anonymous
    March 25, 2009
    If it weren't for dearest GOOGLE, I would never have found this!  MSDN just ignores it OWN blogs in searches.  I am happy to report that I am now able to create web sites on Vista x64 using VS2008!!!! Kindest regards, Smiling Philip

  • Anonymous
    May 11, 2009
    Thank you Piyush Shah, it worked perfectly! The error msg said exactly what to do and I chose to ignore it and search for this instead, Go figure?

  • Anonymous
    July 22, 2009
    This worked, once I followed the instructions exactly. Thanks!

  • Anonymous
    December 01, 2009
    Piyush, this was very helpful, thanks for posting it!  I was running into the same problem trying to open an ASP.NET project under Windows 7 x64 in Visual Studio 2008; installing "IIS 6 Metabase and IIS 6 Configuration Compatibility" solved the issue.  (Initially I hadn't realized that this was something that I could install via "Add/Remove Windows Features.")

  • Anonymous
    March 22, 2010
    Thanks. Still useful information in March, 2010.