简体   繁体   English

ASP.NET MVC-部署在IIS6上,在会话启动后停止加载

[英]ASP.NET MVC - Deployed on IIS6, stops loading after session start

Reaching out here... I have an ASP.NET MVC app, which runs flawlessly on VS2008 dev server and IIS7. 在这里伸出援助之手...我有一个ASP.NET MVC应用程序,可在VS2008开发服务器和IIS7上完美运行。 However, deploying on IIS6 yields blank pages and no error message in event logs either. 但是,在IIS6上进行部署会产生空白页,并且事件日志中也不会出现错误消息。 Very frustrating! 很沮丧!

I've tried the wildcard mapping techniques, extension based routing ({controller}.aspx/{action}) and every config variation I could think of. 我尝试了通配符映射技术,基于扩展的路由({controller} .aspx / {action})和我能想到的每个配置变体。

Does anybody have any ideas for troubleshooting a problem like this? 是否有人对解决此类问题有任何想法? Why would IIS serve up a blank page instead of something real (like an error). IIS为什么要提供空白页而不是实际内容(例如错误)。 Memory issues? 内存问题? Machine has 4Gig of RAM, so that shouldn't be an issue. 机器具有4Gig的RAM,因此这不是问题。

Logging in the application shows that the Global.asax file is being processed successfully up until Session_Start. 登录该应用程序显示,直到Session_Start为止,Global.asax文件已被成功处理。 After that (when routing should take over), it stops. 此后(当路由应接管时),它将停止。

Any ideas would be appreciated! 任何想法,将不胜感激!

You have to set up some ISAPI mappings. 您必须设置一些ISAPI映射。 Phil Haack covered it on his blog. Phil Haack在他的博客中进行了报道。 You can find the entry here: http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx 您可以在此处找到条目: http : //haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx

It is kind of a pain, but it is the way IIS6 handles things. 这有点痛苦,但是它是IIS6处理事情的方式。 I am not sure if the RC version still has this problem as I am all IIS7 today. 我不确定RC版本是否仍然存在此问题,因为今天我都是IIS7。

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

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