I have WCF Service project which connect to the SQL server 2008 to do operation like Insert, Update, Delete and select. On IIS I want the connection to sql server is made by using dedicated system account which is stored in server's registry. I am using following code in my WCF web.config to get userID and Passward from server's registry
<System.web>
<identity impersonate="true" userName="registry:HKLM\SOFTWARE\MY_SECURE_APP\acctopsmain\ASPNET_SETREG,userName" password="registry:HKLM\SOFTWARE\MY_SECURE_APP\acctopsmain\ASPNET_SETREG,password" />
</system.web>
I am getting login failed for User "Domain\ServerName" error message
Authentication level on IIS server is Anonymous Authentication
Any help would be appreciated. Thanks, Yogi