を拒否された...私はもう呼び出すために管理することはできませんWCF Windowsサービスを持っている...私はいつもこのエラーが出る:WCF Windowsサービスへのアクセスは、私はそれを得ることはありません
はロードできませんでした。ファイルまたはアセンブリ 'Microsoft.VisualBasic、 バージョン= 8.0.0.0、Culture =ニュートラル、PublicKeyToken = b03f5f7f11d50a3a'または その依存関係の1つです。アクセスが拒否されました
私はいくつかの微調整を行ってから数日前まで完全に動作していました。今は私が何をしてもそれを取り除くことはできません。
サービスの設定ファイルは次のとおりです。
<system.serviceModel>
<services>
<service name="myService"
behaviorConfiguration="TransfertServiceBehavior">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8097/MyService"/>
</baseAddresses>
</host>
<endpoint address=""
binding="netTcpBinding"
bindingConfiguration="TransactionalBinding"
contract="myContract" />
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
</service>
</services>
<bindings>
<netTcpBinding>
<binding name="TransactionalBinding" transactionFlow="true" transferMode="Streamed"
maxReceivedMessageSize="1000000000">
<readerQuotas maxDepth="10000" maxStringContentLength="1000000000"
maxArrayLength="1000000000" maxBytesPerRead="10000"
maxNameTableCharCount="10000" />
<security mode="Transport" />
</binding>
</netTcpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="TransfertServiceBehavior">
<serviceMetadata httpGetEnabled="False"/>
<serviceDebug includeExceptionDetailInFaults="False"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
クライアント構成はここにある間:
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="NetTcpBinding_SI6ISupportTransfert" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="true" transferMode="Streamed"
transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
</netTcpBinding>
</bindings>
<client>
<endpoint address="net.tcp://localhost:8095/myService"
binding="netTcpBinding"
bindingConfiguration="NetTcpBinding_SI6ISupportTransfert"
contract="myContract" name="mySevice">
<identity>
<userPrincipalName value="[email protected]" />
</identity>
</endpoint>
</client>
</system.serviceModel>
この例外は、「アクセスが拒否されました」原因となるものを上の任意のアイデア?
あなたは何を正確にしましたか? –
使用している.NETのバージョンは?サービスが実行される身元を変更しましたか? –
サービスをどのように実行しますか?ネットワークドライバ経由でアプリケーションにアクセスしますか? – Jack