473,387 Members | 1,859 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,387 software developers and data experts.

IDE is unable to display my apsx page

Hi,

I am having an issue loading my aspx file in the designer.
My page inherits from a class i wrote (we will call
it "basepage") that inherits from Page. It looks something
like this:

MyPage ---> basepage ----> Page

When i try to load myPage in the desinger, it tells me
that an exception occurred trying to create an instance
of "basepage". The exception was "reference not set to an
instance of an object".

This only happens when i try to load it in the designer.
If i run the page, it displays normally.

Also, this only occurrs sporatically. If i close and open
the project many times, i can get it to go away.

What may be causing this?

Any comments will help.

Thanks,

Tom Wisnowski
Nov 17 '05 #1
2 1295
Nevermind everyone,

I was calling Trace.Write in my base class constructor.
Since I didn't have a current http context, I was causing
an exception by trying to call write.

Silly Mistake ;P
-----Original Message-----
Hi,

I am having an issue loading my aspx file in the designer.My page inherits from a class i wrote (we will call
it "basepage") that inherits from Page. It looks somethinglike this:

MyPage ---> basepage ----> Page

When i try to load myPage in the desinger, it tells me
that an exception occurred trying to create an instance
of "basepage". The exception was "reference not set to an
instance of an object".

This only happens when i try to load it in the designer.
If i run the page, it displays normally.

Also, this only occurrs sporatically. If i close and open
the project many times, i can get it to go away.

What may be causing this?

Any comments will help.

Thanks,

Tom Wisnowski
.

Nov 17 '05 #2
Nevermind everyone,

I was calling Trace.Write in my base class constructor.
Since I didn't have a current http context, I was causing
an exception by trying to call write.

Silly Mistake ;P
-----Original Message-----
Hi,

I am having an issue loading my aspx file in the designer.My page inherits from a class i wrote (we will call
it "basepage") that inherits from Page. It looks somethinglike this:

MyPage ---> basepage ----> Page

When i try to load myPage in the desinger, it tells me
that an exception occurred trying to create an instance
of "basepage". The exception was "reference not set to an
instance of an object".

This only happens when i try to load it in the designer.
If i run the page, it displays normally.

Also, this only occurrs sporatically. If i close and open
the project many times, i can get it to go away.

What may be causing this?

Any comments will help.

Thanks,

Tom Wisnowski
.

Nov 17 '05 #3

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

Similar topics

10
by: soup_or_power | last post by:
The pop up window has several checkboxes. I'm unable to access the checkboxes using the handle from window.open. Any way to do this? var display; function showSugg(but_id, sugg1, sugg2, sugg3,...
0
by: Tom Wisnowski | last post by:
Hi, I am having an issue loading my aspx file in the designer. My page inherits from a class i wrote (we will call it "basepage") that inherits from Page. It looks something like this: ...
5
by: Guoqi Zheng | last post by:
Probably very simple question since I am new in Dot Net.... I have a DisplayHtml function in moudle1.vb which is: Function DisplayHtml(ByRef fstrText As String) ' replace line break with...
2
by: NG WEI CHUNG | last post by:
Hi, Some of my clients site is unable to view the ASP .NET page due to the proxy server and firewall or perhaps IE setting etc, I m not sure what is the actual cause of the problem, it display...
1
by: Hong Hao | last post by:
Recently, I was trying to modify an existing aspx page when client-side validation on that page stopped working. I searched this group and the web in general and found that other people have had...
0
by: Nachi | last post by:
I have installed SQL Server 2000 with VS 2005 - did not install SqlExpress\Sql 2005. I have a remote Sql Server Instance locally. The normal application connectes to this Sql Server. When I run...
1
by: epatrick | last post by:
I have a series of custom controls developed under ASP.NET 1.1, and I've successfully migrated to ASP.NET 2.0. I have also developed a custom class dervied from System.Web.UI.Page, called...
3
by: =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post by:
Hi, Is there anything wrong with the code below in sending my browser page to Excel? Before my page opens in Excel there's a message "Problems came up in the following areas during load:" and it...
1
by: coolsidsin | last post by:
I have a apsx form (Form A), which on submiting does a time consuming task. So i want to open a new aspx window (Form B) in which I want do do that time consuming task and show progress to the user...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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,...

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.