相关疑难解决方法(0)

.NET生成服务引用时加载错误的程序集

尝试在Visual Studio 2012中向ASP.NET MVC 5 Web应用程序添加服务引用时出现以下错误.我已在项目中引用了Microsoft.Owin.Security版本3.0.0.0.我还应该添加2.0.1.0版本吗?

Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Could not load file or assembly 'Microsoft.Owin.Security, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IMyService']
Run Code Online (Sandbox Code Playgroud)

这家伙在这里也有类似的问题,但没有人回答..

.net asp.net-mvc wcf

5
推荐指数
1
解决办法
1869
查看次数

标签 统计

.net ×1

asp.net-mvc ×1

wcf ×1