首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web Service >

WCF发布有关问题

2012-12-22 
WCF发布问题报错信息如下Could not load file or assembly log4net or one of its dependencies. This a

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 终结点。

热点排行