473,563 Members | 2,556 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

An unhandled exception of type 'System.NullRef erenceException ' occurred

1 New Member
Hi this is chandu,

can some help me out in this regard?

I had created an Active X dll.

I had registered it into the folder from where I want it to make it as .Net dll.

I had used the command as

tlbimp PhysServer.dll /out:NETPhysServ er.dll
from the .net cmd prompt.

Now I had written the code in vb.net as below to access this dll

Private WithEvents moTemp As NETPhysServer.T emperature

Private Sub cmdConvertToC_C lick(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles cmdConvertToC.C lick
lblBelowFreezin g.Visible = False
lblAboveBoiling .Visible = False
With moTemp
.Fahrenheit = txtFahrenheit.T ext
txtCelsius.Text = .GetCelsius
End With
End Sub

Private Sub cmdConvertToF_C lick(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles cmdConvertToF.C lick
lblBelowFreezin g.Visible = False
lblAboveBoiling .Visible = False
With moTemp
.Celsius = txtCelsius.Text
txtFahrenheit.T ext = .GetFahrenheit
End With
End Sub

Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
' moTemp = New NETPhysServer.T emperature
End Sub

Private Sub moTemp_AboveBoi ling() Handles moTemp.AboveBoi ling
lblAboveBoiling .Visible = True
End Sub

Private Sub moTemp_BelowFre ezing() Handles moTemp.BelowFre ezing
lblBelowFreezin g.Visible = True
End Sub


When I try to debug this code I am getting an erro saying
"An unhandled exception of type 'System.NullRef erenceException ' occurred "

Please help me out to figure out this
Jan 8 '07 #1
2 1984
Niheel
2,456 Recognized Expert Moderator Top Contributor
Discussion moved to .net forum.
Jan 8 '07 #2
bplacker
121 New Member
do you know which line the error occured on?
Jan 8 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
536
by: Rafael | last post by:
Hi, I hope I can find some help for this problem IDE: Visual Studio.NET 2003 Developer Editio Language: C# Problem: "An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll. Additional information: Object reference not set to an instance of an object. Visual Studio's IDE is not allowing me to...
0
1653
by: Rafiq Ganaie via .NET 247 | last post by:
HI, I am working on a search application in C#.It is a multithreaded application.it simply takes a URL,Downloads the page using WebRequest and WebResponse classes.Unfortunately it is throwing following runtime exception. An unhandled exception of type 'System.NullReferenceException' occurred in system.dll Additional information: Object...
3
2940
by: Professor Frink | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms application that is going to be used to extract data from a legacy system (VSAM based mainframe file structure), and output data in pipe-delimited...
3
2445
by: cristiank | last post by:
hi everybody, I need to clear something out, does anybody have ever encountered such an exception until now : "Un unhandled exception of type System.NullReferenceException occurred in system.windows.forms.dll Additional information: Object reference not set to an instance of an object." I receive this exception when I use HelpProvider and...
3
16916
by: juli | last post by:
Hello! I keep getting this error: An unhandled exception of type 'System.NullReferenceException' occurred Additional information: Object reference not set to an instance of an object. I am declaring with this code(class member): private Steema.TeeChart.Styles.Series ASeries; and than trying to initialize it:
4
2235
by: Craig831 | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms application that is going to be used to extract data from a legacy system (VSAM based mainframe file structure), and output data in pipe-delimited...
7
2667
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote server returned an error: (500) Internal Server Error." I found a post that suggested to catch the WebException to retrieve the actual HttpWebResponse...
1
2092
by: mike | last post by:
My program is crashing, but it doesn't crash on a single line of code. Below is what the output tab displays. I have no idea where to start inorder to debug this problem. Is there any suggesstions on how to start debuging the problem 'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded...
9
3162
by: Supra | last post by:
i got error problem.......... An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll Additional information: Object reference not set to an instance of an object.. Namespace PirateChat <========== error occurred in here Public Class mainPirateChat
1
3155
by: Pedro Dinis | last post by:
i have this class library that connects to the database(see appconfig below) compiling 0 errors but when its running i amhaving this error An unhandled exception of type 'System.NullReferenceException' occurred in my_deepot_common.dll Object reference not set to an instance of an obj int this line public...
0
7658
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...
0
8101
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...
1
7631
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...
0
7943
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...
1
5479
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5204
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...
0
3631
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2077
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
1
1194
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.