Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/331.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# ';无法加载文件或程序集';向客户端添加WCF服务引用时出错_C#_Asp.net_.net_Web Services_Wcf - Fatal编程技术网

C# ';无法加载文件或程序集';向客户端添加WCF服务引用时出错

C# ';无法加载文件或程序集';向客户端添加WCF服务引用时出错,c#,asp.net,.net,web-services,wcf,C#,Asp.net,.net,Web Services,Wcf,我试图通过添加使用net.tcp绑定的WCF服务的服务引用来创建WCF服务客户端。但我得到了以下错误: 无法加载文件或程序集“CoreService PP DELL”或一个 它的依赖性。定位程序集的清单定义不存在 与程序集引用不匹配 以下是我的WCF服务器配置: <system.serviceModel> <services> <service name="CoreService.Service1" behaviorConfiguration="beh1">

我试图通过添加使用net.tcp绑定的WCF服务的服务引用来创建WCF服务客户端。但我得到了以下错误:

无法加载文件或程序集“CoreService PP DELL”或一个 它的依赖性。定位程序集的清单定义不存在 与程序集引用不匹配

以下是我的WCF服务器配置:

<system.serviceModel>
<services>
<service name="CoreService.Service1" behaviorConfiguration="beh1">
  <host>
    <baseAddresses>
      <add baseAddress="net.tcp://localhost:2205/Service1.svc"/>
    </baseAddresses>
  </host>
        <endpoint
     binding="netTcpBinding"
     bindingConfiguration="ultra"
     contract="CoreService.IAccountService"/>
       <endpoint
     binding="netTcpBinding"
     bindingConfiguration="ultra"
     contract="CoreService.ICategoryService"/>
         <endpoint
     binding="netTcpBinding"
     bindingConfiguration="ultra"
     contract="CoreService.ICommonService"/>
         <endpoint
     binding="netTcpBinding"
     bindingConfiguration="ultra"
     contract="CoreService.IFollowerService"/>
         <endpoint
     binding="netTcpBinding"
     bindingConfiguration="ultra"
     contract="CoreService.IInterestService"/>
<endpoint
     binding="netTcpBinding"
     bindingConfiguration="ultra"
     contract="CoreService.IInviteService"/>

  <endpoint
          address="mex"
          binding="mexTcpBinding"
          contract="IMetadataExchange"/>
</service>
</services>
<bindings>
<netTcpBinding>
<binding name="ultra"
     maxBufferPoolSize="2147483647"
     maxBufferSize="2147483647"
     maxConnections="2147483647"
     maxReceivedMessageSize="2147483647"
     portSharingEnabled="false"
     transactionFlow="false"
     listenBacklog="2147483647"
     sendTimeout="00:01:00">
<security mode="None">
<message clientCredentialType="None"/>
<transport protectionLevel="None" clientCredentialType="None"/>
</security>
<reliableSession enabled="false"/>
</binding>
</netTcpBinding>
</bindings>
<behaviors>
    <serviceBehaviors>
      <behavior name="beh1">
        <serviceMetadata httpGetEnabled="true" />
        <serviceDebug includeExceptionDetailInFaults="True" />
        <dataContractSerializer maxItemsInObjectGraph="65536" />
      </behavior>
    </serviceBehaviors>
  </behaviors>
</system.serviceModel>

您可以尝试Fusion log viewer-


要发现CoreService PP DELL丢失的依赖项(程序集),这与WCF无关。搜索此网站以查找您得到的错误:“找到的程序集的清单定义与程序集引用不匹配”。@CodeCaster实际上无法找到此WCF服务的程序集。我重建了它,但它不工作。不管程序集中有什么,程序集清单不匹配。谢谢@CodeCaster我解决了它。我删除了构建文件夹中的所有内容并重建了它。但我面临另一个问题。以下是问题的链接: