Can’t read Windows Generic credentials after deploy WCF Service in to IIS Server. RRS feed

  • Question

  • I have used CRM 2011 ServerConnection Helper class and it worked with the Local machine and still it works with the Deployment server if you run with Visual studio Virtual WCF host. Whereas if you deploy that WCF service in to IIS and attach the process in to Visual studio Solution to debug  – then it will skip that Reading credential part to get the password from the Windows credential Manager.  Following is the code that doesn't retrieve the windows Generic Credentials Manger Password.

    Credential credential;

    bool bSuccess = NativeMethods.CredRead(TargetName + target, CRED_TYPE.GENERIC, 0, out credential);

    Please let me know if someone has used this method (ServerConnection Class ) to retrieve windows Server Generic Credentials. For me it’s like issue is related with settings on IIS. Please help me on this regards. 

    Tuesday, September 3, 2013 11:28 PM