wcf 服务应用程序启动后,wcf 测试客户端报错,postman也访问不到,下面是我的代码
svg文件
cs接口文件
配置文件
```c#
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.7.2" />
<httpRuntime targetFramework="4.7.2" />
</system.web>
<system.serviceModel>
<serviceHostingEnvironment />
<behaviors>
<endpointBehaviors>
<behavior name="webBehavior">
<!--这里必须设置-->
<!--<webHttp />-->
<enableWebScript />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="metadataBehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl="http://192.168.2.6:8888/create-ui-api" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="metadataBehavior" name="create_ui_api.Views.system">
<endpoint binding="webHttpBinding" address="http://192.168.2.6:8888/create-ui-api" behaviorConfiguration="webBehavior" bindingConfiguration="webBinding" contract="create_ui_api.Controllers.systemI" />
<endpoint address="http://localhost:8888" binding="wsHttpBinding" bindingConfiguration="wsBinding" contract="create_ui_api.Controllers.systemI" />
<endpoint address="http://192.168.2.6:8888" binding="customBinding" bindingConfiguration="asmxbinding" contract="create_ui_api.Controllers.systemI" />
</service>
</services>
<bindings>
<customBinding>
<binding name="asmxbinding">
<textMessageEncoding maxReadPoolSize="2110" maxWritePoolSize="2132" messageVersion="Soap11"/>
<httpTransport />
</binding>
</customBinding>
<wsHttpBinding>
<binding name="wsBinding">
<security mode="None"/>
</binding>
</wsHttpBinding>
<webHttpBinding>
<binding name="webBinding" crossDomainScriptAccessEnabled="true">
</binding>
</webHttpBinding>
</bindings>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<!--
若要在调试过程中浏览 Web 应用程序根目录,请将下面的值设置为 True。
在部署之前将该值设置为 False 可避免泄露 Web 应用程序文件夹信息。
-->
<directoryBrowse enabled="true" />
</system.webServer>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<entityFramework>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
<connectionStrings>
<add name="create_ui_Entities" connectionString="metadata=res://*/create-ui-sql.csdl|res://*/create-ui-sql.ssdl|res://*/create-ui-sql.msl;provider=System.Data.SqlClient;provider connection string="data source=.;initial catalog=create-ui-sql;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
</connectionStrings>
</configuration>
```