Link to home
Start Free TrialLog in
Avatar of tj_ntwnt
tj_ntwnt

asked on

problem connecting to sql from wcf service running in IIS 6

I have a WCF service running in IIS 6.  
In IIS it is set to “Enable anonymous access”.  I set the User name to “domain\useraccount” and set the password.
In the web config in the <system.web> section I have <identity impersonate="true"/>

This is the connection string: “Server=ANTWRISE\BCW;Database=DBNAME; Trusted_Connection=True;”

When I attempt to connect to the database I get this error:
Cannot open database "DBNAME" requested by the login. The login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
ASKER CERTIFIED SOLUTION
Avatar of tj_ntwnt
tj_ntwnt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial