链接(http://futuregreatdoctor.somee.com/WcfSvcSiteMCAT/service.svc)它工作。但我将我的服务上传给某人,它不起作用:( (http://nck.somee.com/Server/Service1.scv)
网页配置
<?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>
请帮帮我!