What does this mean? There is no line or column where I can find the error and I can't see my design.
I've searched the code for questionmarks (?) but I don't find any.
Also I'm creating a lottery program for an assignment in my C#.NET class.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AmandaPosted Feb 10, 2014, 5:29 AM
VulpesPosted Feb 6, 2014, 11:45 AM
You won't necessarily need to rewrite the code. You might be able to just copy the .cs files (apart from the one you were working on when this problem occurred) across to the new project.
I found where this bug was reported on Microsoft Connect and the person who reported it did something like this to preserve as much of the original work as possible:
http://connect.microsoft.com/VisualStudio/feedback/details/497218/the-class-name-is-not-a-valid-identifier-for-this-language-can-reproduce-w-vs-2008
AmandaPosted Feb 6, 2014, 9:57 AM
And I was looking at your link and tried to open the link that was suggested there, it didn't work. Is there really no way to fix it without re-writing the whole code?
VulpesPosted Feb 6, 2014, 7:07 AM
You might be able to get rid of it by simply closing the designer window (or the whole solution) and then reopening it.
Otherwise, I'd check out this thread:
http://social.msdn.microsoft.com/Forums/windows/en-US/f2c1a027-3e49-4f7f-a4c2-c91a8fde25fc/the-class-name-is-not-a-valid-identifier-for-this-language?forum=winformsdesigner