0

以下に示すように、wcf サービスで standardEndpoints を使用しようとしています。「serviceHostingEnvironment に無効な子要素があります」というエラーが表示されます。

何か案は?

<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
  <standardEndpoints>
    <webscriptendpoint>
      <standardendpoint crossdomainscriptaccessenabled="true">
      </standardendpoint>
    </webscriptendpoint>
  </standardEndpoints>
</serviceHostingEnvironment>
4

1 に答える 1

1

<standardEndpoints>の子であり<system.serviceModel><serviceHostingEnvironment>以下の構成のようなものが必要です。

<system.serviceModel>
  <serviceHostingEnvironment aspNetCompatibilityEnabled="true">
  </serviceHostingEnvironment>
  <standardEndpoints>
    <webscriptendpoint>
      <standardendpoint crossdomainscriptaccessenabled="true">
      </standardendpoint>
    </webscriptendpoint>
  </standardEndpoints>
</system.serviceModel>
于 2012-05-22T22:51:06.770 に答える