首页 新闻 会员 周边 捐助

iis 运行一段时间报错 找到解决方案 但是不知道怎么弄

0
悬赏园豆:20 [待解决问题]

http://stackoverflow.com/questions/6204123/asp-net-mvc-3-on-iis-gives-403-after-period-of-time-requires-app-pool-restart

 

大致问题如上

I have managed to resolve the issue for my environment. The env is the following: Web proj (asp.net mvc app assembly) and Web.Controllers proj (class library). Routing initialization was made from Web.Controllers. I have figured out that when IIS shuts down an app and then starts in upon request then NOT all references are loaded for Web proj automatically. In particular, my Web.Controllers assembly was not loaded and thus routing was not re-configured upon app re-start. I replaced inderect Web->Web.Controllers dependency (IoC) with direct reference and that solved the issue.

 

回答者说了 是iis内部的直接引用 和间接引用的问题

所以我想问问 怎么吧间接引用换成直接引用

小眼睛老鼠的主页 小眼睛老鼠 | 老鸟四级 | 园豆:2731
提问于:2014-03-28 17:45
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册