在ASP.NET中,什么决定了HostingEnvironment.IsDevelopmentEnvironment的价
发布时间:2020-12-30 13:05:36 所属栏目:asp.Net 来源:互联网
导读:MSDN documentation不解释如何,何时或为什么这个值被设置为true. 设置 configuration debug =“false”/在web.config中没有将该属性设置为false,也不设置 deployment retail =“true”/在machine.config. 我在IIS Express上运行Visual Studio 2012的测试网站,
MSDN documentation不解释如何,何时或为什么这个值被设置为true. 设置< configuration debug =“false”/>在web.config中没有将该属性设置为false,也不设置< deployment retail =“true”/>在machine.config. 我在IIS Express上运行Visual Studio 2012的测试网站,我没有安装IIS’正确’. 编辑: 解决方法该属性的反编译代码如下:public static bool IsDevelopmentEnvironment { get { return ((AppDomain.CurrentDomain.GetData(".devEnvironment") as bool?) == true); } } 但是我无法确定这个价值的设置.. (编辑:哈尔滨站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – Tridion分析和个性化错误:用户不能为空.请确保
- asp.net – 使用FormsAuthentication持久的cookie超时
- asp.net-mvc – 模型单元测试能否真正独立,如何[ASP.NET MV
- asp.net – XMLHTTP请求的经典ASP错误
- asp.net-mvc – KendoUI网格显示总记录数
- ASP.NET MVC全能路由
- asp.net-web-api – 使用swashbuckle api文档的http basic
- asp.net-mvc – 使用IIS基本身份验证的OWIN身份验证
- 如何为Asp.Net中的所有子文件夹注册HttpHandler?
- ASP.NET 清除模式窗口数据缓存的操作方式