Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to apply a change while debugging

I'm getting a strange error when attempting to debug a console app that's referencing a workflow service.

'Unable to apply a change while debugging. Source file '...\myService\obj\Debug\TemporaryGeneratedFile_...cs' was reloaded. You must restart the debugging session.'

I'm not doing anything out of the ordinary and this comes up as soon as I start debugging. There is a similar question here Debugging issue in VS2010 but the only answers suggest restarting visual studio/development server which hasn't helped me. Does anyone have a better explanation and or possible fix for this? I've tried restarting everything and looking into the temporary file referenced in the error message with no luck.

like image 747
aw04 Avatar asked Sep 27 '13 18:09

aw04


People also ask

Is it possible to change the value of a variable while debugging?

Can you change the value of a variable while debugging a C# application? Yes, if you are debugging via Visual Studio.NET, just go to Immediate window.


1 Answers

I got this issue in VS 2012, and I wasn't even debugging - I was trying to deploy. Restarting both VS and my IIS instance did the trick.

like image 117
baker.nole Avatar answered Oct 24 '22 04:10

baker.nole