views:

20

answers:

2

Has anyone had experience with VS2008 incorrectly identifying variables in the code-behind as not being defined on the .aspx page? How was this resolved? The page is executing properly without any runtime or compilation errors.

+1  A: 

Nevermind. Closing and re-opening the document in question seems to have resolved the problem. Anyone watch "The IT Crowd"? ... haha. "Have you tried turning it off and on again?" Seems to solve everything.

Kyle B.
This is a common issue with Visual Studio. Closing and re-opening the file and/or solution is the recommended solution.
Jason Berkan
A: 

Check out my answer to my question here: http://stackoverflow.com/questions/658490/web-site-reports-xxx-does-not-exist-in-current-context-after-upgrade-to-vs2008-sp/658681#658681

There is a hotfix for this if your getting the same issue I was.

JoshBerke