SharePoint 2013 error The given assembly name or codebase System.ServiceModel.dll was invalid
2014-07-19 21:03
429 查看
笔者最近在 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: Anunhandled 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. |
[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 |
.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
- ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
- eclipse新建项目,报错“Error: workspace\appcompat_v7\res\values-v21\styles_base.xml No resource found that matches the given name”
- System.ServiceModel.CommunicationException:The underlying connection was closed: The connection was closed unexpectedly
- ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA .
- Compiler Error Message: CS0234: The type or namespace name ''(are you missing an assembly reference?)
- Job for postfix.service failed because the control process exited with error code. See "systemctl st
- The module ... was loaded but the call to DllRegisterServer failed with error code 0x80070005
- SharePoint 2010 Server Error: The URL "XXX" is invalid, it may refer to a nonexistent file or ...
- Job for php-fpm.service failed because the control process exited with error code. See "systemctl st
- ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
- sharepoint 2007 没有migrategroup参数,执行报错:Missing operation name or the operation name is invalid.
- ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
- ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
- Job for nginx.service failed because the control process exited with error code. See "systemctl stat
- SQL Server: Text was truncated or one or more characters had no match in the target code page error
- Job for vsftpd.service failed because the control process exited with error code. See "systemctl sta
- 【转】eclipse新建项目,报错“Error: workspace\appcompat_v7\res\values-v21\styles_base.xml No resource found that matches the given name”
- WCF Error RANT: An error occured creating the configuration section handler for system.serviceModel/
- WCF:The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.