Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > See "what's going on" when an "Error Creating Control" message is displayed

Reply
Thread Tools

See "what's going on" when an "Error Creating Control" message is displayed

 
 
Ravi Ambros Wallau
Guest
Posts: n/a
 
      06-09-2005
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.


 
Reply With Quote
 
 
 
 
Roy
Guest
Posts: n/a
 
      06-09-2005
In your aspx code, locate the troublesome control in question and place
"runat=server" (without the quotes) inside it's tag.

 
Reply With Quote
 
 
 
 
Ravi Ambros Wallau
Guest
Posts: n/a
 
      06-09-2005
The error only happens at design time.
My dev enviroment is a Visual Studio .NET 2003 + Infragistics NetAdvantage
2005. I've created a custom control, and when this control is placed inside
a control of Infragistics, the error occours.
The strange thing is that, if I go to HTML view and BACK, everything is
fine. But if I change something in design mode, the error will occours until
I reopen the page.
It's really strange, and the tooltip baloon is _not_ displayed.
I just would like to know what's the error...

"Roy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> In your aspx code, locate the troublesome control in question and place
> "runat=server" (without the quotes) inside it's tag.
>



 
Reply With Quote
 
lisa@starways.net
Guest
Posts: n/a
 
      06-10-2005
Hey Ravi,

Open up the code for your custom control. Then go to Configuration
Properties/Debugging, and set the Start Action to "Start External
Program". Browse to devenv.exe (that's the VS.NET executable).

Hit run, and it should open a new instance of VS.NET. Set breakpoints
in the first instance, and then do your stuff in the second instance.
When you put your custom control into the Infragistics control in the
second instance, the custom control's code will run in the first
instance, and you should be able to debug.

Lisa


Ravi Ambros Wallau wrote:
> The error only happens at design time.
> My dev enviroment is a Visual Studio .NET 2003 + Infragistics NetAdvantage
> 2005. I've created a custom control, and when this control is placed inside
> a control of Infragistics, the error occours.
> The strange thing is that, if I go to HTML view and BACK, everything is
> fine. But if I change something in design mode, the error will occours until
> I reopen the page.
> It's really strange, and the tooltip baloon is _not_ displayed.
> I just would like to know what's the error...
>
> "Roy" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) oups.com...
> > In your aspx code, locate the troublesome control in question and place
> > "runat=server" (without the quotes) inside it's tag.
> >


 
Reply With Quote
 
Ravi Ambros Wallau
Guest
Posts: n/a
 
      06-10-2005
I'll try.
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Hey Ravi,
>
> Open up the code for your custom control. Then go to Configuration
> Properties/Debugging, and set the Start Action to "Start External
> Program". Browse to devenv.exe (that's the VS.NET executable).
>
> Hit run, and it should open a new instance of VS.NET. Set breakpoints
> in the first instance, and then do your stuff in the second instance.
> When you put your custom control into the Infragistics control in the
> second instance, the custom control's code will run in the first
> instance, and you should be able to debug.
>
> Lisa
>
>
> Ravi Ambros Wallau wrote:
>> The error only happens at design time.
>> My dev enviroment is a Visual Studio .NET 2003 + Infragistics
>> NetAdvantage
>> 2005. I've created a custom control, and when this control is placed
>> inside
>> a control of Infragistics, the error occours.
>> The strange thing is that, if I go to HTML view and BACK, everything is
>> fine. But if I change something in design mode, the error will occours
>> until
>> I reopen the page.
>> It's really strange, and the tooltip baloon is _not_ displayed.
>> I just would like to know what's the error...
>>
>> "Roy" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed) oups.com...
>> > In your aspx code, locate the troublesome control in question and place
>> > "runat=server" (without the quotes) inside it's tag.
>> >

>



 
Reply With Quote
 
lisa@starways.net
Guest
Posts: n/a
 
      06-10-2005
Oh, and make sure that you set the control project to be the startup
project in the first instance.

Lisa

Ravi Ambros Wallau wrote:
> I'll try.
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) oups.com...
> > Hey Ravi,
> >
> > Open up the code for your custom control. Then go to Configuration
> > Properties/Debugging, and set the Start Action to "Start External
> > Program". Browse to devenv.exe (that's the VS.NET executable).
> >
> > Hit run, and it should open a new instance of VS.NET. Set breakpoints
> > in the first instance, and then do your stuff in the second instance.
> > When you put your custom control into the Infragistics control in the
> > second instance, the custom control's code will run in the first
> > instance, and you should be able to debug.
> >
> > Lisa
> >
> >
> > Ravi Ambros Wallau wrote:
> >> The error only happens at design time.
> >> My dev enviroment is a Visual Studio .NET 2003 + Infragistics
> >> NetAdvantage
> >> 2005. I've created a custom control, and when this control is placed
> >> inside
> >> a control of Infragistics, the error occours.
> >> The strange thing is that, if I go to HTML view and BACK, everything is
> >> fine. But if I change something in design mode, the error will occours
> >> until
> >> I reopen the page.
> >> It's really strange, and the tooltip baloon is _not_ displayed.
> >> I just would like to know what's the error...
> >>
> >> "Roy" <(E-Mail Removed)> wrote in message
> >> news:(E-Mail Removed) oups.com...
> >> > In your aspx code, locate the troublesome control in question and place
> >> > "runat=server" (without the quotes) inside it's tag.
> >> >

> >


 
Reply With Quote
 
Ravi Ambros Wallau
Guest
Posts: n/a
 
      06-10-2005
Doesn't seem to work.
The problem is not in runtime, but in design mode.
Everything works fine when the application is being debugged.
Is there some log where the erros are stored?

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Oh, and make sure that you set the control project to be the startup
> project in the first instance.
>
> Lisa
>
> Ravi Ambros Wallau wrote:
>> I'll try.
>> <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed) oups.com...
>> > Hey Ravi,
>> >
>> > Open up the code for your custom control. Then go to Configuration
>> > Properties/Debugging, and set the Start Action to "Start External
>> > Program". Browse to devenv.exe (that's the VS.NET executable).
>> >
>> > Hit run, and it should open a new instance of VS.NET. Set breakpoints
>> > in the first instance, and then do your stuff in the second instance.
>> > When you put your custom control into the Infragistics control in the
>> > second instance, the custom control's code will run in the first
>> > instance, and you should be able to debug.
>> >
>> > Lisa
>> >
>> >
>> > Ravi Ambros Wallau wrote:
>> >> The error only happens at design time.
>> >> My dev enviroment is a Visual Studio .NET 2003 + Infragistics
>> >> NetAdvantage
>> >> 2005. I've created a custom control, and when this control is placed
>> >> inside
>> >> a control of Infragistics, the error occours.
>> >> The strange thing is that, if I go to HTML view and BACK, everything
>> >> is
>> >> fine. But if I change something in design mode, the error will occours
>> >> until
>> >> I reopen the page.
>> >> It's really strange, and the tooltip baloon is _not_ displayed.
>> >> I just would like to know what's the error...
>> >>
>> >> "Roy" <(E-Mail Removed)> wrote in message
>> >> news:(E-Mail Removed) oups.com...
>> >> > In your aspx code, locate the troublesome control in question and
>> >> > place
>> >> > "runat=server" (without the quotes) inside it's tag.
>> >> >
>> >

>



 
Reply With Quote
 
lisa@starways.net
Guest
Posts: n/a
 
      06-10-2005
Design time for your page is run time for the code inside your
controls. If you set a breakpoint in the Load method in the control
code (in the first instance), do you hit it when you add the control to
the page (in the second instance)? If not, you aren't debugging the
control. Maybe you have a copy of the custom control's dll in
PublicAssemblies? If you do, that'd mess up the debug process, because
you wouldn't be adding the control that matches the code in the first
instance of VS.NET.

Lisa


Ravi Ambros Wallau wrote:
> Doesn't seem to work.
> The problem is not in runtime, but in design mode.
> Everything works fine when the application is being debugged.
> Is there some log where the erros are stored?
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) oups.com...
> > Oh, and make sure that you set the control project to be the startup
> > project in the first instance.
> >
> > Lisa
> >
> > Ravi Ambros Wallau wrote:
> >> I'll try.
> >> <(E-Mail Removed)> wrote in message
> >> news:(E-Mail Removed) oups.com...
> >> > Hey Ravi,
> >> >
> >> > Open up the code for your custom control. Then go to Configuration
> >> > Properties/Debugging, and set the Start Action to "Start External
> >> > Program". Browse to devenv.exe (that's the VS.NET executable).
> >> >
> >> > Hit run, and it should open a new instance of VS.NET. Set breakpoints
> >> > in the first instance, and then do your stuff in the second instance.
> >> > When you put your custom control into the Infragistics control in the
> >> > second instance, the custom control's code will run in the first
> >> > instance, and you should be able to debug.
> >> >
> >> > Lisa
> >> >
> >> >
> >> > Ravi Ambros Wallau wrote:
> >> >> The error only happens at design time.
> >> >> My dev enviroment is a Visual Studio .NET 2003 + Infragistics
> >> >> NetAdvantage
> >> >> 2005. I've created a custom control, and when this control is placed
> >> >> inside
> >> >> a control of Infragistics, the error occours.
> >> >> The strange thing is that, if I go to HTML view and BACK, everything
> >> >> is
> >> >> fine. But if I change something in design mode, the error will occours
> >> >> until
> >> >> I reopen the page.
> >> >> It's really strange, and the tooltip baloon is _not_ displayed.
> >> >> I just would like to know what's the error...
> >> >>
> >> >> "Roy" <(E-Mail Removed)> wrote in message
> >> >> news:(E-Mail Removed) oups.com...
> >> >> > In your aspx code, locate the troublesome control in question and
> >> >> > place
> >> >> > "runat=server" (without the quotes) inside it's tag.
> >> >> >
> >> >

> >


 
Reply With Quote
 
Ravi Ambros Wallau
Guest
Posts: n/a
 
      06-10-2005
Hmmm...
No I really understand what you mean...
The problem is that the error occours not in my control, but in
Infragistics. When my control is not placed inside Infragistics, it works
really fine in design mode.
But I will try a shot, placing a breakpoint inside my control constructor.
Thanks a lot for your help (I would like to say thanks for a rapid answer,
but I can't find the expression, English is not my native language).
Let's if I can solve this problem...

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> Design time for your page is run time for the code inside your
> controls. If you set a breakpoint in the Load method in the control
> code (in the first instance), do you hit it when you add the control to
> the page (in the second instance)? If not, you aren't debugging the
> control. Maybe you have a copy of the custom control's dll in
> PublicAssemblies? If you do, that'd mess up the debug process, because
> you wouldn't be adding the control that matches the code in the first
> instance of VS.NET.
>
> Lisa
>
>
> Ravi Ambros Wallau wrote:
>> Doesn't seem to work.
>> The problem is not in runtime, but in design mode.
>> Everything works fine when the application is being debugged.
>> Is there some log where the erros are stored?
>>
>> <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed) oups.com...
>> > Oh, and make sure that you set the control project to be the startup
>> > project in the first instance.
>> >
>> > Lisa
>> >
>> > Ravi Ambros Wallau wrote:
>> >> I'll try.
>> >> <(E-Mail Removed)> wrote in message
>> >> news:(E-Mail Removed) oups.com...
>> >> > Hey Ravi,
>> >> >
>> >> > Open up the code for your custom control. Then go to Configuration
>> >> > Properties/Debugging, and set the Start Action to "Start External
>> >> > Program". Browse to devenv.exe (that's the VS.NET executable).
>> >> >
>> >> > Hit run, and it should open a new instance of VS.NET. Set
>> >> > breakpoints
>> >> > in the first instance, and then do your stuff in the second
>> >> > instance.
>> >> > When you put your custom control into the Infragistics control in
>> >> > the
>> >> > second instance, the custom control's code will run in the first
>> >> > instance, and you should be able to debug.
>> >> >
>> >> > Lisa
>> >> >
>> >> >
>> >> > Ravi Ambros Wallau wrote:
>> >> >> The error only happens at design time.
>> >> >> My dev enviroment is a Visual Studio .NET 2003 + Infragistics
>> >> >> NetAdvantage
>> >> >> 2005. I've created a custom control, and when this control is
>> >> >> placed
>> >> >> inside
>> >> >> a control of Infragistics, the error occours.
>> >> >> The strange thing is that, if I go to HTML view and BACK,
>> >> >> everything
>> >> >> is
>> >> >> fine. But if I change something in design mode, the error will
>> >> >> occours
>> >> >> until
>> >> >> I reopen the page.
>> >> >> It's really strange, and the tooltip baloon is _not_ displayed.
>> >> >> I just would like to know what's the error...
>> >> >>
>> >> >> "Roy" <(E-Mail Removed)> wrote in message
>> >> >> news:(E-Mail Removed) oups.com...
>> >> >> > In your aspx code, locate the troublesome control in question and
>> >> >> > place
>> >> >> > "runat=server" (without the quotes) inside it's tag.
>> >> >> >
>> >> >
>> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Japanese Text not displayed on Image Generated by Servlet on winXP, Linux but displayed on Win2000 boney Java 1 12-15-2006 02:24 PM
See "what's going on" when an "Error Creating Control" message is displayed Ravi Ambros Wallau ASP .Net 8 06-10-2005 07:13 PM
"Error Creating Control" when creating a custom control (Design Time). Can't see tooltip message. Ravi Ambros Wallau ASP .Net Web Controls 0 06-01-2005 02:36 PM
"Error Creating Control" when creating a custom control (Design Time). Can't see tooltip message. Ravi Ambros Wallau ASP .Net 0 06-01-2005 02:36 PM
VPN going up but traffic going one way PLP Cisco 1 07-11-2003 08:28 AM



Advertisments