SubSonic Forums
All Your Database Are Belong To Us

StoredProcedure GetReader() and GetDataSet() methods keep returning null

Latest post 07-22-2008 7:37 PM by acl123. 3 replies.
  • 07-22-2008 1:30 AM

    • acl123
    • Not Ranked
    • Joined on 07-22-2008
    • Posts 2

    StoredProcedure GetReader() and GetDataSet() methods keep returning null

    I can't work out what is going on. After upgrading to 2.1 from 2.0.3, I keep getting null references thrown like the following:

    Line 42:             using (IDataReader rdr = Product.FetchDetails().GetReader())


    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
    SubSonic.DataService.GetReader(QueryCommand cmd) in C:\svn\subsonicproject\trunk\SubSonic\DataProviders\DataService.cs:493
    SubSonic.StoredProcedure.GetReader() in C:\svn\subsonicproject\trunk\SubSonic\ActiveRecord\StoredProcedure.cs:195
    MyCompany.ManageProducts.LoadProducts()
  • 07-22-2008 1:38 AM In reply to

    Re: StoredProcedure GetReader() and GetDataSet() methods keep returning null

     It is true, Because Subsonic V2.1 can not detect StoredProcedures from datasource (SQL Server 2000,2005)

    I use Substage or SubCommander to generate them but it will produce a blank file!!!!!

    There is a bug in it.

     

  • 07-22-2008 12:35 PM In reply to

    Re: StoredProcedure GetReader() and GetDataSet() methods keep returning null

    This is a bug in the release version of 2.1. This has been fixed in the SVN repository and will be included in a 2.1.1 release in the near future...

    Found a bug? Help us fix it by submitting a Work Item!

  • 07-22-2008 7:37 PM In reply to

    • acl123
    • Not Ranked
    • Joined on 07-22-2008
    • Posts 2

    Re: StoredProcedure GetReader() and GetDataSet() methods keep returning null

    Cool thanks, I got the latest version from SVN and it works fine now.

Page 1 of 1 (4 items) | RSS