Ask a Question related to ASP.NET General, Design and Development.
-
Jona Kee #1
failed to load in the web form designer...
I have web pages that inherit from a custom page class. I now get the
following error:
"The file failed to load in the web form designer. ... Object
reference not set to an instance of an object."
This occured after I added the following line of code in the base
class constructor:
if(User.Identity.Name.Length > 0)
Any way around this?
Thanks for your help.
Jona Kee Guest
-
Failed to load
Thank you for viewing this post, any information is greatly appreciated. When trying to connect to my flv file via rtmp and F8 components, I get a... -
When base class is used for UserControl, VS designer fails to load ASCX file
The problem is that I cannot use VS graphical designer to design my ASCX controls that do not inherit directly from System.Web.UI.UserControl but... -
The file failed to load in the Web Form designer ... Unable to cast object of type myServicedComponentClass ...
I have a user control that inherits from a base user control class. I can view and edit the base user control in the designer. However, my child... -
file failed to load in web form designer
since deriving my class for a web form from an abstract class I get the following error when tryinh to load the page in the designer 'The file... -
Designer refuses to load webform when some of base classes was changed
We have some base classes library which includes also base web form class. In every new project we adding one web form class which inherits from our... -
Marina #2
Re: failed to load in the web form designer...
As a guess, it looks like the constructor is executed when the form designer
loads? And at design time, that expression can't be evaluated, because User
is not set to anything.
My recommendation would be to put that code into Page_Init or Page_Load.
"Jona Kee" <jkee@jonawerks.com> wrote in message
news:da858d48.0307160603.6489fdd1@posting.google.c om...> I have web pages that inherit from a custom page class. I now get the
> following error:
>
> "The file failed to load in the web form designer. ... Object
> reference not set to an instance of an object."
>
> This occured after I added the following line of code in the base
> class constructor:
>
> if(User.Identity.Name.Length > 0)
>
> Any way around this?
>
> Thanks for your help.
Marina Guest



Reply With Quote

