473,748 Members | 10,569 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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


Jul 21 '05 #1
6 6117
Hello,

"owen" <sp**@spam.co m> 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
Jul 21 '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
Jul 21 '05 #3
It seems not to be a valid email address, so I didn't send a notify email.

Jul 21 '05 #4

"Cor" <no*@non.com> wrote in message
news:3f******** *************** @reader21.wxs.n l...
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
Jul 21 '05 #5

"Peter Huang [MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:mG******** ******@cpmsftng xa06.phx.gbl...
It seems not to be a valid email address, so I didn't send a notify email.


Hence the reason I put the valid email address in the post itself.

I never put my real email address in the message header, because it exposes
me to spambots who trawl newsgroups sending annoying unsolicited emails to
senders of all posts that include their real email address in the header.

Owen
Jul 21 '05 #6
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
Jul 21 '05 #7

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

Similar topics

1
2505
by: Scott McNair | last post by:
Hi all, Forgive me in advance for any noobish questions I may ask... although I'm well-versed in classic ASP/VB, I'm still learning some of the deeper nuances of .NET, particularly some of the ADO.NET 2.0 items. I'm trying to embed a datasource and a formview on the page, and I've done so as outlined in a "15 Minutes" article. I can use the datasource and formview just fine on the web end (I can select records, update them, delete...
6
3250
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." exception. The problem is that this exception isn't raised somewhere in a method, so it just shows up, and it causes the application to shut down. Is there anyway how to catch this kinds of exceptions? Can I put somewhere a
0
2135
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 really fine. No problems at all. But, when this control is placed inside a template of an Infragistics UltraWebTab control, somethings stranges happens: 1. When the WebForm is opened, an "Error Creating Control" message is displayed (for container...
8
2114
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 message, some entry in registry where a log is created (or that enables a log, trace, dump or whatever)... I'm a little bit frustated with this error :-( Tks, Ravi.
0
1372
by: Sanjay Pais | last post by:
I have created a custom control that inherits from the textbox control and adds a property to it. When I drop it on a page it renders just fine. However, When I drop it into a web user control (ascx) and drop this user control on my page I get the error "Error Rendering Control" - AEPLabel1
4
17346
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 runtime). Does it indicate a problem with References for example? Thanks Owen PS. replies cc'd by email appreciated. owen.southwood@mantix.com
1
3369
by: Light | last post by:
Re, I'm having 2 problems with the Telerik trial controls. I'm using the latest release. I'm using 2005 studio and most of the controls show up properly in the designer but the RadMenu does not. It says "Error Creating Control" and then a ton of errors. This occurs both when I use it and in the examples but it does render properly when built. If I drag/drop the control then it shows up properly but when I apply a theme and then...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9548
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8244
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.