Asp.net `standardEndpoint`causing Exception`绑定实例已与侦听URI关联`
我使用ASP.Net路由在Asp.net `standardEndpoint`causing Exception`绑定实例已与侦听URI关联`,asp.net,wcf,iis-8,Asp.net,Wcf,Iis 8,我使用ASP.Net路由在127.0.0.1(在Win8+IIS8中)上托管服务,如 端点的默认行为,如 <standardEndpoints> <webHttpEndpoint> <standardEndpoint helpEnabled="false" automaticFormatSelectionEnabled="true" fau
127.0.0.1
(在Win8+IIS8中)上托管服务,如
端点的默认行为,如
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint helpEnabled="false"
automaticFormatSelectionEnabled="true"
faultExceptionEnabled="false"
crossDomainScriptAccessEnabled="true"
defaultOutgoingResponseFormat="Json"
hostNameComparisonMode="StrongWildcard"
transferMode="Streamed">
<security mode="None" />
</standardEndpoint>
</webHttpEndpoint>
</standardEndpoints>
这些设置导致错误绑定实例已关联到侦听URI'shttp:///Services/IMAPI/'. 如果两个端点想要共享同一个ListenUri,它们还必须共享同一个绑定对象实例。这两个冲突的端点要么是在AddServiceEndpoint()调用、配置文件中指定的,要么是AddServiceEndpoint()和config的组合。
我不确定这个错误,为什么会发生,因为我在WCF方面没有经验,但这个错误会继续删除web.config的standardEndpoint配置。您需要将服务URI更改为其他端口。例如,端口28900或其他
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint helpEnabled="false"
automaticFormatSelectionEnabled="true"
faultExceptionEnabled="false"
crossDomainScriptAccessEnabled="true"
defaultOutgoingResponseFormat="Json"
hostNameComparisonMode="StrongWildcard"
transferMode="Streamed">
<security mode="None" />
</standardEndpoint>
</webHttpEndpoint>
</standardEndpoints>