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. Teach a man to fish and he'll leave work early on Fridays.
|