我在同一解决方案中运行WCF服务和Winform客户端,并且都在解决方案属性中设置为启动项目。
在我的客户端应用程序中,我向WCF服务发送请求以变更用户凭据/权限。我为此在WCF服务中设置了一个断点,但奇怪的是,这个断点永远不会被命中。虽然,如果我从客户端代码尝试使用F11(因为两个项目都在同一个解决方案中),它会给我“No Source Available”错误。
以下是无源可用屏幕的源文件信息...
Locating source for 'c:\BuildAgent\work\8689a06309d1ab0b\src\Castle.Core\DynamicProxy\Internal\CompositionInvocation.cs'. Checksum: MD5 {58 4e d2 46 37 96 c8 96 ae 5e 6b 8c ca f5 36 33}
The file 'c:\BuildAgent\work\8689a06309d1ab0b\src\Castle.Core\DynamicProxy\Internal\CompositionInvocation.cs' does not exist.
Looking in script documents for 'c:\BuildAgent\work\8689a06309d1ab0b\src\Castle.Core\DynamicProxy\Internal\CompositionInvocation.cs'...
Looking in the projects for 'c:\BuildAgent\work\8689a06309d1ab0b\src\Castle.Core\DynamicProxy\Internal\CompositionInvocation.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\BuildAgent\work\8689a06309d1ab0b\src\Castle.Core\DynamicProxy\Internal\CompositionInvocation.cs.
The debugger could not locate the source file 'c:\BuildAgent\work\8689a06309d1ab0b\src\Castle.Core\DynamicProxy\Internal\CompositionInvocation.cs'.
从这个错误消息中,我可以看到它引用了一些c:\ BuildAgent \ work \ path但它是如何选择这个路径的。我的源代码根本不在这个位置。
有谁知道这里有什么问题?
提前致谢。