Month: May 2013

Import Solution Issue in UR 12

Recently we tried to import solution on CRM which was recently updated from UR 6 to UR 12.

Solution we had was taken from same server from a different org (after upgrade) and was getting stuck at the import step with no activity (at all) in progress bar.

Following Exception was there in CRM Trace log viewer

at CrmException..ctor(Int32 errorCode, Object[] arguments) ilOffset = 0x36

at SolutionImportProcessPage.ProcessRequestData() ilOffset = 0x4A

at SolutionImportProcessPage.ProcessAction(String action) ilOffset = 0x92

at AppUIPage.OnPreRender(EventArgs e) ilOffset = 0xD

at Control.PreRenderRecursiveInternal() ilOffset = 0x54

at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ilOffset = 0x6D3

at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ilOffset = 0x3C

at Page.ProcessRequest() ilOffset = 0x14

at Page.ProcessRequest(HttpContext context) ilOffset = 0x31

at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ilOffset = 0x18D

at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ilOffset = 0x15

at ApplicationStepManager.ResumeSteps(Exception error) ilOffset = 0x10A

at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) ilOffset = 0x5C

at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) ilOffset = 0x16A

at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) ilOffset = 0x4B

>Crm Exception: Message: An error occurred while importing a Solution., ErrorCode: -2147188685

To resolve this following post from Microsoft discussion forum helped

  1. Stop Async Service in services.msc
  • Run “services.msc”
  • Stop Async Service


2.  Take Microsoft.crm.sdk.proxy.dll from latest sdk

3.  Open Visual studio command line tools (in administrator privileges)


gacutil /i c:sdkbinMicrosoft.crm.sdk.proxy.dll


4.  IIS reset, restart CRM Async Service in services.msc

Try importing the solution


PS: If you are in a farm deployment then Install Microsoft,crm.sdk.proxy.dll in the server running CRM Async Service.

Before installing dll, stop the async service, install dll in gac and restart async service.


CRM 2011 Unsupported Customizations

In CRM 2011 it’s not recommended to have unsupported customizations. But at times there is no way out of that.

Here are some unsupported customizations that I found useful.

  1. If you want to disable the View Picker or say you don’t want users to select any other view in lookup



    document.getElementById(“customerid”).setAttribute(“disableViewPicker“, “1″);


  2. To Hide search box from options


    document.getElementById(“customerid”).setAttribute(“disableQuickFind“, “1″); 



  3. Hide Complete Lookup Browser (Hilighted Part)


    document.getElementById(“customerid”).setAttribute(“_lookupbrowse“, “1″);


  4. Hide New Button on Lookup Form





  5. Changing Default lookup type in “Look for: ” drop down (Here setting to Contact “entity type code = 2” instead of Account)

document.getElementById(“customerid”).setAttribute(“defaulttype“, “2”);

  1. Setting particular lookup type in “Look for: ” drop down (Here setting to Contact “entity type code = 2”)


    document.getElementById(“parentcustomerid”).setAttribute(“lookuptypes“, “2”);


  2. Setting Lookup Type Name

    document.getElementById(“parentcustomerid”).setAttribute(“lookuptypenames“, “contact:2”);


  3. Setting Icon to be displayed in Lookup box (after selecting)

    document.getElementById(“parentcustomerid”).setAttribute(“lookuptypeIcons“, “/_imgs/ico_16_2.gif”);