473,395 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

"Error Creating Control" on ASP.NET web form.

Generally speaking, what does it mean when I see a "button" with red text
showing this message instead of the control I've dragged onto the web form
in Design View.? (But the page works fine at runtime). Does it indicate
a problem with References for example?

Thanks
Owen

PS. replies cc'd by email appreciated.
ow************@mantix.com


Nov 20 '05 #1
4 17323
Hello,

"owen" <sp**@spam.com> schrieb:
Generally speaking, what does it mean when I see a
"button" with red text showing this message instead of
the control I've dragged onto the web form in Design
View.? (But the page works fine at runtime). Does
it indicate a problem with References for example?
You may want to turn to the ng for ASP.NET Web Controls questions:

news://msnews.microsoft.com/microsof...et.webcontrols

Web interface:

http://msdn.microsoft.com/newsgroups...et.webcontrols
PS. replies cc'd by email appreciated.


No.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
Cor
Hi Owen,
First of all, if you next time have a message for this newsgroup, just ask
Error Creating Control on "VB.net" webform.

I don't know this message but I saw this on MSDN.

http://msdn.microsoft.com/library/de...bformspage.asp

\\\
If the Web Forms Designer cannot render a Web server control correctly, it
displays a grey box with the text "Error Creating Control." This often means
that the ASP.NET syntax of the control is incorrect - for example, if the
runat="server" attribute is missing in a Web server control element, you
will see this error. Point to the information icon (); a ToolTip is
displayed with details about the error.
///
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)

Let me know if you did find the sollution or has some more information about
the error?.

Cor
Nov 20 '05 #3

"Cor" <no*@non.com> wrote in message
news:3f***********************@reader21.wxs.nl...
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
Nov 20 '05 #4
Cor
Owen,
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).
It is not important, but I changed ASP.NET in VB.NET in the reply see your
original post.
ASP.NET seems sometimes a red sign in this newsgroup for "this is not for
us".
The tooltip said something about "object reference is not an instance of an object".
That is of course important information
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.
Cool
A search on Google newsgroups reveals that many people have been mystified
by "Error Creating Control".
I think webforms are in there childtime, yesterday I saw something strange
with code. It had to be done with HTML tags.
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*.

I do n't know if it helps for this, but an advice from someone active in
this newsgroup is set "Option Strict On" in the top of your code form.
And sometimes that helps you to find the error at design time (but your
problem is oposite I know).

But I am glad the problem is solved and that is the main thing.

Cor
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: owen | last post by:
Generally speaking, what does it mean when I see a "button" with red text showing this message instead of the control I've dragged onto the web form in Design View.? (But the page works fine at...
6
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
3
by: Paul | last post by:
I have an Access 2000 database with a form that is giving me some major headaches. When you open the form, it displays all records and allows editing, but has AllowAdditions set to False so that...
0
by: Arne Styve | last post by:
Hi, I am developing a small application in C# where I call a C API. This application is to control some videocards from DataPath. After installing the graphichs card and the videoswitch cards...
0
by: Ravi Ambros Wallau | last post by:
Hi: I've created a custom control - a grid that uses Infragistics to display some filters, the grid itself, and some buttons. Well, when using this control directly on WebForm, everything works...
8
by: Ravi Ambros Wallau | last post by:
Hey guys: What can I do when an "Error Creating Control" is displayed on the form (instead of the control), and a tooltip indicating the error never is displayed? Is there some log, some hidden...
1
by: Flack | last post by:
Hey guys, Here is whats happening. I have a StringBuilder, a TextBox, and a TabControl with one TabPage. On my main form, I created and displayed a fairly big maze. While the app is solving...
0
by: davidr | last post by:
Hi, I have a panel that I load user Control in no problem. The problem arrises when I do a post back on one of these user controls. I have button it does a click event. In this click event I...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
10
by: Roger | last post by:
ms-access97 & sql server2005 two tables tblItem tblItemFeature form frmItem contains subform frmItemFeature each form is based on their respective table creating new record and filling in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.