Three times in the last two weeks, I have encountered the error message:
The name 'ErrorMessage' does not exist in the current context
The error sometimes appears and sometimes it doesn't.
I couldn't find anything wrong with the code but after a bit of a rummage I found this thread in the asp.net forums.
http://forums.asp.net/t/1006588.aspx
The first solution worked for me. Viz:
From the VWD menu, choose "Website> Start Options>Build."
Then in the top dropdown box choose "No Build".
Imar, do you have a more elegant explanation and fix?
PS - This happened most recently in step 5 on page 594
Ken