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 構成で何を変更する必要がありますか? 私のコードは 2 つのプロジェクトで実行されています。

4

1 に答える 1

0

サービス名と契約名は完全修飾名である必要があります。

これをチェックして

于 2013-02-21T18:02:39.810 に答える