0

http://msdn.microsoft.com/en-us/library/ms733069.aspxのように wcf をホストしました。

クライアント アプリケーションでサービス参照 'http://localhost:8000/ServiceModelSamples/service' を追加すると、次のエラーが発生します。

There was an error downloading 'http://localhost:8000/ServiceModelSamples/service'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8000
Metadata contains a reference that cannot be resolved: 'http://localhost:8000/ServiceModelSamples/service'.
Could not connect to http://localhost:8000/ServiceModelSamples/service. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8000. 
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8000
If the service is defined in the current solution, try building the solution and adding the service reference again.

C:\Windows\system32>netsh http add urlacl url=http://Service:8000/ServiceModelSamples/service/user=mydomain\myuser. また、ブラウザからhttp://localhost:8000/ServiceModelSamples/service/を表示できません 。

4

1 に答える 1

0

サービス(services.msc)からサービス「WCFWindowsServiceSample」を開始したので、この問題は解決しました

于 2011-08-03T05:59:38.087 に答える