Request is not available in this context
2016-07-15 13:10
155 查看
部署到新服务器的IIS的时候发现这个错误:
解决方案:
web.config这里配置下,请参考红色的部分!
Request is not available in this context
解决方案:
<system.web> <customErrors mode="Off" /> <authentication mode="Forms"> <forms loginUrl="~/home" timeout="30" slidingExpiration="true" /> </authentication> <pages asyncTimeout="60" /> <compilation targetFramework="4.5" /> <httpRuntime targetFramework="4.5" maxRequestLength="2097151" executionTimeout="6000" /> <sessionState mode="StateServer" timeout="120" cookieless="false" /> <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" culture="zh-cn" /> </system.web>
web.config这里配置下,请参考红色的部分!
相关文章推荐
- AbstractQueuedSynchronized源码探索
- iOS进阶 - UIDynamic
- stringbuffer与stringbuilder的区别
- HDU - 1711 - Number Sequence (KMP)
- EasyUI基本配置,HelloWorld
- iOS UILabel高度自适应
- Android view中的requestLayout和invalidate方法
- 【Debug】The value of ESP was not properly saved across a function call.
- KVO (key-value observing)的使用
- Android Studio 出现call requires api level 11 (current min is 2)解决方法
- 7.You have issued a SHUTDOWN ABORT command to bring down your database instance. Considerthe steps t
- idea自动生成serialVersionUID
- HashMap如何根据Value排序?
- 乱码电路(Garbled circuits)
- iOS开发:UITableview的多选功能实现
- RequireJS基础(三)
- UE4帧动画Matineed
- UE4帧动画Matineed
- iOS UITableView长按cell复制内容
- ORA-0131:debugging requires the debug connect session system privilege