My asp.net app can connect to the sql server when running in debug mode, VS2008.
It will not connect at the published location using
.etc
Connection string
Error message at the connection "open" statement:
Login failed for user ''. The user is not associated with a trusted SQL Server connection.
Note that the "user" was empty ie: '' as shown above.
The entire app worked fine and the web page could be accessed by anyone on my domain right up to the time I switched from AccessDataSourc e to SqlDataSource.
Anyway, just wondering how to debug this. All the queries and reports actually work and the remote sql server responds with the correct data, but only if I had hit F5 (debug) in Visual Studio 2008. Obviously, no one can access it because they get that trusted SQL complaint and I also get the same complaint when using localhost
best regards
It will not connect at the published location using
Code:
http://localhost/...default.aspx
Connection string
Code:
Data Source=SWRI16SQL1;Initial Catalog=training09;Integrated Security=SSPI;
Error message at the connection "open" statement:
Login failed for user ''. The user is not associated with a trusted SQL Server connection.
Note that the "user" was empty ie: '' as shown above.
The entire app worked fine and the web page could be accessed by anyone on my domain right up to the time I switched from AccessDataSourc e to SqlDataSource.
Anyway, just wondering how to debug this. All the queries and reports actually work and the remote sql server responds with the correct data, but only if I had hit F5 (debug) in Visual Studio 2008. Obviously, no one can access it because they get that trusted SQL complaint and I also get the same complaint when using localhost
best regards

Comment