borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (want to show some entry from database in datagrid thuroug user difine date)Next Topic (Accessing files on a Win Mobile Device) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : dataset will not fill Solved Topic
Poster Message
Anita
Level: Big Cheese

Registered: 19-05-2005
Posts: 24

icon dataset will not fill

I have a web application that has worked until today.
My dataset stopped working for some reason.  Here is the line of code from my data access component:

daParent_AnalystJobs.Fill(dSet)

This is the stack trace:
[ArgumentNullException: Value cannot be null.
Parameter name: dataSet]
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +103
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38
   Analyst_In_Time.data.FillDataSet(dsAnalystJobs dSet) in C:\Inetpub\wwwroot\Analyst_In_Time\data.vb:463
   Analyst_In_Time.Admin.RefreshDatabindings() in C:\Inetpub\wwwroot\Analyst_In_Time\Admin.aspx.vb:66
   Analyst_In_Time.Admin.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\Analyst_In_Time\Admin.aspx.vb:56
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +29
   System.Web.UI.Page.ProcessRequestMain() +724


This was working fine yesterday.  I've done a release configuration on the project.  

Does anyone know what might have happened?

13-07-2006 at 03:07 PM
View Profile Send Email to User Show All Posts | Quote Reply
Bharathi
Level: Scholar

Registered: 11-04-2005
Posts: 31
icon Re: dataset will not fill

Hi,

How are you instantiating the dataset object?

Hint: Create a new instance of the dataset before
you call to fill it.

Regards
bhar
books for programmers
http://www.vkinfotek.com


[Edited by Bharathi on 14-08-2006 at 05:09 AM GMT]

14-08-2006 at 05:07 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Anita
Level: Big Cheese

Registered: 19-05-2005
Posts: 24
icon Re: dataset will not fill

The issue was related to instantiation of the dataset.  Somehow, the dataset control disappeared from the component tray of the form.  Also, I could not regenerate it in Visual Studio 2002.  This appears to be a bug in Visual Studio 2002.  Hopefully, it is fixed as I installed the Service Pack 1.  Thanks for your reply.

15-08-2006 at 05:11 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : dataset will not fill Solved Topic
Previous Topic (want to show some entry from database in datagrid thuroug user difine date)Next Topic (Accessing files on a Win Mobile Device) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder