I created a sample application which creates a new account in ms crm through
SDK.
The asp.net application runs fine and inserts new account on the machine in
which ms crm 3.0 is installed.
Now if I run that application from my machine which is in same domain then
it gives me following error :-

The request failed with HTTP status 401: Unauthorized.

For update function it gives following error :-


Server was unable to process request.

Exception Details: System.Web.Services.Protocols.SoapException: Server was
unable to process request.


Source Error:


Line 351:
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/crm/2006/WebServices/Update",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
Line 352: public void
Update([System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.microsoft.com/crm/2006/WebServices")] BusinessEntity entity) {
Line 353: this.Invoke("Update", new object[] {
Line 354: entity});
Line 355: }


Can anybody please help me. I used the following code :-


CrmService service = new CrmService();
service.Url =
"http://01hw084810:5555/MSCRMServices/2006/CrmService.asmx";

service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create an account entity and assign data to some attributes.

account newAccount = new account();

newAccount.name = "test Greg Bike Store0";
newAccount.accountnumber = "1323456";
newAccount.address1_postalcode = "982052";
newAccount.address1_city = "Redmond";

// Call the Create method to create an account.
Guid accountId = service.Create(newAccount);