Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio can't create web site in IIS

After installing service pack 1 for Visual Studio 2010 cannot create web site in IIS. Here is error message:

---------------------------
Microsoft Visual Studio
---------------------------
Configuring Web http://localhost/MyWebSite for ASP.NET 3.5 failed.
You must manuallyconfigure this site for ASP.NET 3.5 in order for
the site to run correctly. Visual Studio cannot detect whether this
virtual root has been configured for use with ASP.NET 2.0. The likely
cause is that you do not have sufficient priviledges to access the
IIS metabase. You may need to manually configure this site for
ASP.NET 2.0 in order for your site to run correctly.
---------------------------
OK   Help   
---------------------------

Does anybody know how to fix it ? Thanks!

P.S. I'm using windows7 x64.

like image 207
gor Avatar asked Mar 11 '11 12:03

gor


People also ask

How do I enable IIS Express in Visual Studio?

Configure IIS express on visual studioSelect the web application project and open properties -> select the web tab -> under server's select IIS express-> Specify the project URL.


1 Answers

Have you tried run Visual Studio with "Run As Administrator" from right click?

like image 86
Alberto Rubini Avatar answered Oct 14 '22 05:10

Alberto Rubini