当前位置: 代码迷 >> Web Service >> WCF发布有关问题
  详细解决方案

WCF发布有关问题

热度:334   发布时间:2016-05-02 02:46:34.0
WCF发布问题
报错信息如下


Could not load file or assembly 'log4net' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
--------------------------------------------

已确认log4net 发布跟调试生成的版本一致
------最佳解决方案--------------------
检查 IIS 应用程序池的 .net runtime 版本。
------其他解决方案--------------------
log4net是什么?
------其他解决方案--------------------
log4net是一个记录日志的组件,你的项目中可能是少了log4net的依赖项,或者版本不对,
或者可以检查下log4net配置是否正确
http://www.cnblogs.com/dragon/archive/2005/03/24/124254.html
------其他解决方案--------------------
已尝试创建到达不支持 .Net 框架的服务的通道。可能遇到 HTTP 终结点。
  相关解决方案