在iis7.5上运行runnig mvc时,请求在此上下文异常中不可用 [英] Request is not available in this context exception when runnig mvc on iis7.5

查看:84
本文介绍了在iis7.5上运行runnig mvc时,请求在此上下文异常中不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在iis7.5 win 7上运行mvc应用程序时,它会导致异常请求在此上下文中不可用",而在vs2008上运行时,这不会引起该异常.有人可以帮我吗?

when i running mvc app on iis7.5 win 7 it cause an exception "Request is not available in this context" which this don't cause when running by vs2008. can anyone help me?

推荐答案

我认为,有关在global.asax文件中使用请求对象的问题的答案和注释可能会有所帮助.您是否在不使用IIS7的系统上进行开发?

I think the answers and notes in my question regarding use of the request object in the global.asax file may be helpful. Are you developing on a system that doesn't use IIS7 by any chance?

全局ASAX-获取服务器名称

这篇关于在iis7.5上运行runnig mvc时,请求在此上下文异常中不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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