Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM 2011 - Custom App and Organization service reference authentication

$
0
0

In my custom application I have following code

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

serviceProxy =newOrganizationServiceProxy(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


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>