サービスをリモートでデバッグしようとしていますか?その場合は、リモートコンピュータ上でVSリモートデバッガを実行する必要があります。
ServiceHost MyServiceHost = new ServiceHost(myService, myBaseAddress);
#if CONFIG = "Debug"
//set Service Debug Behavior (for security should not be enabled during deployment)
Description.ServiceDebugBehavior sdb = MyServiceHost.Description.Behaviors.Find<Description.ServiceDebugBehavior>();
if (sdb == null) {
sdb = new Description.ServiceDebugBehavior();
MyServiceHost.Description.Behaviors.Add(sdb);
}
sdb.IncludeExceptionDetailInFaults = true;
#endif
MyServiceHost.AddServiceEndpoint(typeof(IMyService), new NetTcpBinding(), myBaseAddress);
MyServiceHost.Open();
シンボルはロードされていますか? PDBファイル..... – Gabe
デバッグ時にブレークポイントが赤い点または赤いリングに空の中心があるとしますか? –
PDBファイルに言及している出力ウィンドウに何も表示されませんか? – DashRantic