0

問題は、ファイルが見つからないことでした。以下のコメントを参照してください。問題が解決しました。

VS 2010 から VS 2012 に移行しました。

それ以来、Web サービスも含む Web プロジェクトを開始すると、Web サービスに到達できなくなりました。VS 2010 では問題なく、IIS サーバーでも動作します。

server/MyComService.svc で Web サービスにアクセスしようとすると、「リソースが見つかりません」という 404 エラーが表示されます。

Web ページ自体は期待どおりに機能しています。

これは web.config でのサービスの定義ですが、VS 2010 と IIS サーバーで動作するため、エラーがあるとは思えません。

    <system.serviceModel>
    <services>
      <service name="MyComService" behaviorConfiguration="WebServiceBehaviour" >
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="WebServiceBinding" contract="MyComServiceInterface">
        </endpoint>
      </service>
    </services>
    <bindings>
      <basicHttpBinding>
        <binding name="WebServiceBinding" maxReceivedMessageSize="4000000">
          <readerQuotas maxStringContentLength="4000000" maxBytesPerRead="4000000" maxArrayLength="4000000" />
          <security mode="None"/>
        </binding>
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="WebServiceBehaviour">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>

また、エンドポイントのアドレス属性を設定してみましたが、それでもうまくいきませんでした。

変更する必要のある設定はありますか、または VS2012 で Web サービスを開始するにはどうすればよいですか?

前もって感謝します。

4

1 に答える 1

0

以下の情報に基づいて、別のことを試しました。

 Check to see if you have received the following update? http://support.microsoft.com/kb/894670 
于 2012-11-09T11:15:27.613 に答える