Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/336.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上的XML分析错误_C#_Xml_Wcf - Fatal编程技术网

C# WCF上的XML分析错误

C# WCF上的XML分析错误,c#,xml,wcf,C#,Xml,Wcf,当我开始运行WCF服务时。 访问.svc HotelService.scv <%@ ServiceHost Language="C#" Debug="true" Service="HotelService.Hotel" %> web.Config 您的web服务中是否有错误?如果我在笔记本电脑上运行web服务,但在我的电脑上没有显示错误消息。如果我在笔记本电脑上运行web服务,但在我的电脑上没有显示错误消息。Windows 10和Windows 8.1中的这种差异是否

当我开始运行
WCF
服务时。 访问
.svc

HotelService.scv

<%@ ServiceHost Language="C#" Debug="true" Service="HotelService.Hotel" %>

web.Config



您的web服务中是否有错误?如果我在笔记本电脑上运行web服务,但在我的电脑上没有显示错误消息。如果我在笔记本电脑上运行web服务,但在我的电脑上没有显示错误消息。Windows 10和Windows 8.1中的这种差异是否不兼容?因为windows 10.NET 4.6和windows 8.1.NET 4.5中的WCF服务
<appSettings>
  <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
  <compilation debug="false" targetFramework="4.5.2" />
  <httpRuntime targetFramework="4.5.2"/>
</system.web>

<!-- Service Model-->
<system.serviceModel>

  <bindings>
    <wsHttpBinding>
      <binding name="wsHttp" messageEncoding="Mtom"
               maxReceivedMessageSize="1000000000">
        <readerQuotas maxArrayLength="1000000000"/>
        <security mode="None"/>
      </binding>
    </wsHttpBinding>
  </bindings>

  <behaviors>
    <serviceBehaviors>
      <behavior name="mexBehavior">
        <serviceMetadata httpGetEnabled="true"/>
        <serviceDebug includeExceptionDetailInFaults="true"/>
      </behavior>
    </serviceBehaviors>
  </behaviors>

  <services>
    <service behaviorConfiguration="mexBehavior"
             name="HotelService.Hotel">
      <endpoint address="http://localhost/HotelService/HotelService.svc"
                binding="wsHttpBinding"
                bindingConfiguration="wsHttp"
                contract="HotelService.IHotel" />
      <host>
        <baseAddresses>
          <add baseAddress="http://localhost"/>
        </baseAddresses>
      </host>
    </service>
  </services>

</system.serviceModel>

<system.webServer>
  <modules runAllManagedModulesForAllRequests="true"/>
  <!--
      To browse web app root directory during debugging, set the value below to true.
      Set to false before deployment to avoid disclosing web app folder information.
    -->
  <directoryBrowse enabled="true"/>
</system.webServer>