View Single Post
  #1 (permalink)  
Old July 25th, 2005, 05:03 PM
rajesh0363 rajesh0363 is offline
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default The ConnectionString property...!


Beginning web programming using VB.net & Visual Studio .NET

Hi,

I've started the project “FriendsReunionUI” explained in the above book. I’ve somehow successfully completed first 4 chapters with very few glitches. I'm now in Chapter 5 where we started to do the "ViewUser.aspx" page. I get the following error each time I compile the page,

ERROR>

Server Error in '/FriendsReunionUI' Application.
The ConnectionString property has not been initialized.
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.InvalidOperationException: The ConnectionString property has not been initialized.

Source Error:

Line 54: 'Initialize the dataset and fill it with data
Line 55: dsUser = New DataSet()
Line 56: adUser.Fill(dsUser, "User")
Line 57:
Line 58: 'Finally, bind all the controls on the page

Source File: c:\inetpub\wwwroot\FriendsReunionUI\ViewUser.aspx. vb Line: 56

</ERROR>

Please, somebody help me! Any help would be highly appreciated.
Thanks in advance, RAJESH