Fred Strauss
Fred Strauss

Reputation: 1475

Debugging RESTful WCF Service

I am attempting to debug a RESTful WCF service I've created using a web browser as my client. Initially things go well however after stopping the debug session and making some changes to my code when I restart it's as if the old code is still being run. My breakpoints are ignored and it's as if a process is not being stopped.

I am running the service within Visual Studio and here's the URL I am asking the browser to retrieve:

http://localhost:25000/IntegrationService.svc/DeskQueue/tophd

It's clear the proper method is being called but the breakpoint I have at the top of the method is being ignored. Is there some external process I need to stop?

Thanks for any help.

Upvotes: 1

Views: 2030

Answers (2)

Qué Padre
Qué Padre

Reputation: 2083

Maybe it would be more convenient to deploy your service on IIS (Project settings->Web->Use Local IIS Web server, Create virtual directory) and then debug the service from Visual Studio (Debug->Attach to process->w3wp.exe).

Upvotes: 2

Colin Smith
Colin Smith

Reputation: 12540

You need to kill Cassini (the WebDev Server) as it's holding on to your older built WCF Server code....it doesn't automatically reload the newer DLL.

There are a few options:

If you have some really exotic debug/test/run cycle then you could leverage a drop-in compatible replacement for Cassini that comes with source code.

http://cassinidev.codeplex.com/

Upvotes: 1

Related Questions