I created a simple aspx page to create a new contact in CRM, however I keep getting an http error "The request failed with HTTP status 401: Unauthorized."
I guess the it's because username/password I am using is not authorized in CRM... I disabled anonynous access in IIS but still it doesn't work. Is there any trick to make it accessible? Or to use a different user
Thanks

RE: error accessing CRM from custom web page by anonymous

anonymous
Tue May 18 17:56:08 CDT 2004

Are you using the CUserAuth object?? Are you using the System.Net.CredentitalCache

Just make sure to specify a valid GUID for both the UserId and MerchantId that CUserAuth requires. The System.Net calls are boilerplate from MSDN

Chris Basset
Precision Systems Consulting, Inc



Re: error accessing CRM from custom web page by John

John
Tue May 18 23:52:43 CDT 2004

The only users who can access crm data are domain users who have a crm
license assigned to them.


"fred caldera" <anonymous@discussions.microsoft.com> wrote in message
news:1B94FC03-F7FF-40BE-A9EF-5653D41019A1@microsoft.com...
> I created a simple aspx page to create a new contact in CRM, however I
keep getting an http error "The request failed with HTTP status 401:
Unauthorized."
> I guess the it's because username/password I am using is not authorized in
CRM... I disabled anonynous access in IIS but still it doesn't work. Is
there any trick to make it accessible? Or to use a different user?
> Thanks



RE: error accessing CRM from custom web page by anonymous

anonymous
Thu May 20 03:21:02 CDT 2004

well, I'm using WhoAmI()... isn't this correct? I guess this fetched the current user logged on to XP... is it not
thanks

Re: error accessing CRM from custom web page by sebastianh

sebastianh
Fri Jul 16 05:09:01 CDT 2004

"John O'Donnell" wrote:

> The only users who can access crm data are domain users who have a crm
> license assigned to them.
>

That's right. I'm using BizTalk 2004 that is connecting to CRM, but since BizTalk is running as a system service (with an domain account), I had two options:
1. the BizTalk system user should get an CRM license
2. use System.Net.NetworkCredentials(user, password, domain)

Then you can choose an existing license-account