none
Network Authorization

    Question

  • Hi Expert,

                Now, i'm testing SDK 4.0 sample of crm4.0. When i test i face this problem. My testing CRM is installed at VPC (MFG Version). When i contact from my pc to crm i cannot connect.

    I set authorization at my code but stay cannot connect.

    CrmDiscoveryService discoveryService = new CrmDiscoveryService();
            discoveryService.UseDefaultCredentials = false;
            discoveryService.Credentials = new System.Net.NetworkCredential("administrator", "pass@word1", "crm-srv-01"); // I set this one but cannot connect.
            discoveryService.Url = String.Format("http://{0}:{1}/MSCRMServices/2007/{2}/CrmDiscoveryService.asmx",_hostname,_port, "AD");
    

    Error is Http status 401: unauthorized. How can be pass this problem?

    Best Regards,

    Yukon

    Tuesday, December 14, 2010 10:25 AM

Answers

  • Are you sure about:

    discoveryService.Credentials = new System.Net.NetworkCredential("administrator", "pass@word1", "crm-srv-01"); 
    

    The third parameter specifies the AD domain; by default, the CRM VPCs use either "LITWAREINC" (old CRM 4.0 VPC) or "CONTOSO" (new CRM 4.0 VPC) as their AD domain name.


    --pogo (pat)
    • Marked as answer by Yukonn Wednesday, December 15, 2010 7:48 AM
    Wednesday, December 15, 2010 12:33 AM