
Hi
i have upgraded a customers D365 from 8.1 to 8.2 recompiled the plugins using 8.2 objects and ran the roll ups to 8.2
im getting this error in event viewer and D365 is not loading
i have checked the C:\Program Files\Microsoft Dynamics CRM\CRMWeb\ folder and Microsoft.Crm.Sdk.Proxy version is 8.2
for some reason its looking for 8.0 i think
Application domain: /LM/W3SVC/1/ROOT-1-133275428880610665
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
Machine name: ***-CRM-*****
Process information:
Process ID: 3812
Process name: w3wp.exe
Account name: **********\Administrator
Exception information:
Exception type: TypeLoadException
Exception message: Could not load type 'Microsoft.Crm.Sdk.Messages.AppModuleCollection' from assembly 'Microsoft.Crm.Sdk.Proxy, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
at Microsoft.Crm.Application.Controls.NavBar.RetrievePublishedAppModules(Boolean isAppSwitcherShellFeatureEnabled)
at Microsoft.Crm.Application.Controls.NavBar.ConfigureHeader()
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.ConfigureControlInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Count anyone point me in the right direction to resolve
thanks
R
Hello Roughan,
maybe the update did not touch the right DLL files to replace them with the right version.
Else sometimes developers place the CRM DLLs inside the Global Assembly Cache (GAC) on the Server.
When CRM is updated we replace in the program path inside the CRM bin folder the DLLs but the Global Assembly Cache is not touched by CRM.
In the Runtime of the Plugin / CRM it tries to load first the GAC then the BIN DLLs causing such errors.
You can run Procmon Process Monitor - Sysinternals | Microsoft Learn to monitor in which path the runtime is looking for the DLLs.
Should you find any CRM DLLs in the GAC they should be removed and properly used from the BIN folder of CRM.