473,770 Members | 6,348 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Collecti ons;

using System.Componen tModel;

using System.Drawing;

using System.Data;

using System.Windows. Forms;

So what is the problem???


Nov 15 '05 #1
6 1376
"Tamir Khason" <ta**********@t con-NOSPAM.co.il> wrote in message
news:O8******** ******@TK2MSFTN GP09.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.Collecti ons;

using System.Componen tModel;

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**********@t con-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***@ddiieess ppaammeerrssddi iee.com> wrote in message
news:ud******** ******@tk2msftn gp13.phx.gbl...
"Tamir Khason" <ta**********@t con-NOSPAM.co.il> wrote in message
news:O8******** ******@TK2MSFTN GP09.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.Collecti ons;

using System.Componen tModel;

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...lin e 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.btinte rnet.com...
"Tamir Khason" <ta**********@t con-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**********@t con-NOSPAM.co.il> wrote in message
news:uf******** ******@tk2msftn gp13.phx.gbl...
I tried to reproduce it - nothing. The problem is that the program (user
control) compiles, but leaves 3 tasks with "object reference...lin e 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
8927
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 onclick="javaScript:alert('document.forms(0)='+document.forms(0)); parent.myFunc(document.forms(0));" type="button" value="Open" name="Button" ID="Button"> The strange part is that the debug alert says that the document.forms(0) is an object så all seem to be well. But...
25
3743
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 machines. The code opens MS Word through Automation and then opens a particular Word doc. It's still working fine on most machines; but on one or two of them, the user is getting an Automation Error. The code used is as follows: Dim objWord As...
0
328
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 files\spsweb\0e3514bf\cb1844e7\assembly\dl2\3b163f 16\00452d31_84e5c301\infragistics.webui.ultrawebgrid.v3.dll' could not be found
6
1700
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 database than any of our previous customers. For example, the query to build the datatable now takes about 2 minutes instead of one minute or less. This is a third party database we are integrating with. He is getting very strange results. For...
5
1737
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) +313 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +201 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263
0
3574
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 requests database, and query execution time exceeds 30 seconds, the following error reported: ===
11
2597
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 temperatures. T = 20 degrees at all times.... The 2D T-array looks like this:
1
1556
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 in UTF-8. Now minidom is always able to parse these files with minidom.parse("file") . Now when fetching I use this expression: xmldoc.getElementsByTagName('DocNumb').firstChild.data.encode('latin1')
11
2499
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 support team for more information. However I'm not purposely requesting that the Runtime terminate in an "unusual way." The line that is causing me headaches is:
3
1837
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 is intermittent -- sometimes it happens and sometimes not from the same screen with the same data. Here is the error:
0
9591
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10225
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10053
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10001
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9867
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8880
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3969
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 we have to send another system

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.