i'm guessing your data set hasn't been newed. Wherever you declare it, make
it new:
dim dSet as New myDataSet
Josh Moody
Developer Division Sustained Engineering Team
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
[quoted text, click to view] >Content-Class: urn:content-classes:message
>From: "Paul" <anonymous@discussions.microsoft.com>
>Sender: "Paul" <anonymous@discussions.microsoft.com>
>Subject: Value cannot be null
>Date: Wed, 28 Apr 2004 10:17:29 -0700
>Lines: 35
>Message-ID: <57b001c42d44$af46b810$a401280a@phx.gbl>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>Thread-Index: AcQtRK9Gyqeep3jzQsOEBKYVlgKsWg==
>Newsgroups: microsoft.public.dotnet.languages.vb.data
>Path: cpmsftngxa10.phx.gbl
>Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb.data:3524
>NNTP-Posting-Host: tk2msftngxa12.phx.gbl 10.40.1.164
>X-Tomcat-NG: microsoft.public.dotnet.languages.vb.data
>
>Hi,
>
>I'm new to .NET and I'm trying to run through the tutorial
>"Creating a Web Application Using VB"
>
>As I follow the directions, It seems to work just fine
>because I can preview the data from the SQLDataAdapter
>but when I try to view the data in the browser I get the
>error:
>
>
>Value cannot be null. Parameter name: dataSet
>Description: An unhandled exception occurred during the
>execution of the current web request. Please review the
>stack trace for more information about the error and
>where it originated in the code.
>
>Exception Details: System.ArgumentNullException: Value
>cannot be null. Parameter name: dataSet
>
>Source Error:
>
>Line 2: Inherits System.ComponentModel.Component
>Line 3: Public Sub FillDataSet(ByVal dSet As
>myDataSet)
>Line 4: SqlDataAdapter1.Fill(dSet)
>Line 5: End Sub
>Line 6: #Region " Component Designer generated code "
>
>Any help would be appreciated. thx.
>
>Paul
>801.366.0224
>ptoyn@yahoo.com
>
>