optimization in c#?

I am running windows 7, VS 2013 and wcf server application. The server application which gives the following message when I try to step into the code (F11) in Debug.

Cannot obtain value of local or arguement 'msgData'  as it is not available at this instruction pointer, possibly because it has been optimized away

However when I look at the Optimization flag under "Build" is not switched on. On a different Windows 7 laptop with VS 2013 it works ok. Any idea why it is failing with this message

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Is this a Debug build or Release build?

pclarke7Author Commented:
Hi Saige,
it is a debug build

Miguel OzSoftware EngineerCommented:
Possible solutions: (assume that your app has debug as active configuration build)
1. Clean-up and rebuild the solution.
2. Verify & set Debug Info mode to “full” under “Advanced Build Settings”:
Right click the Project
Select option “Properties”
Go to Build -> Advanced -> Debug Info ... set to "full".

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pclarke7Author Commented:
Hi Miguel,
thanks for that. Clean up and re-build seems to have done the trick and I am now able to debug.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.