473,407 Members | 2,676 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,407 software developers and data experts.

Strange Error

I recieve the very strange error while compiling project:

"object reference net set to the instance of the object" in line 0 !!!
The first lines in this .cs are
using System;

using System.Collections;

using System.ComponentModel;

using System.Drawing;

using System.Data;

using System.Windows.Forms;

So what is the problem???


Nov 15 '05 #1
6 1362
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
I recieve the very strange error while compiling project:

"object reference net set to the instance of the object" in line 0 !!!
The first lines in this .cs are
using System;

using System.Collections;

using System.ComponentModel;

using System.Drawing;

using System.Data;

using System.Windows.Forms;


Hi Tamir,

You could try stepping through the code with a debugger to see where the
actual problem is. One of your references is set to null or undefined.

Joe
--
http://www.csharp-station.com
Nov 15 '05 #2
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote:
I recieve the very strange error while compiling
project:
"object reference net set to the instance of the
object" in line 0 !!!


Can you reproduce this in a small, simple program that you could post here?

P.

--
www.CL4.org
Nov 15 '05 #3
There are no error in debugger.....
The error appears as task in the Task List and cause the same error while
adding this control to form...
The program compiles, but there are 3 lines of Object reference... Line 0 in
Task List

Any clues?

"Joe Mayo" <jm***@ddiieessppaammeerrssddiiee.com> wrote in message
news:ud**************@tk2msftngp13.phx.gbl...
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
I recieve the very strange error while compiling project:

"object reference net set to the instance of the object" in line 0 !!!
The first lines in this .cs are
using System;

using System.Collections;

using System.ComponentModel;

using System.Drawing;

using System.Data;

using System.Windows.Forms;


Hi Tamir,

You could try stepping through the code with a debugger to see where the
actual problem is. One of your references is set to null or undefined.

Joe
--
http://www.csharp-station.com

Nov 15 '05 #4
I tried to reproduce it - nothing. The problem is that the program (user
control) compiles, but leaves 3 tasks with "object reference...line 0" in
the task list. the error occures while adding this component to form...


"Paul E Collins" <fi******************@CL4.org> wrote in message
news:bp**********@titan.btinternet.com...
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote:
I recieve the very strange error while compiling
project:
"object reference net set to the instance of the
object" in line 0 !!!
Can you reproduce this in a small, simple program that you could post

here?
P.

--
www.CL4.org

Nov 15 '05 #5


"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:uf**************@tk2msftngp13.phx.gbl...
I tried to reproduce it - nothing. The problem is that the program (user
control) compiles, but leaves 3 tasks with "object reference...line 0" in
the task list. the error occures while adding this component to form...

Do you have the source code to the component. If so, open a second instance
of VS.NET with the debug version of the component project, select
Debug/Processes and attach to the DevEnv.exe instance that you want to add
the component to, make sure break points are set in the component source
code, and try to drop your component onto the form in the first instance of
VS.NET. If you have your breakpoint set in the right place on the second
instance of DevEnv it will stop there so you can step through your code.

Joe
--
http://www.csharp-station.com
Nov 15 '05 #6

Hi Tamir,

In your previous description, I think this error may due to the component.
I think you should follow Joe's suggestion to debug the this component to
find the cause.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #7

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

Similar topics

2
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
0
by: Kris Vanherck | last post by:
yesterday i started getting this strange error when i try to run my asp.net project: Compiler Error Message: CS0006: Metadata file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net...
6
by: Gary | last post by:
I have an application that has been working just fine for a couple of years. It queries a SQL database and returns some formatted data back to the client. I have a new client, who has a larger...
5
by: Nathan Sokalski | last post by:
When I view my index.aspx page any time after the first time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize)...
0
by: ivb | last post by:
Hi all, I am using DB2 8.1.11.1 on NT with ASP.NET 1.1 When application make connection to database (via ADO.NET), it set "Connection timeout" parameter to 30 seconds. After, when my webpage...
11
by: Martin Joergensen | last post by:
Hi, I've encountered a really, *really*, REALLY strange error :-) I have a for-loop and after 8 runs I get strange results...... I mean: A really strange result.... I'm calculating...
1
by: JoReiners | last post by:
Hello, I have a really strange problem. I'm unable to figure it out on my own. I parse very simple xml documents, without any check for their form. These files look very similar and are encoded...
11
by: Mike C# | last post by:
Hi all, I keep getting a strange error and can't pin it down. The message is: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's...
3
by: Shelly | last post by:
I am encountering two strange problems. First one: I get a "server misconfiguration error", but only sometimes. It occurs on the first screen that accesses the database on a submit. This error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...
0
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...
0
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,...
0
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...

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.