Showing posts from April, 2011

System.ServiceModel.EndpointNotFoundException in OWSTIMER.EXE

I started getting this error every five minutes after the timer service would kick off. An Unhandled exception ('System.ServiceModel.EndpointNotFoundException') occurred in OWSTIMER.EXE Turns out that the error was due to the Forefront Identity Manager Service not being started.  After starting the service the error goes away.

CRM 2011 Publisher Policy / Redirection

While working on a CRM 2011 application I kept getting the following error even though I was not even using the CRM 4.0 SDK file. Exception information: Exception type: FileLoadException Exception message: Could not load file or assembly 'Microsoft.Crm.Sdk, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) To get around the problem I put the following redirection binding to the CRM 2011 SDK in the web.config. This runtime info can go anywhere directly underneath the configuration node. <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Microsoft.Crm.Sdk" culture="neutral" publicKeyToken=&q

Clear IE Cache Through Command Line

Apparently you can clear the IE cache using the command line.  This is going into batch files to reduce the number of times I have to click in IE. All , RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255  History , RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1 Cookies , RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2 Temp Internet Files , RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 Form Data , RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16 Passwords , RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

Come Out and See Anne Marie in [title of show]

My lovely wife Anne Marie will be performing in [title of show] at The Little Theatre of Alexandria from April 23-May 14.  If you can make it out to support her I would appreciate it.  I'm planning on attending Easter Sunday, hope to see you there. [title of show] Directed by Michael Kharfen Music and lyrics by Jeff Bowen Book by Hunter Bell April 23–May 14, 2011 [title of show] is a unique and quirky musical about two guys who write a Broadway musical about two guys writing a Broadway musical. With a couple of their actress friends, they journey from the unemployment line to the bright lights of Broadway. Don’t miss the show that The New York Times called “...genial, unpretentious and far funnier than many of the more expansively manufactured musicals that make it to Broadway.” This is a 21st century update of “putting on a show” clever songs and witty dialogue. (Strong Language)

CRM 2011 Ribbon XML Tips

SharePoint 2010 uses the same ribbon xml schema and there are a lot of resources which are also applicable to CRM 2011. So if a google search using 'CRM 2011 Ribbon' doesn't work try 'SharePoint 2010 Ribbon'. In order to determine sequence numbers you first need to determine the sequence of items currently on the form. You can do this using a tool in the SDK which will allow you do download the ribbon definitions for all of the entities. C:\CRM SDK RC\samplecode\cs\client\ribbon\exportribbonxml\  NOTE:If you have Many to Many relationships within your custom entities make sure to update the SDK ExportRibbonXML utility to look enture the IsIntersect property is false or the export will fail. //<snippetExportRibbonXml5> //Check for custom entities RetrieveAllEntitiesRequest raer = new RetrieveAllEntitiesRequest() {EntityFilters = EntityFilters.Entity}; RetrieveAllEntitiesResponse resp = (RetrieveAllEntitiesResponse)_serviceProxy.Execute(raer); fo

Global Context for CRM 2011

When creating htm pages as webresources in 2011 there are many times you would want to get information about CRM such as the orgname and server url.  This is where the ClientGlobalContext comes in to play. <script src="ClientGlobalContext.js.aspx"></script> Remember that if the web resource name has a folder name(s) before it you must include preceding "../" in front of the script name. Example 1: Webresource Name: mycust_/test.htm Script reference: <script src="../ClientGlobalContext.js.aspx"></script> Example 2: Webresource Name: mycust_/elements/test.htm Script reference: <script src="../../ClientGlobalContext.js.aspx"></script> By adding this reference into your htm file you will now have access to several javascript functions: getAuthenticationHeader: Returns the encoded SOAP header that you need to use Microsoft Dynamics CRM 4.0 Web service calls using Jscript. getOrgLcid: Return