PC Review


Reply
Thread Tools Rate Thread

401 error in ms crm 4.0

 
 
Crm Query
Guest
Posts: n/a
 
      30th May 2008
Hi I have faced the folowing error while trying to connect Asp.net pages to
ms Crm 4.0 . I tried to retrieve an entity records and assign values to the
attributes from Asp.net pages.
Hereby I have attached the code. plz help me to solve the error

401 error : Unauthorized.



CrmService serv = new CrmService();
CrmAuthenticationToken token = new CrmAuthenticationToken();
serv.Credentials = System.Net.CredentialCache.DefaultCredentials;

Guid conguid = new Guid("");

AllColumns cols = new AllColumns();
contact contact = (contact)serv.Retrieve(EntityName.contact.ToString(),
conguid, cols);

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Error: 451, Socket Error: 10053, Error Number: 0x800CCC0F =?Utf-8?B?RGFuaWVsYQ==?= Windows XP Help 3 17th Aug 2007 05:10 PM
Access error 3197 and JETCOMP.exe error "Error compacting database =?Utf-8?B?Vmlja3k=?= Microsoft Access 2 21st Jul 2007 12:29 AM
Error connecting to SQLExpress 2005 locally (error: 26 - Error Locating Server/Instance Specified) hfk0 Microsoft ASP .NET 2 27th Mar 2006 09:43 PM
3 Problems - Media Center Error, Date/Time Error, Downloading Updates Error angieangie Windows XP General 0 23rd Dec 2005 06:33 PM
A runtime error has occured. Do you want to debug? Line: 1 Error: syntax error Eric Windows XP Networking 0 24th Nov 2003 03:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:23 PM.