Outlook freezes trying to search

My Outlook (2007) froze trying to search in any folder, even an empty one :(

Problem:

Windows Search Service (Windows 7)

Event Log Error:

The plug-in in <Search.TripoliIndexer> cannot be initialized

Solution:

Start Windows Search Service (it was stopped, I don’t why :( ). However, I couldn’t do it straigh forward and first I had to set the value from 1 to 0 for the next registry entry :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Search\SetupCompleted

After set that entry to 0, I tryied to start the service and it works fine. That entry automatically is set up to 1 again.

I hope it helps.

PS: My fount of inspiration was the next forum discussion:

http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/e286be80-ed7e-4026-b6b7-d512ff642db5

Dynamics XRM Tools 1.0 BETA released

Overview

Dynamics XRM Tools brings you a quality range of applications that provide a useful set of features to enhance your experience while using and developing against Microsoft Dynamics CRM 2011. The toolset consists of a Silverlight application framework that provides a central location for accessing the tools and you simply import the managed solution into CRM to begin working with it. Find the tool at Codeplex and don’t forget to leave feedback so we can improve this for everyone. http://dynamicsxrmtools.codeplex.com/

Currently available tools include

  • OData Query Designer
  • Metadata Browser
  • CRM 4 to CRM 2011 JavaScript Converter
  • Trace Tool (on premise only)
  • Statistics

Dynamics XRM Tools

About Dynamics XRM Tools

The Dynamics XRM Tools project provides a modular framework for hosting Silverlight applications within a single shell.

A joint effort started by Rhett Clinton MVP and myself has produced an extensible application framework that allows additional tools to be developed and included as a part of the toolset. Rhett’s original CRM tools have been ported to the new framework (with enhancements) and additional tools have already been created with more in development.

[CRM 4] How to re-active failed asynchronous jobs

Because of different issues (e.g. missing some account in the PrivUserGroup) , you might find in your CRM system (this experience is based on Dynamics CRM 4, it might be applicable to CRM 2011) that some asynchronous jobs have failed and their current state and status is “Completed-Failed”.

How can you re-active these failed asynchronous jobs?

First option (supported): If they are on demand workflows, try to re-run them again

Second option (unsopported): Change the state and status of these jobs to “Ready-Waiting For Resources”. You have to do this from CRM DB using the next script:

UPDATE AsyncOperationBase

set Statecode = 0 , statuscode = 0

where asyncoperationid in

(

SELECT asyncoperationid

FROM AsyncOperationBase with (NOLOCK)

where StatusCode = 31

and CreatedOn >= ‘Start-datetime’ and CreatedOn <= ‘End-datetime’

)

These solution is also suitable for workflow expansion task

Speaking at eXtremeCRM 2012 Berlin

Let’s start the new year 2012 with new challenges. I’m pleased to announce that I will be one of the speakers in the eXtremeCRM 2012 Berlin conference. This event, well known among the community, is the premier partner event focused exclusively on Microsoft Dynamics® CRM and dedicated to advancing best practices and strategies for Microsoft Dynamics CRM organizations. There are two separate eXtremeCRM events held each year, one in Europe and the other in the United States.

eXtremeCRM Objectives

· Deliver a clear understanding of Microsoft’s strategy and product roadmap for Microsoft Dynamics® CRM and how it relates to xRM

· Teach partners how to position the Microsoft Dynamics CRM / xRM branding and messaging to their clients and prospects

· Create a connection between Microsoft product experts, peers and Microsoft Dynamics CRM ISVs to the reselling community

· Help partners understand how to increase the profitability of your practice

· Deliver best practices for xRM implementations

· Teach the partners how to compete successfully against CRM competitors

· Teach partners how to leverage Microsoft Dynamics CRM as a platform and how the new release extends those capabilities

· Generate excitement within the channel to sell more Microsoft Dynamics CRM solution

Have a look at the AGENDA.

What will I talk about?

Web Services & Code Generation Deep Dive

Enterprise applications require quick answers to aggressive and demanding requirements, at the same time that they keep a robust entity model and robust business processes. Code generation is a key point to achieve these goals. During this session we will understand different ways to generate code based on a Microsoft Dynamics CRM 2011 solution. We will also see how to customize the code generation process and integrate it with the Developer Toolkit.

Silverlight & Microsoft CRM Development Enterprise Architectures

Silverlight is the perfect complement to extend and improve the users experience of Microsoft Dynamics CRM platform. During this session we explain an interesting scenario where PRISM, Silverlight and Microsoft Dynamics CRM are joined to get an elegant solution, based on a smart enterprise architecture.

eXtremeCRM2012Berlin_signatureblocks_Im_Speaking_at

Don’t miss this opportunity, I’ll see you there!

[CRM 2011] RetrievePrivilegeForUser failed – no roles are assigned to user. Returned hr = -2147209463

Have you added the system account which is running the CRM App Pool in IIS as a new user to your Dynamics CRM organisation? :(

The system crashes when you add an account that is running the CRMAppPool as a Microsoft Dynamics CRM user. This is a documented issue and this behavior is by design.

By default, when a CRM user is created in Microsoft Dynamics CRM, the user has no security roles. Because the CRM service account is mapped with the newly created user, the CRM service account cannot operate anything. Therefore, the system crashes.

See the next CRM support article

SOLUTION:

There may be several solutions, but the quickest one probably is the next one: remove your current organization and re-imported it again mapping all users except the corresponding system account that is running the CRMAppPool. When you remove the organization from Deployment Manager, it doesn’t delete the related database; it only removes it from CRM configuration, so that you can import it again with a new configuration.

More information is available in the “Services and CRMAppPool IIS application pool identity permissions” section of the Microsoft Dynamics CRM 2011 Implementation Guide

[CRM] Unable to obtain DNS hostname of Active Directory domain controller

In CRM 4 and CRM 2011, are you trying to create an organisation, import an organisation or register some plugins and you are getting the following error:

[...] Unable to obtain DNS hostname of Active Directory domain controller [...]

Weird, isn’t it?

In my case I was trying to register some plugins and I got that messages from the CRM traces.

Finally, I found the problem and the solution:

PROBLEM:

  • Active Directory contains many domain controllers.
  • You have insufficient permissions to query all domain controllers.

SOLUTION:

  • Install last rollup (I got 17 and it works fine)
  • Add the entry PreferredDc in HKLM\Software\Microsoft\MSCRM with the closest domain controller (run this command >echo %logonserver% in your CRM server)

Original article from Microsoft Support:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;954811

[CRM 2011] Early bound types and plugins

Have you tried to use early bound types in plugins? After run crmsvcutil to generate the early bound types, you probably want to use them in your plugins. If the generated code is in the same assembly that the plugins, you won’t get any problem.

image

However, in a medium-big project, you may want to separate common functionality, as business processes or entity wrappers, from the rest.

image

How are you going to deploy that Common library? Either you can put it in the GAC or merge it with the Plugins assembly. However, as it is, you will get an “Unexpected error” the first time you try to use the IOrganizationService with early bound types inside of your plugins. Example:

public class PreCreateContact : BasePlugin
{
   protected override void ExecutePlugin(IOrganizationService service, ITracingService tracingService)
   {
       Task newTask = new Task();
       newTask.Subject = "Testing";
       service.Create(newTask); //Here you will get the error
   }

}

To avoid this exception, you should add the next line to AssemblyInfo.cs in your Plugin project

[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()]

[CRM 2011] Data, Metadata and Code Generation

Following up my previous webcast about Data, Metadata and Code Generation, which can be watched online in any time, I wanted to share the resources (pptx and source code) that I showed during the event. In addition, I want to take this time to explain few more details.

On one side, we were talking about how to consume the CRM services to handle data and metadata based on three tools: Visual Studio Service Reference, CrmSvcUtil.exe and DataSvcUtil.exe. As summary, I prepared the next table with the possible cases to evaluate:

image

Go to this link, and download the VS2010 solution. As you can see below, you will find four projects according to the tool and the scenario: Early-Bound, Late-Bound and Metadata.

image

image

From the other side, we saw how to extend the tool CrmSvcUtil.exe to customise the code generation process following the next interfaces (these interfaces are defined inside of CrmSvcUtil.exe):

ExtendCrmSvcUtilTable

Go to this link and download the VS2010 solution where you can find three projects:

image

CrmSvcUtil project is the source code of CrmSvcUtil.exe, which has been reflected for debugging and educational propose Smile . You can see a new App.config with the corresponding parameters. CodeDomXrmServices is the project that contains the extensions. In this case, we have extended ICodeWriterFilterService to filter the entities, as well as to allow the generation of Picklist and Status. Finally, TestCrmSvcUtil is a simple project to test the result generated by CrmSvcUtil.

I hope you find this helpful

[CRM 2011 Webcast] Data, Metadata and Code Generation in CRM 2011

Dynamics CRM 2011 offers a new WCF service layer based on two endpoints: SOAP and REST. During the next webcast (Tuesday 12th April,19.00(GMT+01:00) Madrid, París), we will see how to use both of them, their supported operations and how to generate code from them easily for the line of business applications. Basically, these are the points to review:

  • Data: Early and Late bounds
  • Metadata
  • Code generation
    • Visual Studio Service Reference
    • CrmSvcUtil.exe
    • DataSvcUtil.exe
  • Extending CrmSvcUtil.exe

Event registration:

https://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032484030&EventCategory=4&culture=es-ES&CountryCode=ES

Web Service Data in Dynamics CRM 2011 for Silverlight applications as web resource

This post sums up the two endpoints provided by CRM 2011, SOAP and REST, which can be used by our integrated Silverlight applications.

• Both of these Web services rely on the authentication provided by the Microsoft Dynamics CRM application

• They cannot be used by code that executes outside the context of the application

• In this release of Microsoft Dynamics CRM the SOAP endpoint provides an alternative way to perform operations that the REST endpoint is not yet capable of

REST_SOAP_table1

REST_SOAP_table2

Follow

Get every new post delivered to your Inbox.