silverlight部署常见问题汇总 On 程序人生, 解决方案 @2010-09-11
1 System.ServiceModel.DomainServices.Hosting is not found
问题描述:
I have a project with SL4 that works fine in dev computer, but when I upload it to the production server I get: Could not load file or assembly ‘System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The system cannot find the file specified
解决方案:
依次检查下面三项
1) System.ServiceModel.DomainServices.Hosting.dll, System.ServiceModel.DomainServices.Server.dll and System.ServiceModel.DomainServices.Hosting.OData.dll should be added to the bin folder of the web application (Select the assembly in the list of references, press F4, set Copy Local property to True). We need to do it because not all hosting providers install Wcf Ria Services on their hosting environments;

2) Uncheck Enable Integrated Windows Authentication and check the Allow Anonymous Access option in the settings of a virtual folder;
3) Change <authentication mode=”Windows” /> to Forms in the web.config file.




我说两句 »