码迷,mamicode.com
首页 > 其他好文 > 详细

SharePoint 2013 error The given assembly name or codebase System.ServiceModel.dll was invalid

时间:2014-07-19 23:42:49      阅读:294      评论:0      收藏:0      [点我收藏+]

标签:sharepoint 2013   assembly name or cod   system.servicemodel.   iis   was invalid   

笔者最近在 SharePoint 2013 的环境中遇到一个奇怪的问题,前一天 SharePoint 2013 网站还是好好的,但是突然网站就报page can‘t display 500 错误:

The given assembly name or codebase, ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll‘, was invalid.

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. 

Exception Details: System.IO.FileLoadException: The given assembly name or codebase, ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll‘, was invalid.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[FileLoadException: The given assembly name or codebase, ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll‘, was invalid.]
   System.ServiceModel.Activation.ServiceHttpModule.BeginProcessRequest(Object sender, EventArgs e, AsyncCallback cb, Object extraData) +0
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +556
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.19051 

笔者花了大半天时间来调研这个问题,最终解决这个问题,特此将该问题的解决方法写出来 ,希望可以给碰到类似问题的朋友有所帮助 。

笔者后来发现这个环境里的服务帐号莫名奇妙地被移出了本地管理员组,貌似不是人为的,可能是Windows 补丁或域安全策略导致的 。

不管是怎样造成的,知道什么问题就好,笔者果断将服务帐号加回到所有 App 和 Web server的本地管理员组。

然后重启所有的IIS ,问题就解决了 。


SharePoint 2013 error The given assembly name or codebase System.ServiceModel.dll was invalid

标签:sharepoint 2013   assembly name or cod   system.servicemodel.   iis   was invalid   

原文地址:http://blog.csdn.net/abrahamcheng/article/details/37968735

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!