2013-02-24 108 views
0

我正在使用Visual Studio Web开发人员4.0,其中我正在创建本地ISS托管的网站。本地IIS网站错误

我的问题是当我打开从Visual Studio我得到错误,如网站:

ASP.NET 4.0 has not been registered on the webserver. You need to manually configure your web server for asp.net 4.0 in order for your site to run correctly... 

当我试图成为一个调试的网站,我得到的错误:

Unable to start debugging on the server. Could not start asp.net debugging. More information my available by starting the project without debugging. 

然后我浏览到我的启动页面无需调试,然后在浏览器中的错误是

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. 

我曾尝试使用aspnet_regiis -1注册asp.net。我使用的是Windows 8的

+1

你真的使用-1或实际上是-i吗? – Tahbaza 2013-02-24 02:50:35

回答

0

你有两个选择:

  1. 手动配置Web服务器的asp.net 4.0
  2. 重新安装.NET框架

建议第二。