Wrox Programmer Forums
|
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 25th, 2005, 05:03 PM
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

  #2 (permalink)  
Old July 26th, 2005, 07:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

Where do you establish your connection? The connection string isn't being returned correctly. Is the key wrong?

Brian

Brian
  #3 (permalink)  
Old July 26th, 2005, 01:55 PM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by bmains
 Hello,

Where do you establish your connection? The connection string isn't being returned correctly. Is the key wrong?

Brian

Brian
Oops...sorry! yeah, that was the problem.
Funny little things make you mad sometimes!

Thanks Brian






Similar Threads
Thread Thread Starter Forum Replies Last Post
ado.connectionstring ankttv Access VBA 4 November 7th, 2008 04:54 PM
where to put my connectionstring pascali70 C# 10 June 22nd, 2007 05:09 AM
The ConnectionString property has not been initial libbydoo ASP.NET 1.0 and 1.1 Basics 6 November 22nd, 2006 10:11 PM
the ConnectionString Property... coolb C# 3 September 26th, 2006 02:05 AM
The ConnectionString property has not been initial mar0364 ASP.NET 1.0 and 1.1 Basics 6 March 17th, 2006 11:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.