Data Reader Problem



Hello guys,

Please, anyone already see this problem ?


[NullReferenceException: Object reference not set to an instance of an
object.]
System.Data.SqlClient.SqlDataReader.PrepareSQLRecord(Int32 i) +159
System.Data.SqlClient.SqlDataReader.GetSqlString(Int32 i) +20
System.Data.SqlClient.SqlDataReader.GetString(Int32 i) +32


The properties HasRows and isClosed is okay... The reader has rows and
not closed !!


How do to solve this ?


Thanks a lot and sorry.... my english is so bad.

.



Relevant Pages

  • Re: DataGridItem.DataItem availability?
    ... NullReferenceException will be thrown here! ... Post the relevant fragment from the code and the .aspx file, ... said "Object reference not set to an instance of an object." ... code-behind mode. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to implement a GetSafeXXX-like function in C#?
    ... function table in memory, then when calling the method, it will visit the ... I will throw NullReferenceException, with error message: Object reference ... we can not do the GetSafeXXX methods.(Because calling a method on ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: NullReferenceException
    ... Object reference not set to an instance of an ... Dim f As Foo ... The 'NullReferenceException' will occur on the second line if 'Bla' is an ... M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb)
  • Re: I am not sure how to interpret this...
    ... Exception Details: System.NullReferenceException: Object reference not set ... Source Error: ... NullReferenceException. ... Not knowing the code I don't know how much I ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: NullReferenceException
    ... Object reference not set to an instance of an ... Dim f As Foo ... The 'NullReferenceException' will occur on the second line if 'Bla' is an instance member of 'Foo' because the variable 'f' doesn't point to ...
    (microsoft.public.dotnet.languages.vb)