Connecting via SQLServer?

B

Blink

We have an ASP.NET application running on one machine, and a SQL Server on
the other. Under development conditions the application runs fine, and can
connect away to its heart's content, but when we deploy it we get connection
issues. The exact error message we get is

"SQL Server does not exist or access
denied....System.Data.SqlClient.SqlException: SQL Server does not exist or
access denied. at System.Data.SqlClient.SqlConnection.Open() at
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteDataset(String
connectionString, CommandType commandType, String commandText,
SqlParameter[] commandParameters) in
c:\inetpub\wwwroot\testdb\sqlhelper.cs:line 424 at
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteDataset(String
connectionString, CommandType commandType, String commandText) in
c:\inetpub\wwwroot\testdb\sqlhelper.cs:line 403 at
testdb.testdb.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\testdb\testdb.aspx.cs:line "

Has anyone seen this before? We know the connection string is correct, and
that the server exists. The machines can ping each other. Does ASP.NET need
to be given special data rights or anything like that? Do I need to set up a
trusted connection between the two machines? Any help would be greatly
appreciated.
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top