asp.net – Reference.svcmap:无法加载文件或程序集Microsoft.P
我有一个简单的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的引用
包裹错误: 正确的包装是: (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 动手造轮子:实现一个简单的 AOP 框架
- asp.net-mvc – 使用ui-router的.NET MVC和Angular
- asp.net:DetailsView控件不解释html
- asp.net – 实体框架 – 使用.Include()和.Select()的“eag
- asp.net – 在部署过程中如何显示维护页面?
- asp.net-mvc – 你如何覆盖Html.ActionLink?
- asp.net-mvc-4 – Kendo UI组合框复位值
- asp.net-mvc – 在ASP.NET MVC 3应用程序中引用类库中的Nin
- asp.net-mvc – 谷歌日历无法读取ICalendar.
- asp.net-mvc – HttpConfiguration缺少程序集