01-28-04 05:36 AM
I am trying to connect to a SQL Server 2000 database, running on Windows Ser
ver 2003, from my development PC, running Windows XP Pro, using ASP.NET. My
ASP.NET application runs fine until I try to connect to the database, at whi
ch point I get the followin
g error message:
----------------------------------------------------------------------------
--------------------------------
Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server
connection.
Description: An unhandled exception occurred during the execution of the cur
rent web request. Please review the stack trace for more information about t
he error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Login failed for user
'sa'. Reason: Not associated with a trusted SQL Server connection.
----------------------------------------------------------------------------
--------------------------------
The SQL Server is set to use SQL Server and Windows Authentication, and I ha
ve a vaild username & password.
If I copy the files onto the deployment server, running Windows Server 2003
and IIS 6.0, without making any changes, the application can connect to the
SQL database without any problems. All 3 machines are running on the same do
main.
This is where it gets interesting. I have a Windows VB.NET application which
connects to the same SQL database as the ASP.NET application. The Windows a
pplication uses exactly the same connection code, including username and pas
sword, as the Web applicati
on. The Windows application can connect to the SQL database without any prob
lems.
Does anyone have any ideas why this might be happening and how I might solve
this problem?
Thanks in advance,
Alistair Gillespie
[ Post a follow-up to this message ]
|