0
 <system.serviceModel>
    <behaviors>
        <serviceBehaviors>
           <behavior name="ServiceBehavior">
               <serviceMetadata httpGetEnabled="true"/>
               <serviceDebug includeExceptionDetailInFaults="true"/>
           </behavior>
        </serviceBehaviors>
        <endpointBehaviors>
            <behavior name="EndpBehavior">
                <webHttp/>
            </behavior>
        </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
    <standardEndpoints>
        <webScriptEndpoint>
             <standardEndpoint name="" crossDomainScriptAccessEnabled="true" />
        </webScriptEndpoint>
    </standardEndpoints>
    <services>
        <service behaviorConfiguration="ServiceBehavior" name="Service">
            <endpoint address="" binding="webHttpBinding" contract="IService" behaviorConfiguration="EndpBehavior"/>
        </service>
    </services>
</system.serviceModel>

在 IIS 上部署 WCF 服务后,我需要在 Web 配置中进行哪些更改?我的代码正在运行两个项目。

4

1 回答 1

0

Your service and contract name should be a fully qualified names.

check this

于 2013-02-21T18:02:39.810 回答