I'm trying to test a .Net 2.0 Web Service I created in C#. One of our servers is on windows 2000 and can currently only support .Net 2.0 . I can test it local to my machine and it works fine but when I move it to the target server for production it produces an error.
I want it to use Windows authentication, and have it defined as such in the web.config
The error I receive is as follows:
System.Data.SqlClient.SqlException:
Login failed for user ''. The user is
not associated with a trusted SQL
Server connection.
This occurs when I try to test this web service on the target server (running locally on that server).
How can I associate an active directory username with the server/location the web service is running (I think that's what I need to do?)
This server can currently connect to MSSQL 2005 via classic ASP and ColdFusion.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…