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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not associated with trusted SQL server connection

Status
Not open for further replies.

netcashin

Programmer
Nov 13, 2000
159
US
I know this has been posted, but I can't find anything to solve my problem.

I am getting the 'not associated with trusted sql server connection' problem. I created two applciations, one a windows form and one a web form. The windows form has no problems and retrieves the data properly. The web form getst the error.

I created the connections, data adapter, and dataset by dragging and dropping the same for each form.

Any ideas?
 
and you added the aspnet user to the security/logins of the database? and granted the permissions for that user to use the tables?.. you can also use impersonation as well if it still doesn't work.

--------------
:)
 
Try adding this line to your database connection string:

trusted connection=yes

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top