CRM 2011 - Custom App and Organization service reference authentication RRS feed

  • Question

  • In my custom application I have following code

    Credentials _Credentials= New ClientCredentials();
    _Credentials.Windows.ClientCredential = CredentialCache.DefaultNetworkCredentials;

    serviceProxy = new OrganizationServiceProxy(OrganizationUri, null, _Credentials, null)

    When I run application in visual studio it works great. But when I deployed this on IIS I got following error:

    The request for security token could not be satisfied because authentication failed

    I can authenticate if I pass log on details, but I need my application to use the credentials of the user. Any ideas what could be wrong? If we want to run the custom app for the current user how can we get the service reference accordingly?

    Thanks, Jaydeep

    Wednesday, August 28, 2013 4:45 PM

All replies

  • You need to enable Windows Authentication on the IIS Web Sit.

    Thursday, August 29, 2013 10:47 AM