2011-07-21 11 views
0

私がf5を押すと、ウェブブラウザが起動せず、エンドポイントが公開されます。vnetでWCFを作成すると、すべてのエンドポイントを持つWebページを実行して表示するにはどうすればよいですか?

私のサービスでこの行動をどうやって得るのですか?

<?xml version="1.0"?> 
<configuration> 

    <system.web> 
    <compilation debug="true" targetFramework="4.0" /> 
    </system.web> 
    <system.serviceModel> 
    <behaviors> 
     <serviceBehaviors> 
     <behavior> 
      <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> 
      <serviceMetadata httpGetEnabled="true"/> 
      <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --> 
      <serviceDebug includeExceptionDetailInFaults="false"/> 
     </behavior> 
     </serviceBehaviors> 
    </behaviors> 
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 
    </system.serviceModel> 
<system.webServer> 
    <modules runAllManagedModulesForAllRequests="true"/> 
    </system.webServer> 

</configuration> 

答えて

3

それはないでしょう:

私のweb.configファイルは次のようになります。プロジェクトをWCFサービスプロジェクトとして設定する場合は、WCFサービスのホスティングウィンドウを実行する必要があります。ブラウザで表示するには、ホストされているアドレスを手動で参照する必要があります。

関連する問題