IIS 5.1にWCFサービスを展開しようとしています。私はthisここに答えを見つけた - これは同じ質問と思われる。私はこれに従うし、サービスページを参照しようとすると、しかし、私は次のエラーを取得する:IIS 5.1でWCFサービスを展開する
A name was started with an invalid character. Error processing resource 'http://MyComputerName/MyService/MyService...
<%@ ServiceHost Language="C#" Debug="true" Service="ServiceNamespace.MyService" CodeBehind="MyService.sv...
私はIISで仮想ディレクトリを作成し、私のソリューションフォルダのサブディレクトリにそれを指摘している - と仮想ディレクトリに公開しています。
私のweb.configのサービスノードは、次のようになります。
<services>
<service name="ServiceNamespace.MyService" behaviorConfiguration="ServiceNamespace.MyService">
<!-- Service Endpoints -->
<endpoint address="" binding="basicHttpBinding" contract=" ServiceNamespace.IMyService">
<!--
Upon deployment, the following identity element should be removed or replaced to reflect the
identity under which the deployed service runs. If removed, WCF will infer an appropriate identity
automatically.
<identity>
<dns value="localhost"/>
</identity>
-->
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
これは、コンパイルし、VS2008の下で実行したときに細かい実行されます。誰かがこれに正しい方向に私を向けることができますか?ファイルの後ろにコードがあることを
分離コード=「〜/にApp_Code/YourServiceClass.cs」
ありません.App_Codeディレクトリはありませんが、MyService.svc.csを〜/ MyService.svc.csに置き換えても差異はありません。 –