Saturday, March 30, 2019

AX 2012 R3 - Business connector error on SSRS server


Sometimes due to business connector unavailability following error is produced, which is fixed by re-installing the business connector component from AX Setup afresh. The same can be performed on BC corruption.

Error:


Server Error in '/ReportServer' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'Microsoft.Dynamics.Framework.BusinessConnector, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Dynamics.Framework.BusinessConnector, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Dynamics.Framework.BusinessConnector, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Stack Trace:


[FileNotFoundException: Could not load file or assembly 'Microsoft.Dynamics.Framework.BusinessConnector, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
   Microsoft.Dynamics.AX.Framework.Reporting.Shared.EventLogger.Microsoft.Dynamics.AX.Framework.Reporting.Shared.IEventLogger.LogInformation(Assembly assembly, String message) +0
   Microsoft.Dynamics.AX.Framework.Reporting.Shared.ServicesProxyHelper.LogTrace(String logString, Boolean isVS) +196
   Microsoft.Dynamics.AX.Framework.Reporting.Shared.ServicesProxyHelper.SetClientServicesConfig(Type assemblyType) +402
   Microsoft.Dynamics.Framework.Reports.AxReportsHttpModule.InitializeAppDomain() +31
   Microsoft.Dynamics.Framework.Reports.AxReportsHttpModule.Init(HttpApplication context) +85
   System.Web.HttpApplication.InitModulesCommon() +130
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1037
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +274
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +145
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +196




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.7905; ASP.NET Version:2.0.50727.7905