Wrox Programmer Forums
|
BOOK: Professional ASP.NET 1.0, Special Edition/1.1
This is the forum to discuss the Wrox book Professional ASP.NET 1.1 by Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson; ISBN: 9780764558900
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 1.0, Special Edition/1.1 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
 
Old March 3rd, 2005, 09:54 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to steverguy Send a message via Yahoo to steverguy
Default Problem with DB Connection

I installed the pubs database to my SQL Server but now am having issues connecting to it.
This is the error I'm getting:

Server Error in '/' 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:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

I ran the SamplePage.aspx from inetpub/wwwroot/ProASP folder - I copied the files from the source code provided on this site, so I haven't changed anything. I used the script on this site to generate the Pubs database. I'm kind of new to SQL server and obviously new to ASP.Net, so any help would be appreciated.

Thanks!


Give a man a fish, and he'll eat for a day.&nbsp;&nbsp;Teach a man to fish and he'll leave work early on Fridays.
 
Old March 3rd, 2005, 03:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Yeah, where you define a connection, it saying that the connection string isn't being returned, but it is also saying to determine where, setup debugging, using the code above (in web.config or within the page).

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
DB Connection Problem kingroon Classic ASP Databases 1 May 17th, 2006 01:49 AM
db connection dfeuerborn VB Databases Basics 1 August 19th, 2005 02:08 PM
db connection dfeuerborn Access VBA 1 August 17th, 2005 10:33 AM
DB Connection stu9820 ASP.NET 1.0 and 1.1 Basics 1 September 26th, 2004 09:01 PM
Problem with connection to db at webserver hoeknu SQL Server 2000 3 May 24th, 2004 07:59 AM





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