|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
NullReferenceExceptionHi.
I have a problem with an error that i get and mayby domebody can help. I have a project that which gives a pop-up error when i open the project with VS. The error is :"The following Exception has occured. NullReferenceException:Object reference not set to an instance of an object". The strange part of this error is that i receive it immediatly when i open the project. After Clicking the OK button, the project compiles and runs with no problems. How can i figure out what is this? Thanks in advance Stelios Stelios wrote:
Show quoteHide quote > Hi. The popup should have a link that shows the stack trace. If not, you> > I have a problem with an error that i get and mayby domebody can help. > I have a project that which gives a pop-up error when i open the > project with VS. > The error is :"The following Exception has occured. > NullReferenceException:Object reference not set to an instance of an > object". > > The strange part of this error is that i receive it immediatly when i > open the project. > After Clicking the OK button, the project compiles and runs with no > problems. > > How can i figure out what is this? > > Thanks in advance > Stelios could fire up a new instance of Visual Studio and connect to the first instance using the debugger, perhaps that will let you find the exception. If this is your own code, change it to be like the following:
Try {your code here} Catch ex as Exception msgbox(ex.Message & VbCrLf & ex.StackTrace) End Try This will give you information on where and what is causing the null reference. Stelios wrote: Show quoteHide quote > Hi. > > I have a problem with an error that i get and mayby domebody can help. > I have a project that which gives a pop-up error when i open the > project with VS. > The error is :"The following Exception has occured. > NullReferenceException:Object reference not set to an instance of an > object". > > The strange part of this error is that i receive it immediatly when i > open the project. > After Clicking the OK button, the project compiles and runs with no > problems. > > How can i figure out what is this? > > Thanks in advance > Stelios Hi.
Thanks for your comments!. There is no link in the pop up window. and the problem was that i could not find out what is the reason for this error, since it was appearing immediatly when i was opening the solution file. After having a detailed look at the project objects that i have draged from the toolbox, I noticed that one dataset icon was disappeared!. I created a new dataset object again, i set up again all the data bindings and everything was OK. I read that there is a problem with VS2003 about items that get dissapeared and that microsoft has a hot fix for this. Thanks Stelios Halkiotis Ο/Η darren.sm***@gmail.com ÎγÏαψε: Show quoteHide quote > If this is your own code, change it to be like the following: > > Try > {your code here} > Catch ex as Exception > msgbox(ex.Message & VbCrLf & ex.StackTrace) > End Try > > This will give you information on where and what is causing the null > reference. > > Stelios wrote: > > Hi. > > > > I have a problem with an error that i get and mayby domebody can help. > > I have a project that which gives a pop-up error when i open the > > project with VS. > > The error is :"The following Exception has occured. > > NullReferenceException:Object reference not set to an instance of an > > object". > > > > The strange part of this error is that i receive it immediatly when i > > open the project. > > After Clicking the OK button, the project compiles and runs with no > > problems. > > > > How can i figure out what is this? > > > > Thanks in advance > > Stelios
UTF8 Encoding and MP3 tags
SQL Statement for limiting the number of detail retrieved in Access 2000? Use items from... Combining a date value with a time value SQL DISTINCT COUNT Constant - InDebugMode Single Sign On / Authentication System? Deploying programs with net framework 2 onto framework 1 UserControls in a different directory What does instantText mean in Edit method of DataGridColumnStyle |
|||||||||||||||||||||||