webconfig文件serviceHostingEnvironment节点出错的解决方法
2015-10-29 11:20
423 查看
在三点五和二版本的配置中可以出现这个节点,但是在4.0是没有的,所以如果框架是4.0的时候要除去这个节点,不然就会报以下错误:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 180: </runtime>
Line 181: <system.serviceModel>
Line 182: <serviceHostingEnvironment aspNetCompatibilityEnabled="false"/>
Line 183: <behaviors>
Line 184: <endpointBehaviors>
这个节点的作用如MSDN介绍的一样。是
一个布尔值,指示是否已为当前应用程序启用了 ASP.NET 兼容模式。默认值为 false。
当此属性设置为 true 时,对 Windows Communication Foundation (WCF) 服务的请求将流经 ASP.NET HTTP 管道,而通过非 HTTP 协议的通信将被禁止。有关更多信息,请参见WCF Services and ASP.NET。
他的作用简而言之就是WCF程序访问session时候才用得到
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 180: </runtime>
Line 181: <system.serviceModel>
Line 182: <serviceHostingEnvironment aspNetCompatibilityEnabled="false"/>
Line 183: <behaviors>
Line 184: <endpointBehaviors>
这个节点的作用如MSDN介绍的一样。是
一个布尔值,指示是否已为当前应用程序启用了 ASP.NET 兼容模式。默认值为 false。
当此属性设置为 true 时,对 Windows Communication Foundation (WCF) 服务的请求将流经 ASP.NET HTTP 管道,而通过非 HTTP 协议的通信将被禁止。有关更多信息,请参见WCF Services and ASP.NET。
他的作用简而言之就是WCF程序访问session时候才用得到
相关文章推荐
- Android控件之DatePicker、TimePicker焦点问题(有些手机不能手动输入)
- 基于互斥对象的线程间同步
- 信息添加多个收信人,不能向右滑动查看多个收信人名称。
- 使用eval()解析json
- Android 利用 path 绘制任意图形
- Selenium WebDriver Code
- echarts入门-2直角系组件网格,坐标轴,grid axis
- Java NIO原理图文分析及代码实现
- C#多线程中子线程快速终止的几个处理办法
- 为Digital Ocean主机添加swap分区
- js正则表达式验证字符
- shell中条件测试与整数运算以及脚本选项
- Java加密技术(一)——BASE64与单向加密算法MD5&SHA&MAC
- django models 晋级
- 测试Android真机访问电脑主机web项目服务器的问题
- Android实际开发中的bug总结与解决方法(一)
- URIs, URLs, and URNs
- 1.2原串翻转
- git使用
- Navicat导出表结构