Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error message "Login failed for user"

Status
Not open for further replies.

jayy66

Programmer
Joined
Aug 21, 2006
Messages
56
Location
US
I have a webservice set up that is suppose to access sql server and return a dataset, however, i keep getting the error message below:

"Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: <local machine>]"


The same code works fine in a windows application. The connection string contains the username and password and i even have <identity impersonate="true"/> listed in the web.config file.

Can anyone help me get around this??

I read about adding ASP.NET as a user in enterprise manager but i have no idea on how to do this.

Thanks
 
Thanks for the reply but I've checked that already and it is already set to SQL Server and Windows mode. By the way, i'm using 2000.
 
Silly as it sounds, try resetting the password in SQL Server for that particular account. We've run into that problem recently where that's all we needed to do to get it working again.



Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top