Unable to create the Web site - To access local IIS Websites... Error

If you have received the error "Unable to create the Website...To access local IIS Websites, you must run Visual Studio in the context of an administrator account.", you must be running Windows Vista and trying to create a website in the local IIS.

I have been encountering this error often although it is well documented (hard to find?)  And time and again, I realize that I need to run Visual Studio under the admin priveleges by elevating it, to create website in the IIS. Hence thought of posting this.

In Windows Vista, by default the applications dont run under the admin priveleges even though you are logged in as an administrator.

To elevate the priveleges, you would require to find Visual Studio from the Start - All Programs - Menu, Right click on the Visual Studio icon and select "Run as administrator", Click "Continue" for the UAC prompt and thereafter you would be able to create websites in the local IIS.

Alternatively, you could also use the built-in cassini webserver to create/host the application in any folder and run it against the ASP.NET Development Server (notice the tiny icon that gets created in your systray) that gets created automatically for running/testing on local machines.

A nice shortcut has been posted by one of our MVPs at http://forums.msdn.microsoft.com/en-US/vsx/thread/501bb098-ccf0-4d6d-933d-dcde58d233e1/  which can be useful to avoid the above steps, everytime.

Cheers !!!

posted @ Sunday, August 24, 2008 9:59 PM

Print

Comments on this entry:

# re: Unable to create the Web site - To access local IIS Websites... Error

Left by SEO Manchester at 8/26/2008 7:29 PM
Gravatar
Wow thanks for this great post

# re: Unable to create the Web site - To access local IIS Websites... Error

Left by Sam at 10/12/2008 5:20 AM
Gravatar
Thanks for the info. It helped me.

# re: Unable to create the Web site - To access local IIS Websites... Error

Left by SEO Services at 11/5/2008 7:28 PM
Gravatar
What a great post... Thanks

# re: Unable to create the Web site - To access local IIS Websites... Error

Left by SEO Company at 1/11/2009 3:32 PM
Gravatar
Great post, thank you.

# re: Unable to create the Web site - To access local IIS Websites... Error

Left by Randy at 3/30/2009 7:22 AM
Gravatar
You are a life saver. I was going nuts trying to figure out what I was doing wrong.

# re: Unable to create the Web site - To access local IIS Websites... Error

Left by kitty at 6/27/2009 12:02 PM
Gravatar
you save my life thanks

# re: Unable to create the Web site - To access local IIS Websites... Error

Left by Tariq Ahmed at 7/13/2009 2:36 AM
Gravatar
thanks a lot. it works :)

# re: Unable to create the Web site - To access local IIS Websites... Error

Left by seo company at 7/29/2009 5:16 PM
Gravatar
Nice post worth the rad

# re: Unable to create the Web site - To access local IIS Websites... Error

Left by Fernando at 8/19/2009 6:28 AM
Gravatar
very very good!!!

# re: Unable to create the Web site - To access local IIS Websites... Error

Left by Chris at 9/15/2009 3:13 AM
Gravatar
Thank you so much for this post!! It was very helpful.

# Right

Left by Ibrahim at 9/30/2009 3:19 AM
Gravatar
Thank You..
You help me

# re: Unable to create the Web site - To access local IIS Websites... Error

Left by Chris at 10/4/2009 2:24 PM
Gravatar
I get this error using Windows XP and im the administraitor... this is annoying :( what do i do?

# Unable to create the Web site - To access local IIS Websites... Error

Left by Portable Tap Dance Floors at 10/12/2009 6:21 PM
Gravatar
Thanks for sharing!

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345