ERROR_NOT_FOUND: Error with Credential Manager API

Apr 7 2015 12:38 PM
Hi guys,
I am struck with a problem while retrieving the Windows Credentials from WCF service.
1. I have used WSHttpBinding.
2. I have configured the Website and App pool to run under a specific user who is an Administrator for the server.
3. I have created the windows Credential of Generic type using Credential manager with the same user.
4. I configured the Website to allow only Anonymous and Windows Authentication in IIS (IIS Version: 8.5).
5. I tried the same code in the same server by logging into server with same user and debug the service. The service is returning the windows Credential requested.
6. But i am unable to retrieve the Windows Credentials from the same code when published in IIS in the same server.
i configure the Security in Server and client as below:
   <bindings>
      <wsHttpBinding>
        <binding name="wsHttpEndpointBinding">
          <security mode="Transport" >
            <transport clientCredentialType="Windows"/>            
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
7. I tried to read the error code generated by Credential Manager API from  my code and it returned the below error when i am accessing the deployed service.
  • ERROR_NOT_FOUND: there is no credentials associated with the given resource name.
8. I have also checked this with other environments out side my virtual machine with the same code and config file. All environments it is working fine except my environment. Can any body help me out on this...