running msde200a

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 ?
 
W

William Ryan eMVP

Check the connection string... make sure if you are using Integrated
Security that the account has permissions and make sure the servername is
correct. If you are using Mixed Mode, make sure the username and password
are correct. Not sure if you are running the db locally or not, but also
make sure you can ping the server if it's remote.

--
W.G. Ryan MVP Windows - Embedded

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/community/newsgroups
bgnet said:
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\executin
gacommand.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(SqlConnec
tionString 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\executin
gacommand.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\executin
gacommand.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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top