简体   繁体   English

IIS 7.5应用程序和应用程序池

[英]IIS 7.5 Applications and Application Pool

Here is my scenario. 这是我的情况。 I have a website running under "AppPool1" and that works fine. 我有一个在“ AppPool1”下运行的网站,并且工作正常。 I created a new application ("test") within that site and set that to use "AppPool2". 我在该站点内创建了一个新应用程序(“测试”),并将其设置为使用“ AppPool2”。

The problem is that http://mysite.com works, but http://mysite.com/test does not. 问题是http://mysite.com有效,但http://mysite.com/test不起作用。 I get a 500.19 error. 我收到500.19错误。 If I switch it back to use "AppPool1" it works fine. 如果我将其切换回使用“ AppPool1”,则可以正常工作。

Am I misunderstanding the purpose of an application pool? 我是否误解了应用程序池的目的? I thought you could do what I'm trying to accomplish? 我以为你可以做我想做的事? Are the app pools only supposed to be assigned to separate sites, not applications within a site? 是否应该将应用程序池仅分配给单独的站点,而不是站点中的应用程序?

I've tried recreating the app pools and assigning permissions to the directory of the application with no success. 我尝试重新创建应用程序池并将权限分配给应用程序的目录,但没有成功。

Problem solved. 问题解决了。 Make sure your root folder has the IIS AppPool\\apppoolname permissions on it as well. 确保您的根文件夹也具有IIS AppPool \\ apppoolname权限。 Even if the application is in a different directory 即使应用程序位于其他目录中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM