我试图从Silverlight调试我新创建的域名服务。但是,我注意到调试器不会在任何服务方法断点处停止。任何人都可以对此有所了解吗?提前谢谢......
//custom xaml control constructor
InitializeComponent();
MyProj.DomainService.DomainService1 _context = new MyProj.DomainService.DomainService1();
_context.Foo(); // last breakpoint stop
//Domain Serivce
[EnableClientAccess()]
public class DomainService1 : DomainService
{
[Invoke]
public string Foo()
{
return "Test"; //WON'T stop at this breakpoint
}
}