401.1 Unauthorized error when connecting to CRM2011

After a recent installation of CRM 2011 which seemed ot work, I found that users could not connect to the CRM website from their PCs. They were asked to enter their username and password (which was not accepted) and ended up on a 401.1 Unauthorized page. This was despite CRM working absolutely fine on the server.

Clearly the issue was an IIS one. Eventually I discovered that kernel-mode authentication was not enabled for the CRM website. I enabled the settting and all was well. For details of how to change the setting, refer to this article.

CRM 4 State Error

Someone recently sent me this error message, see if you can make sense of it:

CRM 4 State Error Message

Deleting Teams in Dynamics CRM 4.0

Like many people I thought that teams could not be deleted so I was surprised to discover that teams can be deleted programmatically.

The SDK documents a TargetDeleteTeam class. So, teams can be deleted using the web services.

You'll need to know the GUID of the team record. Here is sample code:

  // Set up the CRM Service.
  CrmAuthenticationToken token = new CrmAuthenticationToken();
  token.AuthenticationType = 0;
  token.OrganizationName = "AdventureWorksCycle";

  CrmService service = new CrmService();
  service.Url = "http://crm/mscrmservices/2007/crmservice.asmx";
  service.CrmAuthenticationTokenValue = token;
  service.Credentials = System.Net.CredentialCache.DefaultCredentials;

  // Create the target object for the request.
  TargetDeleteTeam target = new TargetDeleteTeam();
  // EntityId is the GUID of the record being deleted.
  target.EntityId = new Guid("60F77BF5-6764-DF11-81DD-0003FF7E73B4");

  // Create the request object.
  DeleteRequest delete = new DeleteRequest();
  delete.Target = target;

  // Execute the request.
  DeleteResponse deleted = (DeleteResponse)service.Execute(delete);

Pages