473,491 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

I get this error intermidently

Can someone please tell me what might be causeing this error. I get it
every once in a while.
I just noticed this also...where it says c:\sethbacup\d...
that is where i do my build. But then i copy over my files to a diffrent
server. Why is that path not shown?

thanks
seth

Error Message: Object reference not set to an instance of an object.
Stack Trace:
at
System.Data.SqlClient.SqlConnectionPoolManager.Ret urnPooledConnection(SqlInt
ernalConnection pooledConnection) at
System.Data.SqlClient.SqlConnection.Open() at SBC.util.SBC_DB..ctor() in
c:\sethbackup\d drive\web\fvi\inc\util\sbc_db.cs
:line 26 at FVI.inc.navigation.TopToolBar..ctor() in C:\sethbackup\D
Drive\web\FVI\inc\navigation\TopToolBar.ascx.cs
:line 20 at ASP.TopToolBar_ascx..ctor() in
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Tempora ry ASP.NET
Files\root\d65a3772\6d86c8d4\9exvzoml.0.cs
:line 35 at ASP.nonReportingFac_aspx.__BuildControltopToolBar( ) in
E:\intranet\FVI\desktop\census\nonReportingFac.asp x
:line 17 at ASP.nonReportingFac_aspx.__BuildControlTree(Contro l __ctrl) in
E:\intranet\FVI\desktop\census\nonReportingFac.asp x
:line 1 at ASP.nonReportingFac_aspx.FrameworkInitialize() at
System.Web.UI.Page.ProcessRequest() at
System.Web.UI.Page.ProcessRequest(HttpContext context) at
System.Web.CallHandlerExecutionStep.Execute() at
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
Nov 15 '05 #1
2 2234
Seth,
The exception is thrown when there is no object allocated for a reference
and you try to dereference it.

For example,

class MyClass1
{
public void MyMethod1() { } // I am returning null
}

class MyClass2
{
public MyClass1 MyMethod2() { return null; } // I am returning
null
}

class Class1
{
[STAThread]
static void Main(string[] args)
{
MyClass2 myClass2 = new MyClass2();
myClass2.MyMethod2().MyMethod1();
// myClass2.MyMethod2()
returns a null. And I dereference it to call MyMethod1() and it will
// throw the exception you
see.
}
}
Typically this happens when you de reference without checking for null

something = Foo.Bar.Car.Execute();
// Very common C# code.

Say Foo is a class and Bar and Car are properties on it.

Now Foo can be null, Foo.Bar can return null, Foo.Bar.Car can return null.
If you execute the above statement without checking if the return values
are null, then you get the NullReference exception.

_Rakesh
--------------------
From: "Seth Broomer" <as**@asdsd.com>
Subject: I get this error intermidently
Date: Mon, 5 Jan 2004 11:18:17 -0800
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <eC**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: ppp-63-204-234-180.adiyh.com 63.204.234.180
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP11.
phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:209575
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Can someone please tell me what might be causeing this error. I get it
every once in a while.
I just noticed this also...where it says c:\sethbacup\d...
that is where i do my build. But then i copy over my files to a diffrent
server. Why is that path not shown?

thanks
seth

Error Message: Object reference not set to an instance of an object.
Stack Trace:
at
System.Data.SqlClient.SqlConnectionPoolManager.Re turnPooledConnection(SqlIn ternalConnection pooledConnection) at
System.Data.SqlClient.SqlConnection.Open() at SBC.util.SBC_DB..ctor() in
c:\sethbackup\d drive\web\fvi\inc\util\sbc_db.cs
:line 26 at FVI.inc.navigation.TopToolBar..ctor() in C:\sethbackup\D
Drive\web\FVI\inc\navigation\TopToolBar.ascx.cs
:line 20 at ASP.TopToolBar_ascx..ctor() in
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Tempor ary ASP.NET
Files\root\d65a3772\6d86c8d4\9exvzoml.0.cs
:line 35 at ASP.nonReportingFac_aspx.__BuildControltopToolBar( ) in
E:\intranet\FVI\desktop\census\nonReportingFac.as px
:line 17 at ASP.nonReportingFac_aspx.__BuildControlTree(Contro l __ctrl) in
E:\intranet\FVI\desktop\census\nonReportingFac.as px
:line 1 at ASP.nonReportingFac_aspx.FrameworkInitialize() at
System.Web.UI.Page.ProcessRequest() at
System.Web.UI.Page.ProcessRequest(HttpContext context) at
System.Web.CallHandlerExecutionStep.Execute() at
System.Web.HttpApplication.ExecuteStep(IExecution Step step, Boolean&
completedSynchronously)

Rakesh, EFT.

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Nov 15 '05 #2
Rakesh,

Hmmm the next question is why would it be returning a null value? Where it
is going bad is basically a system table that I have to display a bunch of
facilities. The table is guarnteed to always have data in it, and always
returns a value.

thanks

"Rakesh Namineni[MSFT]" <ra******@online.microsoft.com> wrote in message
news:Yx**************@cpmsftngxa07.phx.gbl...
Seth,
The exception is thrown when there is no object allocated for a reference
and you try to dereference it.

For example,

class MyClass1
{
public void MyMethod1() { } // I am returning null
}

class MyClass2
{
public MyClass1 MyMethod2() { return null; } // I am returning
null
}

class Class1
{
[STAThread]
static void Main(string[] args)
{
MyClass2 myClass2 = new MyClass2();
myClass2.MyMethod2().MyMethod1();
// myClass2.MyMethod2()
returns a null. And I dereference it to call MyMethod1() and it will
// throw the exception you
see.
}
}
Typically this happens when you de reference without checking for null

something = Foo.Bar.Car.Execute();
// Very common C# code.

Say Foo is a class and Bar and Car are properties on it.

Now Foo can be null, Foo.Bar can return null, Foo.Bar.Car can return null.
If you execute the above statement without checking if the return values
are null, then you get the NullReference exception.

_Rakesh
--------------------
From: "Seth Broomer" <as**@asdsd.com>
Subject: I get this error intermidently
Date: Mon, 5 Jan 2004 11:18:17 -0800
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <eC**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: ppp-63-204-234-180.adiyh.com 63.204.234.180
Path:

cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP11. phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:209575X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Can someone please tell me what might be causeing this error. I get it
every once in a while.
I just noticed this also...where it says c:\sethbacup\d...
that is where i do my build. But then i copy over my files to a diffrent
server. Why is that path not shown?

thanks
seth

Error Message: Object reference not set to an instance of an object.
Stack Trace:
at
System.Data.SqlClient.SqlConnectionPoolManager.Re turnPooledConnection(SqlIn
t
ernalConnection pooledConnection) at
System.Data.SqlClient.SqlConnection.Open() at SBC.util.SBC_DB..ctor() in
c:\sethbackup\d drive\web\fvi\inc\util\sbc_db.cs
:line 26 at FVI.inc.navigation.TopToolBar..ctor() in C:\sethbackup\D
Drive\web\FVI\inc\navigation\TopToolBar.ascx.cs
:line 20 at ASP.TopToolBar_ascx..ctor() in
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Tempor ary ASP.NET
Files\root\d65a3772\6d86c8d4\9exvzoml.0.cs
:line 35 at ASP.nonReportingFac_aspx.__BuildControltopToolBar( ) in
E:\intranet\FVI\desktop\census\nonReportingFac.as px
:line 17 at ASP.nonReportingFac_aspx.__BuildControlTree(Contro l __ctrl) inE:\intranet\FVI\desktop\census\nonReportingFac.as px
:line 1 at ASP.nonReportingFac_aspx.FrameworkInitialize() at
System.Web.UI.Page.ProcessRequest() at
System.Web.UI.Page.ProcessRequest(HttpContext context) at
System.Web.CallHandlerExecutionStep.Execute() at
System.Web.HttpApplication.ExecuteStep(IExecution Step step, Boolean&
completedSynchronously)

Rakesh, EFT.

This posting is provided "AS IS" with no warranties, and confers no

rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Nov 15 '05 #3

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

Similar topics

2
3254
by: WSeeger | last post by:
When creating a new class, is it encouraged to always include error handling routines within your LET and GET procedures? It's seems that most text books never seem to include much about error...
0
1753
by: Holly | last post by:
Hello List, My windows laptop configured as: XP, Python 1.5.2, MySQL 4.0.9 and Appache 1.3.17 A form ("Post" has been used) has a product list with about 400 products. The user checks each...
2
6069
by: John F Dutcher | last post by:
Can anyone comment on why the code shown in the Python error is in some way incorrect...or is there a problem with Python on my hoster's site ?? The highlites don't seem to show here...but line...
10
10780
by: | last post by:
I am accessing the same error-containing ASP page on an ISP server using w2k IE6 but with different effect. On the first computer I get several line of HTML outputed by ASP, shown correctly by...
3
16188
by: Manuel | last post by:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using devc++. So I've imported the glut32.dsp into devc++, included manually some headers, and start to compile. It return a very...
1
3261
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
0
4714
by: mchuc7719 | last post by:
Hello, I have a Vb.Net 2005 ClassLibrary, when I try to compile using MSBee, only get errors. Before I to run the command line, I open in notepad the .vbproj and I was add the next line: ...
2
5629
by: khalidanwar123 | last post by:
i am getting the following error while updating a clob field. ERROR java.sql.SQLException: Data size bigger than max size forthis type: 4003 19:28:27,499 ERROR at...
15
5660
by: madhu.ab | last post by:
Hi All, I am getting the following errors when i am including header file winuser.h I dont know whats happening. How will an error occur in winuser.h?? Please help. \microsoft visual...
0
7118
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
7157
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
7192
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...
1
6862
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...
1
4886
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...
0
3087
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...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1397
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 ...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.