WCF rest服务无法与iis express中的设置多个绑定“true”一起工作
WCF Rest服务无法与iis express中的设置多个绑定“true”一起工作。 我在iis express中从visual studio运行服务,并设置了2个绑定地址 1.本地主机2。我的电脑ip地址。 我想从android项目中实现的服务调试VisualStudio中的服务。 若我将multiplesitebinding设置为true,那个么它会给出相对地址的错误。 若我将绑定设置为true,那个么就不能运行具有2个绑定地址的项目。 所以我的问题是如何在VisualStudio中调试服务。 我的wcf服务网络配置应该是什么。 我的网络配置是这样的WCF rest服务无法与iis express中的设置多个绑定“true”一起工作,wcf,rest,iis,model-view-controller,Wcf,Rest,Iis,Model View Controller,WCF Rest服务无法与iis express中的设置多个绑定“true”一起工作。 我在iis express中从visual studio运行服务,并设置了2个绑定地址 1.本地主机2。我的电脑ip地址。 我想从android项目中实现的服务调试VisualStudio中的服务。 若我将multiplesitebinding设置为true,那个么它会给出相对地址的错误。 若我将绑定设置为true,那个么就不能运行具有2个绑定地址的项目。 所以我的问题是如何在VisualStudio中调试服
<behaviors>
<serviceBehaviors>
<behavior name="LotOfObjectsBehavior">
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceMetadata httpGetEnabled="true"/>
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="web">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="ExtendedConfiguration" maxReceivedMessageSize="2147483647" maxBufferPoolSize="524288">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<security mode="None">
<message establishSecurityContext="false"/>
</security>
</binding>
</wsHttpBinding>
<webHttpBinding>
<binding name="WebBinding" />
</webHttpBinding>
</bindings>
<services>
<service name="Nop.Plugin.Misc.WebServices.NopService" behaviorConfiguration="LotOfObjectsBehavior">
<endpoint binding="wsHttpBinding" bindingConfiguration="ExtendedConfiguration" contract="Nop.Plugin.Misc.WebServices.INopService" />
<endpoint address="http://localhost:1111/Plugins/Misc.WebServices/Remote/NopService.svc/web" behaviorConfiguration="web"
bindingConfiguration="WebBinding" binding="webHttpBinding" contract="Nop.Plugin.Misc.WebServices.INopService" />
<endpoint address="Mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<!--<host>
<baseAddresses>
<add baseAddress="http://192.168.1.15:8080/Plugins/Misc.WebServices/Remote"/>
</baseAddresses>
</host>-->
</service>
</services>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
服务是从LAN中连接的其他pc使用的。您的终结点地址不能仅将地址更改为rest或类似的内容,这与使用wshttpbinding的第一个终结点不同,应该可以工作。因为它在IIS express上,我假设地址是这样的:我解决这些问题。。。我只是像上面评论的那样添加了基址。只需在端点addrest as=web中取消注释和更改即可。一切都很好。。。谢谢