我可以在 Win xp(IIS 5.1) 中构建我的 silverlight 4.0 应用程序。但是当我尝试在 Win Server 2008 R2(IIS 7) 中构建相同的应用程序时,出现错误,
“错误 CS0012:类型‘System.ServiceModel.ClientBase`1’在未引用的程序集中定义。您必须添加对程序集‘System.ServiceModel,Version=3.0.0.0,Culture’的引用=中性,PublicKeyToken=b77a5c561934e089'"。
在两台机器上实际引用 dll 的路径是, “C:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\System.ServiceModel.dll”。
可能是什么问题?
提前致谢
最佳答案
确保在项目的引用文件夹下看到 System.ServiceModel。
关于c# - 错误 : add a reference to assembly 'System.ServiceModel, Version=3.0.0.0' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7964575/