[英]Application Pool Mode Problem: Classic Or Integrated
I am facing an issue and was hoping if you could please provide me with some guidance: 我正面临一个问题,希望你能提供一些指导:
I have a Asp.net 4.0 website application that uses spring.net and ext.net libraries. 我有一个使用spring.net和ext.net库的Asp.net 4.0网站应用程序。 I have deployed it in IIS 7 using classic application pool mode and it works. 我使用经典的应用程序池模式在IIS 7中部署它,它可以工作。 It doesn't work in integrated mode . 它在集成模式下不起作用 。
I have another Asp.net 4.0 silverlight website application that is deployed in IIS 7 using integrated application mode and it works. 我有另一个使用集成应用程序模式部署在IIS 7中的Asp.net 4.0 silverlight网站应用程序,它可以工作。 It doesn't work in classic mode . 它不适用于经典模式 。
I have created a new ASP.net web application that combines both of the 1 and 2 web applications above. 我创建了一个新的ASP.net Web应用程序,它结合了上面的1和2 Web应用程序。 It uses Ext.Net, Spring.Net and Silverlight 4.0. 它使用Ext.Net,Spring.Net和Silverlight 4.0。 In Visual Studio's web server, when I run it in debug mode, it works perfectly. 在Visual Studio的Web服务器中,当我在调试模式下运行它时,它完美地工作。
When I deploy it in IIS 7, it doesn't work. 当我在IIS 7中部署它时,它不起作用。 How can I make the application run in one mode? 如何使应用程序在一种模式下运行? Is there a web.config setting that can define the parts of the website to run under a different application pool mode? 是否有web.config设置可以定义在不同的应用程序池模式下运行的网站部分?
I suspect that the problem you're having with the [ext.net] application is due to it being in integrated mode and you not having populated your web.config
correctly. 我怀疑你在[ext.net]应用程序中遇到的问题是由于它处于集成模式而你没有正确填充你的web.config
。 Take a look at the Ext.Net wiki page for Web.config . 查看Web.config的Ext.Net wiki页面。 (That said, I didn't realise there was an Ext.Net wiki until I searched to pickup the exact details a moment ago!) (那就是说,我没有意识到有一个Ext.Net wiki,直到我刚才搜索到了确切的细节!)
Basically, for "classic" you need to have configuration entries under <system.web><httpModules>
and <system.web><httpHandlers>
whereas for IIS7/Integrated mode you need to have configuration entries under <system.webServer><modules>
and <system.webServer><handlers>
respectively. 基本上,对于“经典”,您需要在<system.web><httpModules>
和<system.web><httpHandlers>
下具有配置条目,而对于IIS7 /集成模式,您需要在<system.webServer><modules>
下具有配置条目<system.webServer><modules>
和<system.webServer><handlers>
分别。
This MSDN document might help you better understand the differences and then modify the one to use Integrated mode, which is the preferred mode going forward and if you're going to be deploying to IIS 7. 此MSDN文档可能有助于您更好地理解差异,然后修改一个以使用集成模式,这是首选的模式,如果您要部署到IIS 7。
http://msdn.microsoft.com/en-us/library/bb515251.aspx http://msdn.microsoft.com/en-us/library/bb515251.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.