asp.net – Reference.svcmap:无法加载文件或程序集Microsoft.Practices.Ser
|
我有一个简单的webforms网站项目.该项目使用通过NuGet添加的Microsoft Application Block Unity 3.5(DI Container). 现在我正在使用这个第三方Web服务.在我添加服务引用和构建后,我得到了这个:
所以我安装了Microsoft.Practices.ServiceLocation但它仍然抱怨该程序集. 我尝试将此添加到我的web.config但仍然无法正常工作. <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>
一旦我卸载Unity包,一切都很好.没有错误,我可以使用服务代理 尝试清洁构建等,但没有任何作用. 任何的想法? 解决方法我正在安装错误的软件包以获取对Microsoft.Practices.ServiceLocation的引用包裹错误: 正确的包装是: (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- asp.net-core – VS2017:目标框架下拉列表未显示.NET Core
- .net – 对象数据源或代码隐藏:哪个更好?
- asp.net – 是否有可能欺骗或重用VIEWSTATE或检测它是否受到
- iis-7 – ASP经典IIS7问题
- asp.net – 自我跟踪实体vs POCO实体
- asp.net – IIS URL重写 – 具有多个域
- asp.net – Request.ServerVariables [“REMOTE_ADDR”]足够
- asp.net – 一个cookie文件的最大大小是多少?
- entity-framework – 将DbContext注入Repository类库
- .net – CS0012:类型’System.Data.Linq.DataContext’在未
- asp.net实现文件下载的代码
- asp.net-mvc-3 – MailTo链接在Razor
- iis – 是否需要serviceAutoStartProvider属性来
- 新的ASP.NET Web应用程序:有一个Login按钮可以执
- asp.net-mvc – ViewBag.Title值覆盖ASP.NET MVC
- asp.net – 想要在ModalPopExtender之上显示Upda
- Asp.net 文件上传类(取得文件后缀名,保存文件,加
- asp.net-mvc-3 – ASP.NET MVC3 – Html.TextBox
- asp.net – 是否使用CMS
- ASP.NET Cookies BUG – 多个cookie随机复制?
