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 (17)

    1. andrewstan says:

      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

    2. shahpiyush says:

      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.

    3. Sinewy says:

      Thank GOD!!! I found this page

      Thank you very much

    4. Rafae; says:

      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?

    5. RafaelNenninger says:

      Actually I reviewed Program and Features and the last application I installed was Silverlight…

    6. Rahul says:

      thanx…..

      i was also getting this error….

      working on it… hope it gets solved….

    7. hamid says:

      Thanks alot. It worked for me.

    8. sailakfan says:

      Thank you so much.  Have been struggling all day.  This fixed my issue.  Really appreciate it.

    9. 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

    10. Dave says:

      Great stuff. This solved the problem for me.

      Have a great day dude!

    11. Philip says:

      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

    12. Walter says:

      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?

    13. James says:

      This worked, once I followed the instructions exactly.

      Thanks!

    14. 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.")

    15. Tom von Alten says:

      Thanks. Still useful information in March, 2010.

    Skip to main content