鏈接(http://futuregreatdoctor.somee.com/WcfSvcSiteMCAT/service.svc)它工作 。但是我上傳我的服務以棒球,它不工作:((http://nck.somee.com/Server/Service1.scv)將WCF服務上傳到somee.com主機?
的Web.config
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="web">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true">
<baseAddressPrefixFilters>
<add prefix="http://nck.somee.com/Server/"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
<services>
<service name="Server.Service1">
<endpoint address="" binding="webHttpBinding" contract="Server.IService1" behaviorConfiguration="web"/>
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
<system.webServer>
<handlers>
<add name="Service1.svc" verb="Service1" path="Service1.svc" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</handlers>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
請幫助我!
這是一個錯字。 http://meta.stackexchange.com/q/196985/232821 –