我有一个包含 WCF 库的 Web 应用程序。Web 应用程序在端口 64697 上运行,WCF 在端口 50128 上运行。通过运行 VS 2010 进行测试时,我可以转到 localhost:50128/eshop.svc 并查看 svc 页面。我需要做什么才能将项目发布到 IIS 开发服务器?IIS 设置为运行 WCF,因为我在其上放置了测试服务并且可以访问 wsdl。我在 wcf 库中有一个 eshopServive.svc。库名称是“company.EShop.WCF”
谢谢
网络配置片段
<services>
<!-- Note: the service name must match the configuration name for the service implementation. -->
<service name="company.eShop.Wcf.eShopWCFService"
behaviorConfiguration="MyServiceTypeBehaviors" >
<endpoint address="" binding="basicHttpBinding"
contract="Nad.CheckoutVendor.Interfaces.ICheckoutVendorService">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_ICheckoutVendorService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>