Here is the quick fix for the following error:
==========================================================================================================================
Entering function FindSolutionInFarm
Solution AxWebParts.cab exists in the server farm.
Leaving function FindSolutionInFarm
Removing solution AxWebParts.cab from farm
Adding SharePoint solution AxWebParts.cab at farm level
Setup could not deploy SharePoint solution AxWebParts.cab. Exception: Error: Cannot add the specified assembly to the global assembly cache: Microsoft.Dynamics.WebParts.dll.
Leaving function AddWPPackage
Setup could not deploy SharePoint solution AxWebParts.cab. Exception: Setup could not deploy SharePoint solution AxWebParts.cab. Exception: Error: Cannot add the specified assembly to the global assembly cache: Microsoft.Dynamics.WebParts.dll. <Note here there can be any of the dlls specified in the list below.>
Error: Cannot add the specified assembly to the global assembly cache: Microsoft.Dynamics.WebParts.dll.
Error: Cannot add the specified assembly to the global assembly cache: Microsoft.Dynamics.WebParts.dll.
Microsoft.Dynamics.BusinessConnectorNet.XppException
at Microsoft.Dynamics.BusinessConnectorNet.AxaptaObject.Call(String methodName, Object[] paramList)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName, Object param1)
An error occurred during setup of Role Centers and Enterprise Portal.
Reason: Dynamics Object Adapter Call failed.
===========================================================================================================================
Remove the following assemblies from GAC:
1) Microsoft.Dynamics.Framework.Portal and all the resource DLLs,
2) Microsoft.Dynamics.Framework.Portal.CommonControls,
3) Microsoft.Dynamics.WebParts and all the resource DLLs
Install the AxWebParts.cab solution from either of the following:
1) Ax Setup install Enterprise Portal and Roles Center
2) Go to Sharepoint Central Administration –> Operations Management-> Solutions Management, check if axwebpart.cab is present and “Error”
is displayed against it. Deploy the solution from here directly, this will save some time instead of running Ax Setup and waiting for installation of complete EP Site.