1

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.

Fred Strauss
  • 1,365
  • 2
  • 12
  • 21

2 Answers2

2

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).

Qué Padre
  • 1,805
  • 2
  • 20
  • 35
1

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/

Community
  • 1
  • 1
Colin Smith
  • 11,811
  • 4
  • 34
  • 44