微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在IIS部署Silverlight应用和WCF RIA Services,出现异常:未能加载文件或程序集“System.ServiceModel.DomainServices.Hosting, Ver

项目用wcf ria +silverlight,发部后,部署到iis上时,报如下错误

Invoke operation 'File_GetMenuFileName' @R_404_4761@ .远程服务器返回了错误:NotFound。

打开事件查看器""

Event code: 3008
Event message: A configuration error has occurred.
Event time: 2012-5-23 15:54:15
Event time (UTC): 2012-5-23 7:54:15
Event ID: 94762612aceb4f7c88743f176aae9903
Event sequence: 9
Event occurrence: 8
Event detail code: 0
 
Application @R_773_4045@ion:
    Application domain: /LM/W3SVC/1202972978/Root-1-129822324119623750
    Trust level: Full
    Application Virtual Path: /
    Application Path: D:\管理系统\
    Machine name: yyyy 
Process @R_773_4045@ion:
    Process ID: 3932
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception @R_773_4045@ion:
    Exception type: ConfigurationErrorsException
    Exception message: Could not load file or assembly 'System.ServiceModel.domainservices.Hosting,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。 (D:\管理系统\web.config line 26) (D:\管理系统\web.config line 26)
   at System.Web.Configuration.HttpModuleAction.get_Entry()
   at System.Web.Configuration.HttpModulesSection.CreateModules()
   at System.Web.HttpApplication.InitModules()
   at System.Web.HttpApplication.InitInternal(HttpContext context,HttpApplicationState state,MethodInfo[] handlers)
   at System.Web.HttpApplicationFactory.GetnormalApplicationInstance(HttpContext context)
   at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
   at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)

 
 
Request @R_773_4045@ion:
    Request URL:
http://localhost:1001/ClientBin/Service-CommonDomainService.svc/binary/File_GetMenuFileName
    Request path: /ClientBin/Service-CommonDomainService.svc/binary/File_GetMenuFileName
    User host address: 127.0.0.1
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread @R_773_4045@ion:
    Thread ID: 11
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Web.Configuration.HttpModuleAction.get_Entry()
   at System.Web.Configuration.HttpModulesSection.CreateModules()
   at System.Web.HttpApplication.InitModules()
   at System.Web.HttpApplication.InitInternal(HttpContext context,MethodInfo[] handlers)
   at System.Web.HttpApplicationFactory.GetnormalApplicationInstance(HttpContext context)
   at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
   at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
 
 
Custom event details:

有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

原因:没有加载DLL

在IIS部署Silverlight应用和WCF RIA Services,出现异常:未能加载文件或程序集“System.ServiceModel.domainservices.Hosting,PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件

Could not load file or assembly 'System.ServiceModel.domainservices.Hosting,PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

只需拷贝开发机以下文件到网站bin目录即可:

09.21

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐