a blog for those who code

Monday, 21 July 2014

C# : Cannot obtain value of local or argument as it is not available at this instruction pointer

In this post we will show you how to solve "Cannot obtain value of local or argument as it is not available at this instruction pointer, possible because it has been optimized away" when you are debugging from IIS.

If you want to debug your application which is hosted in IIS, you have to first attach that process with your Visual Studio. Now when you have successfully attached the process, and you wanted to see value of a particular parameter, you will get to see this error.

To solve this error when you are publishing your web application/ website choose Configuration as Debug - Any CPU under settings tab.



Please Like and Share the Blog, if you find it interesting and helpful.

No comments:

Post a Comment