p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

aspdotnet_website_programming thread: Can't connect to SQL server


Message #1 by "Saturnius" <saturnius@g...> on Sun, 26 Jan 2003 17:53:23
---------------------------------------------------------------------------
-----
An unexpected error has occurred on this page.The system administrators 
have been notified.

The error occurred in:
http://localhost/ThePhileVB/Default.aspx

Error Message:
SQL Server does not exist or access denied.

Error Stack:
System.Data.SqlClient.SqlException: SQL Server does not exist or access 
denied.
   at System.Data.SqlClient.SqlConnection.Open()
   at Wrox.WebModules.Data.DbObject.RunProcedure(String storedProcName, 
IDataParameter[] parameters, Int32& rowsAffected) in 
C:\Inetpub\wwwroot\ThePhileVB\WebModules\Core\DBObject.vb:line 53
   at Wrox.WebModules.Polls.Data.Questions.GetCurrentId() in 
C:\Inetpub\wwwroot\ThePhileVB\WebModules\Polls\Polls.Data\Questions.vb:line
 158
   at Wrox.WebModules.Polls.Business.Question.GetCurrentId() in 
C:\Inetpub\wwwroot\ThePhileVB\WebModules\Polls\Polls.Business\Question.vb:l
ine 227
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.DataBind() in 
c:\inetpub\wwwroot\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 260
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.Page_Load(Object 
sender, EventArgs e) in 
c:\inetpub\wwwroot\ThePhileVB\WebModules\Polls\Poll.ascx.vb:line 62
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain()
Message #2 by "Ken Schaefer" <ken@a...> on Tue, 28 Jan 2003 11:10:46 +1100
Was your SQL Server working before? In which case, are you up-to-date with
your SQL Server security patches? If not, download and install SQL Server
Service Pack 3 from www.microsoft.com/sql

Is this the first time you've tried to connect to the SQL Server? If so, can
we see the connection string?

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Saturnius" <saturnius@g...>
Subject: [aspdotnet_website_programming] Can't connect to SQL server


: --------------------------------------------------------------------------
-
: -----
: An unexpected error has occurred on this page.The system administrators
: have been notified.
:
: The error occurred in:
: http://localhost/ThePhileVB/Default.aspx
:
: Error Message:
: SQL Server does not exist or access denied.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  Return to Index