- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个简单的Webforms网站项目。该项目使用通过NuGet添加的Microsoft应用程序块 Unity 3.5 (DI容器)。
现在,我正在使用此第三方Web服务。添加服务引用并构建后,我得到以下信息:
Error 19 Reference.svcmap: Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) App_WebReferences/MyExternalService/
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Practices.Unity" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Practices.ServiceLocation" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.0.0.0" newVersion="1.0.0.0" />
</dependentAssembly>
</assemblyBinding>
最佳答案
我安装了错误的软件包以获取对Microsoft.Practices.ServiceLocation的引用
错误的软件包:
正确的软件包是:
关于asp.net - Reference.svcmap : Could not load file or assembly Microsoft. Practices.ServiceLocation,版本= 1.0.0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28789402/
从昨天开始使用 Visual Studio 2012 RC,我们有一个 WCF 解决方案。每当我尝试在另一个解决方案中使用“添加/删除引用”对话框时,添加服务后都会出现以下错误。 Error 1 Re
我们有一个名为 Foo 的网络服务。 所以有一个 Foo.svc 文件和 Foo.svc.cs 后面的代码。 我们添加一个 silverlight 项目并希望使用 Foo.svc 服务,因此我们添加一
我们有运行 4000 个 .NET 4.0 网站的 Win2k8 服务器。我们已经尽可能地推迟了框架更新,并且在浏览器检测方面遇到了 __dopostback() 的问题,我们无法再解决这个问题。 我
我有一个简单的Webforms网站项目。该项目使用通过NuGet添加的Microsoft应用程序块 Unity 3.5 (DI容器)。 现在,我正在使用此第三方Web服务。添加服务引用并构建后,我得到
我是一名优秀的程序员,十分优秀!