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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With