无法3.5网站添加.NET来IIS防爆preSS [英] Unable to Add .net 3.5 Website to IIS Express

查看:216
本文介绍了无法3.5网站添加.NET来IIS防爆preSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我的问题是,我有我试图在本地使用IIS防爆preSS系统上运行一个相当大的ASP.NET 3.5项目。我对我的球队不少开发商谁运行此和其他项目使用IIS防爆preSS之一,我实际运行没有问题每天都在一个.NET 4.0的网站(包括当地的SSL)。作为参考,我的机器上运行Windows 7旗舰版64位与Microsoft Visual Studio 2010,我在本地计算机上的管理员。 Visual Studio中的管理权限运行,而我也确信,所有INETMGR列出的应用程序池正在运行。

So, my issue is that I have a fairly large ASP.NET 3.5 project that I am trying to run locally using an IIS Express installation. I am one of many developers on my team who run this and other projects using IIS Express, and I actually run a .NET 4.0 site (complete with local SSL) on a daily basis with no issues. For reference, my machine runs Windows 7 Ultimate 64-bit with Microsoft Visual Studio 2010, and I am the administrator on the local machine. Visual Studio runs with administrative rights, and I have made sure that all of the App Pools listed in inetmgr are running.

下面是我得到的工作流程试图在本地运行项目时:

Here's the workflow that I get when attempting to run the project locally:


  • 当我跑我的项目是第一次,或者如果我删除微软WebMatrix中(对于IIS防爆preSS的配置工具,类似INETMGR)中列出的任何网站,我得到的消息序列:

(1)从Microsoft Visual Studio中指出,A是 - 无对话

(1) A Yes-No dialog from Microsoft Visual Studio that states,

本地IIS URL 的http://本地主机:2000 /网站/路径/ 对于Web项目的My.Web.Project指定尚未配置。为了打开这个项目中的虚拟目录需要进行配置。您想现在创建虚拟目录?

The local IIS URL http://localhost:2000/site/path/ specified for Web project My.Web.Project has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?

(2)在这一点上,我点击是。从VS中间窗口弹出的加载杆,获得约50%,然后从VS一个警告对话框弹出,内容如下:

(2) At this point, I click "Yes". An intermediate window from VS pops up with a loading bar, gets to about 50%, and then a Warning dialog from VS pops up, reading:

配置Web 的http://本地主机:2000 / 了解ASP.NET 3.5失败。您必须手动顺序配置本网站的ASP.NET 3.5站点正常运行。 Visual Studio中无法检测到这个虚拟根是否已配置为使用ASP.NET 2.0中使用的可能的原因是你没有足够的权限来访问IIS元数据库。您可能需要以手动配置此网站ASP.NET 2.0为您的网站正常运行。

Configuring Web http://localhost:2000/ for ASP.NET 3.5 failed. You must manually configure 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 privileges 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.

(3)在这一点上,我只能点击确定或帮助,所以我点击确定继续。它继续为被配置为在IIS防爆$运行我的解决方案的任何其他项目做同样的过程p $ PSS本地。

(3) At this point I can only click "Ok" or "Help, so I click OK to continue. It proceeds to do this same process for any other projects in my solution that are configured to run in IIS Express locally.


  • 当我尝试通过按下CTRL-F5在本地运行的网站,我得到一个错误对话框,上面写着无法启动IIS前preSS Web服务器

  • 当我尝试查看有关Microsoft Web Matrix的说网站的详细信息,我从WebMatrix中读取的错误消息:的错误造成的WebMatrix中关闭。错误消息:无效的应用程序池名称

  • 此错误信息是正确的,除非我在IIS防爆preSS配置文件看看(C:\\%用户目录%\\我的文档\\ IISEx preSS \\设置\\对ApplicationHost.config),在<网站> 部分,每个应用程序都有一个<应用> 标签只有一个路径指定的属性,没有 applicationPool 属性指定。 (相反,4.0的应用程序,并在IISEx preSS工作已指定该属性)。

  • 有一次,我增加一个 applicationPool 属性到一个网站,我可以打开/看/编辑它的细节在WebMatrix中,但仍是无法在本地运行。

  • When I attempt to run the site locally by hitting CTRL-F5, I get an error dialog box that reads, Unable to launch the IIS Express Web Server
  • When I attempt to view details about said site in Microsoft Web Matrix, I get an error message from WebMatrix that reads: An error caused WebMatrix to shut down. Error message: Invalid application pool name
  • This error message is correct, except when I look at the IIS Express configuration file (C:\%User Dir%\My Documents\IISExpress\config\applicationhost.config), in the <sites> section, each application has an <application> tag with only a path attribute specified, no applicationPool attribute specified. (Conversely, the 4.0 app that does work on IISExpress has this attribute specified).
  • Once I add an applicationPool attribute to a site, I can open/see/edit its details in WebMatrix, but still am unable to run it locally.

那么,我究竟做错了还是什么配置不正确我的机器是从运行阻止我,但没有任何其他开发人员使用相同的code?

So, what am I doing wrong or what configuration is incorrect on my machine that is stopping me from running, but not any other developers with the same code?

推荐答案

有关的应用程序,如果程序池没有明确specificed默认的应用程序池将被使用。在IIS防爆preSS默认的应用程序池是Clr4IntegratedAppPool

For an application, if the appPool is not specificed explicitly default apppool would be used. In IIS Express default app pool is Clr4IntegratedAppPool

&LT; applicationDefaults applicationPool =Clr4IntegratedAppPool/&GT;

如果您的应用程序不是一个.NET 4.0的应用程序,然后进行相应设置。如果应用程序是2.0的应用程序,然后将程序池为Clr2IntegratedAppPool。

If your application is not a .net 4.0 app, then set it accordingly. If your application is 2.0 app, then set the appPool to 'Clr2IntegratedAppPool'.

下面给出的是应用程序池$ P $在IIS防爆preSS配置P-定义。

Below given are application pools pre-defined in IIS Express configuration.

Clr4IntegratedAppPool
Clr4ClassicAppPool
Clr2IntegratedAppPool
Clr2ClassicAppPool

这篇关于无法3.5网站添加.NET来IIS防爆preSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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