G
Guest
When I attempted to run an example proved by FrameWork.NET SDK 1.1, I received this from the compiler:
SQL Server does not exist or access denied.
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.Data.SqlClient.SqlException: SQL Server does not exist or access denied.
Source Error:
Line 38:
Line 39: // Open the connection.
Line 40: myConnection.Open();
Line 41:
Line 42: // Assign the connection property.
Source File: C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\QuickStart\howto\samples\adoplus\executingacommand\cs\executingacommand.cs Line: 40
Stack Trace:
[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +484
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
HowTo.Samples.ADONET.executingacommand.Run() in C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\QuickStart\howto\samples\adoplus\executingacommand\cs\executingacommand.cs:40
ASP.executingacommand_aspx.Page_Load(Object Src, EventArgs E) in C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\QuickStart\howto\samples\adoplus\executingacommand\cs\executingacommand.aspx:12
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
This is what I receive when attempting run example. I am using virtual machine on a xp professional os. What must I do to have the the sample program see the sql database ?
SQL Server does not exist or access denied.
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.Data.SqlClient.SqlException: SQL Server does not exist or access denied.
Source Error:
Line 38:
Line 39: // Open the connection.
Line 40: myConnection.Open();
Line 41:
Line 42: // Assign the connection property.
Source File: C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\QuickStart\howto\samples\adoplus\executingacommand\cs\executingacommand.cs Line: 40
Stack Trace:
[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +484
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
HowTo.Samples.ADONET.executingacommand.Run() in C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\QuickStart\howto\samples\adoplus\executingacommand\cs\executingacommand.cs:40
ASP.executingacommand_aspx.Page_Load(Object Src, EventArgs E) in C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\QuickStart\howto\samples\adoplus\executingacommand\cs\executingacommand.aspx:12
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
This is what I receive when attempting run example. I am using virtual machine on a xp professional os. What must I do to have the the sample program see the sql database ?