Warning: The class name '?' is not a valid identifier for this language - cannot find

M

Marek Zgadzaj

I've got the following warning: "The class name '?' is not a valid
identifier for this language. "
I could not find what is the reason of this warning because the line/column
number are 0.
There is no class named "?" in my code. Google and VS Search know nothing
about this warning.

Here is the screen shot: http://www.zgadzaj.pl/temp/warning.jpg

Can someone help me?
Marek
 
P

PokerMan

Do a search on your prject for the ? symbol.

I suspect somewhere you meant to do this:

int? myVar = 10;

u have done this

int ? = 10;

Just a guess. I would have expected more than a warning for such a mistake
tho. But a search for ? should uncover it.
 
M

Marek Zgadzaj

PokerMan,

Thank for your post.
Do a search on your prject for the ? symbol.
I suspect somewhere you meant to do this:
int? myVar = 10;
u have done this
int ? = 10;
Just a guess. I would have expected more than a warning for such a mistake
tho. But a search for ? should uncover it.

I searched current document and found 2 of "?" - both inside the strings. I
closed the document to see if the warning was related to the document
itself. And now I saw the error in designer:
http://www.zgadzaj.pl/temp/error.jpg

I am afraid that I am forced to restore the whole project from last backup.
I do not know if it is possible to repair the designer code.

Marek
 
M

Marek Zgadzaj

I searched current document and found 2 of "?" - both inside the strings.
I closed the document to see if the warning was related to the document
itself. And now I saw the error in designer:
http://www.zgadzaj.pl/temp/error.jpg

I am afraid that I am forced to restore the whole project from last
backup. I do not know if it is possible to repair the designer code.

After close the error message, the error disappeared. Now all is correct.
I've backuped the project.
Marek
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top