SharePoint 2013 error The given assembly name or codebase System.ServiceModel.dll was invalid
来源:互联网 发布:大数据抓小偷 编辑:程序博客网 时间:2024/06/06 01:04
笔者最近在 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 ,问题就解决了 。
0 0
- SharePoint 2013 error The given assembly name or codebase System.ServiceModel.dll was invalid
- Could not load file or assembly 'System.ServiceModel.DomainServices.Hosting
- sharepoint 2007 没有migrategroup参数,执行报错:Missing operation name or the operation name is invalid.
- 报错System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid
- SharePoint 2010 Server Error: The URL "XXX" is invalid, it may refer to a nonexistent file or ...
- Parser Error Message: Could not load file or assembly 'NameSpace' or one of its dependencies. The system cannot find the file sp
- WCF Error RANT: An error occured creating the configuration section handler for system.serviceModel/
- Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel,
- Could not load file or assembly'System.Data.SQLite.dll' or one of its depedencies
- Could not load file or assembly system.data.sqlite.dll or one for it's depedencies
- ERROR ITMS-90680: "The binary you uploaded was invalid."
- 【matlab】libtest2.dll : fatal error LNK1136: invalid or corrupt file
- Unable to Sign In An invalid User Name or Password was entered解决办法
- Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Wind
- error: Error: No resource found that matches the given name (at 'text' with value '@string/
- AndroidManifest.xml:10: error: Error: No resource found that matches the given name (at 'icon' with
- error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCo
- NYOJ 971 爬行的蚂蚁
- 将自定义对象存入到HashSet集合中并去除重复元素
- NC57 定时任务TaskExecutor 控制单个任务
- linux查看当前驱动的支持模式, 命令iw list
- [Python]核心编程之函数
- SharePoint 2013 error The given assembly name or codebase System.ServiceModel.dll was invalid
- hadoop-2.3 HA(QJM方式)实践结论
- [线段树] 1127 敌兵布阵
- 鞍点
- 【LeetCode with Python】 Rotate Image
- fzoj1759(欧拉定理)
- 进程与线程
- 编程在一个已知的字符串中查找最长单词,假定字符串中只含字母和空格,用空格来分隔单词。
- POJ 3258+二分