Cor said:
Hi Owen,
First of all, if you next time have a message for this newsgroup, just ask
Error Creating Control on "VB.net" webform.
Sorry but I thought I did that? Perhaps I misunderstood your point, but I
did put "VB.NET" in the subject of my post. (note: I'm sorry if the
crosspost was inappropriate but I thought it was relevant to all those
newsgroups).
Do you see that ToolTip and a grey box (you said a red text, but I don't
know if it is in a grey box)
Yes, there was a grey box with red text and an "i" icon which had a tooltip.
The tooltip said something about "object reference is not an instance of an
object".
Let me know if you did find the sollution or has some more information about
the error?.
I found that it indicated a problem in the code underlying my control.
(which was a custom control based on a 3rd party Grid control). I
uninstalled and re-installed my 3rd party Grid control and this solved the
underlying problem in the code.... which removed the "Error Creating
Control" problem.
A search on Google newsgroups reveals that many people have been mystified
by "Error Creating Control".
It seems the main problem is the fact the error message is hidden inside a
tooltip, plus the fact it gives no indication of "where" the error occurrs.
It's so unhelpful, and the fact the project compiles perfectly just adds to
the mystery.
I now understand that certain things may work fine at Runtime but not at
Design time (for example if you use the Request object, which returns NULL
at design time). I would like to think MS will improve the way this is
handled in a future version of VS.NET so that it's clearer both what the
error is, and where it occurred. It would be better to show the error
itself instead of the insane "Error Creating Control", and perhaps make
clear when an error is a Design Time error *only*.
Owen