Re: Object reference not set to an instance of an object.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Nab (Nab_at_discussions.microsoft.com)
Date: 02/09/05


Date: Tue, 8 Feb 2005 19:47:03 -0800

Thanks, but there is no luck here! Debugging it further produces this message
box "A first chance exception of type 'System.NullReferenceException'
occurred in system.xml.dll"

Additional information: Object reference not set to an instance of an object.

"Aaron Weiker" wrote:

> Try this instead. I'm not sure on the array syntax as I'm a C# developer
> and I forget the VB syntax but I think this is write.
> ********************************************************
> Dim objParam As SqlParameter
> objCmd.Parameters.Add("@names", SqlDbType.VarChar)
> objCmd.Parameters("@names").Direction = ParameterDirection.Input
> objCmd.Parameters("@names").Value = eaName
> ********************************************************
>
>
> --
> Aaron Weiker
> http://aaronweiker.com/
> http://www.sqlprogrammer.org/
>



Relevant Pages

  • problems working with gifs in an resx file
    ... I am getting a problem when debugging an application to my pocketpc device on ... every time there is a call to get a recource below: ... A first chance exception of type 'System.IO.FileNotFoundException' occurred ...
    (microsoft.public.dotnet.framework.compactframework)
  • How do I interpret the error output?
    ... I am still a novice with .NET and I am little bit struggling with debugging. ... A first chance exception of type 'System.InvalidOperationException' occurred ... The ConnectionString property has not been ...
    (microsoft.public.dotnet.general)
  • Re: Debugging Runtime Error
    ... > I have been trying without luck to get some information on debugging ... > do not believe that this class object is causing me my problem. ...
    (comp.lang.cpp)
  • Re: problems working with gifs in an resx file
    ... icons) using the method shown in this article: ... Image myImage = Properties.Resources.myJpg; ... I am getting a problem when debugging an application to my pocketpc device ... A first chance exception of type 'System.IO.FileNotFoundException' ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: help me please
    ... The skill of debugging is to look at each error in turn and try to ... One of your errors is an unterminated block If statement. ... Good luck! ...
    (comp.lang.fortran)