1

I'm hosing a webservice in IISExpress and can browse to the endpoint using my browser so I know its alive. I'm writing a test application in WinForms and want to call a method on the service.

When I try and step into the call, I get this error.

IISExpress: Unable to automatically step into the server. the remote procedure cannot be debugged.

The webservice is set to be in debug mode, I'm wondering is there some setting which is preventing IISExpress from allowing debugging?

Update: I'm wondering if this is because the Test app doesn't have any .pdb files loaded into memory as these are stored elsewhere within the webservice folder, NOT the test app bin folder. I've tried to specify the folder of the bin folder where the app_code.pdb is located for the webservices, but still not luck.

So how is this done? I'm stumped.

Update 2: Still haven't been able to get this to work after a week of looking into it.

So here are my basic requirements: I need a 1) WinForms app to 2) be able to make calls to different webservices and 3) be able to step into each service call. The services are hosted as sub-applications of a root website using IISExpress. The WinForm test app is making the web service calls, but IISExpress is started via a Nant task. The webservices are old web site type projects, so they have app_code.dll files. I've tried setting symbol paths up to point to the built pdb file, but I then get an error along the lines of:

"A matching symbol file was not found in this folder".

I never thought debugging webservices would be this difficult?!?

4

2 回答 2

1

1) Reference the DLL of your webservice in your test project.

2) IISExpress is a completely different application then your winforms application, just having the DLLs referenced still won't automatically allow you to step into your web service code. You need to attach to the IISExpress.exe process. When you start your winforms project, Hit Debug...Attach to Process and choose IISExpress.exe. Now you should be able to actually step into your web service code.

于 2013-03-01T17:36:43.803 回答
1

我意识到这是一个较晚的响应,但这是我遇到的问题(尤其是在长时间离开 WCF 项目之后)。

确保在“服务器端”服务类代码中设置断点……而不是在“客户端”调用代码中。这样服务器端服务将必要的调试信息(您的断点)编译到服务器上的 .pdb 文件中。

于 2013-07-02T13:11:20.167 回答