Visual Studio中无法在IIS中创建网站 [英] Visual Studio can't create web site in IIS

查看:192
本文介绍了Visual Studio中无法在IIS中创建网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装Service Pack 1的Visual Studio 2010无法在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。我使用的是64位的windows7

P.S. I'm using windows7 x64.

推荐答案

这发生在我身上时,我删除默认的应用程序池。

This happened to me when I deleted the default application pool.

由于采用了<一个href=\"http://connect.microsoft.com/VisualStudio/feedback/details/651902/visual-studio-2010-sp1-changed-default-app-pool-behavior-for-iis-web-application-projects\">Microsoft连接报告,我能够通过解决这一选择一个新的默认应用程序池在网站默认设置中的IIS 7 Manager树。

Thanks to a Microsoft Connect report, I was able to solve this by choosing a new default application pool under the "Web Site Defaults" properties of the Sites node in the IIS 7 Manager tree.

这篇关于Visual Studio中无法在IIS中创建网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆