Could not load file or assembly 'System.ServiceModel.DomainServices.Hosting'.系统找不到指定文件
项目部署到服务器后出现如下错误信息:
Parser Error 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.系统找不到指定的文件。
打开这个目录:
C:\Program Files\Microsoft SDKs\RIA Services\v1.0\Libraries\Server
64位系统是Program Files (x86)
拷贝四个选中的DLL文件到项目的BIN目录即可: