Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 154803

Forum Post: RE: Dynamics CRM 4.0 Web Reference HTTP status 401: Unauthorized.

$
0
0
by this line crmService.UseDefaultCredentials = true; you are using default credentials, this mean that your current logged user information is passed to CRM, so when you develop with your machine and works means that your user (DOMAIN\USERNAME) is a valid CRM systemuser with a security role assigned. When you deploy to the remote server, you need to check that the user that runs the application you are developing is also a CRM systemuser. The alernative is to specify the username & password inside your code.

Viewing all articles
Browse latest Browse all 154803

Latest Images

Trending Articles



Latest Images

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