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;Datab ase=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'.
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;Datab
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.