Wednesday 27 August 2014

After installing Rollup 16/17, i started getting Syntax Error (it happens on RU 12+)

I upgraded my crm 2011 org from Rollup 5 to 16/17. After installing rollup when I try to refresh page or close page,  I started getting following error

Microsoft Dynamics CRM Error Report Contents
<CrmScriptErrorReport>
  <ReportVersion>1.0</ReportVersion>
  <ScriptErrorDetails>
   <Message>Syntax error</Message>
   <Line>1</Line>
   <URL>/userdefined/edit.aspx?etc=10083&id=%7bD659C33F-2C2D-E411-A69D-00155DC1050C%7d&pagemode=iframe</URL>
   <PageURL>/userdefined/edit.aspx?etc=10083&id=%7bD659C33F-2C2D-E411-A69D-00155DC1050C%7d&pagemode=iframe</PageURL>
   <Function></Function>
   <CallStack>
   </CallStack>
  </ScriptErrorDetails>
  <ClientInformation>
   <BrowserUserAgent>Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.3; .NET4.0E; .NET4.0C)</BrowserUserAgent>
   <BrowserLanguage>en-US</BrowserLanguage>
   <SystemLanguage>en-US</SystemLanguage>
   <UserLanguage>en-GB</UserLanguage>
   <ScreenResolution>1829x1029</ScreenResolution>
   <ClientName>Web</ClientName>
   <ClientTime>2014-08-27T13:47:55</ClientTime>
  </ClientInformation>
  <ServerInformation>
    <OrgLanguage>1033</OrgLanguage>
    <OrgCulture>1033</OrgCulture>
    <UserLanguage>1033</UserLanguage>
    <UserCulture>1033</UserCulture>
    <OrgID>{6D7D42E2-F413-E411-B524-00155DC1050C}</OrgID>
    <UserID>{8594944A-FE13-E411-B524-00155DC1050C}</UserID>
    <CRMVersion>5.0.9690.4156</CRMVersion>
  </ServerInformation>
</CrmScriptErrorReport>

When I press F12 to see the error in IE developer tool it shows

edit.aspx?etc=....
<!DOCTYPE HTML PULBIC "..//W3C//DTD HTML 4.0 Transitional//EN">
<!DOCTYPE html PUBLIC "" ""><HTML>...



After doing bit of search I found out that this has started happening after Rollup 12+

Resolution:
Make sure all the javscript libraries are starting with the $webresource: prefix



http://dynam1cscrm.wordpress.com/2013/03/25/visual-ribbon-editor-calling-javascript-function-syntax-error-after-upgraded-to-crm-2011-rollup-12/

Tuesday 26 August 2014

After installing RU 16 and then 17, one of the working webservice stopped working

We have a webservice  which was built using 32 bit dll and is used within crm, for that purpose we created a new application pool to run for .net 4 but to allow 32 bit application to run.
This was working fine, however

After RU 16 and 17 were installed, I started getting error

"HTTP Error 500.0 - Internal Server Error

Calling LoadLibraryEx on ISAPI filter "c:\Program Files\Microsoft Dynamics CRM\Server\bin\DefaultAddonFilter.dll" failed
...
Handler: ExtensionlessUrl-Integrated-4.0

"

Resolution:

1. Copy the "Microsoft.Crm.Core.dll" to the bin folder of webservice
2. Go to the app pool and click on "Advance Settings..." specified in the Actions properties area and set the 'Enable 32-Bit Applications" to False.
3. Add the node <clear/> in the configuration/system.web/httpModules node
<httpModules>
   <clear />
</httpModules>
4. Add the following section in the configuration/system.webServer/handlers node as below
<handlers>
     
<clear/>
     
<add name="svc-Integrated-4.0" path="*.svc" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" preCondition="integratedMode" />

<add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" resourceType="Unspecified" preCondition="integratedMode" />

</handlers>







http://ms-crm-2011-beta.blogspot.co.uk/2011_09_01_archive.html

Friday 22 August 2014

After UR16 and 17, import solution process hangs

After UR16 and 17 when I try to import solution the progress bar shows 0 progress even after 15 mins, even if i have a pretty small solution file.

I tried repair CRM ... no luck
Tried IE 8,9 and 10 still no luck

looked into database using following query and no record is shown as created.

selectsolutionname,progress, startedon, completedon from importjob(nolock) order by startedon desc

----
By running trace log got following error

[2014-08-22 10:23:18.896] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   15 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 60faee5d-965c-4002-ac92-b398190d2694 | CrmException..ctor  ilOffset = 0x36
 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 = 0x69E
 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 = 0x11D
 at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15
 at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10E
 at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C
 at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0xFC
 at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x45
>Crm Exception: Message: An error occurred while importing a Solution., ErrorCode: -2147188685


Resolution:

Download the CRM 2011 SDK from microsoft website http://www.microsoft.com/en-gb/download/details.aspx?id=24004

Stop the Async Service

- Open Visual Studio Command Prompt in administrator mode and run following command

 gacutil -i "C:\SDK\Bin\Microsoft.Crm.Sdk.Proxy.dll"

- IISReset

- Restart Microsoft Dynamics Aync services

http://www.abhinavranjan.net/blog/2013/05/import-solution-issue-in-ur-12/

 

Wednesday 20 August 2014

selectSingleNode error after crm 2011 rollup 16 installed

The processes which were working before start giving 'selectSingleNode' error, after doing little bit of search I found out this is happening due to from rollup 12 and plus, CRM 2011 gives multibrowser support. And the javascript file referenced had i.e. specific calls. http://community.dynamics.com/crm/b/gonzaloruiz/archive/2013/02/13/javascript-xml-processing-dom-and-crm-2011-ur12.aspx

Tuesday 19 August 2014

import crmsolution failed after update to rollup 16

Import-CrmSolutionFile : Import Error. workflow:{000000000-xxxxx-xxxxx}:Workflow name This workflow cannot be created, updated or published because it was created
 outside the Microsoft Dynamics CRM Web application. Your organization does not allow this type of
workflow.

http://msdn.microsoft.com/en-us/library/8da8c71e-84af-441e-b99b-0b59399f10f6#enable_disable

when following above instructions I started getting the below error.

At C:\PS\CRMPS.SolutionSourceControl.psm1:478 char:26
+             import-crmsolutionfile <<<<  -connection $connection -inputfile $solutionfile -publis
hworkflows -OverwriteUnmanagedCustomizations
    + CategoryInfo          : NotSpecified: (:) [Import-CrmSolutionFile], Exception
    + FullyQualifiedErrorId : System.Exception,CRMPS.Snapin.ImportCrmSolutionFileCmdlet

CRMPS > Add-PSSnapin Microsoft.Crm.Powershell
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 2.
At line:1 char:13
+ Add-PSSnapin <<<<  Microsoft.Crm.Powershell
    + CategoryInfo          : InvalidArgument: (Microsoft.Crm.Powershell:String) [Add-PSSnapin], P
   SArgumentException
    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand


Resolution:

Check if the deployment manager is installed on the same machine from where the PowerShell is running.

Run "Windows PowerShell Modules"

  1. Add-PSSnapin Microsoft.Crm.PowerShell
  2. $setting = get-crmsetting customcodesettings
    
  3. $setting.AllowDeclarativeWorkflows="True"
    
  4. set-crmsetting $setting
    
  5. get-crmsetting customcodesettings