---
title: "Unable to create the Website...To access local IIS Websites, you must run Visual"
author: "lexinquan"
date: "2011-06-21T15:29:30Z"
tags: ["Access", "IIS", "ITeye", "Microsoft"]
categories: ["编程语言"]
slug: "unable-to-create-the-website-to-access-local-iis-websites-you-must-run-visual"
draft: false
lastmod: "2011-06-21T15:29:30Z"
id: 1099727
url: "https://lexinquan.iteye.com/blog/1099727"
---

问题:Unable to create the Website...To access local IIS Websites, you must run Visual Studio in the context of an administrator account

![](http://dl.iteye.com/upload/picture/pic/92739/6c60cd91-6ccd-3466-ac63-0dc329eddffb.png)

原因查找：
从提示信息看就是没有权限，可是登录帐号确实是administrator。原来在window 7/vista中默认情况下并没有运行在admin权限下，即使是登录帐号是administrator。那么vs中添加管理员权限即可。


解决方法：
在所有程序中找到microsoft visual studio 2008/2010右键“Run as Administrator”即可。