web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

A call to the Microsoft Dynamics AX SRSFramework Service service failed. An existing connection was forcibly closed by the remote host.

(0) ShareShare
ReportReport
Posted on by 1,032

Dear All

Getting this error while deploying Dynamics AX default reports.

PS C:\Windows\system32> publish-AXReport -ReportName * Deploying reports and related artifacts.
Publish-AXReport : A call to the Microsoft Dynamics AX SRSFrameworkService service failed. An existing connection was forcibly closed by the remote host.
At line:1 char:17 + publish-AXReport <<<<  -ReportName *
    + CategoryInfo          : OpenError: (Microsoft.Dynam...shReportCommand:Pu
   blishReportCommand) [Publish-AXReport], ReportException
    + FullyQualifiedErrorId : A call to the Microsoft Dynamics AX SRSFramework
   Service service failed. An existing connection was forcibly closed by the remote host.,Microsoft.Dynamics.AX.Framework.Management.Reports.PublishReportCommand

We had our SQL Server Crashed. Which is now re-build, SSRS are configured and working fine. Reporting extension is also installed.

Regard,

AUT

*This post is locked for comments

I have the same question (0)
  • Akhwand Usman Profile Picture
    1,032 on at

    When trying to deploy single report from AOT it gives below error

    AXRDCE The AXRDCE extension caught an unexpected exception for report CustBasedata.Report.

    The error message was:

    Exception occurred on the metadata service on client or server. See exception details below:

    >Unable to log on to Microsoft Dynamics AX.

      at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

      at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationBootstrap.GetServicesVersionInformation(IClientConfiguration serviceClientConfiguration, Guid versionId)

      at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.GetClientConfiguration()

      at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.get_ConfigurationInUse()

      at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.CreateXppChannelFactory[T](String relativeUri)

      at Microsoft.Dynamics.AX.Framework.Services.Client.XppServiceClient`1.CreateChannelFactory()

      at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientBase`1.get_ChannelFactory()

      at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.SRSFrameworkServiceProxy.Microsoft.Dynamics.AX.Framework.Reporting.Shared.IXppSRSFrameworkService.getRelationLinkTargetList(SRSFrameworkServiceGetRelationLinkTargetListRequest request)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.SRSFrameworkServiceClient.Microsoft.Dynamics.AX.Framework.Reporting.Shared.ISRSFrameworkService.GetRelationLinkTargetList(String tableFieldsListEncodedStr)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.TableFieldMenuItemService.GetRelationLinkTargetList(String fieldList)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.TableFieldMenuItemService.Resolve(String encodedString)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.AutomaticDrillThroughStep.Transform(XDocument report, ILocalReportContext reportContext, ILocalUserContext userContext)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.CustomizationExtensionImplementation.ProcessReportDefinition(Byte[] reportDefinition, ILocalReportContext reportContext, ILocalUserContext userContext, Byte[]& reportDefinitionProcessed)

    Exception occurred on the metadata service on client or server. See exception details below:

    >Unable to log on to Microsoft Dynamics AX.

    Microsoft.Dynamics.AX.Framework.Services.Client.MetadataServiceException

      at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

      at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationBootstrap.GetServicesVersionInformation(IClientConfiguration serviceClientConfiguration, Guid versionId)

      at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.GetClientConfiguration()

      at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.get_ConfigurationInUse()

      at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.CreateXppChannelFactory[T](String relativeUri)

      at Microsoft.Dynamics.AX.Framework.Services.Client.XppServiceClient`1.CreateChannelFactory()

      at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientBase`1.get_ChannelFactory()

      at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.SRSFrameworkServiceProxy.Microsoft.Dynamics.AX.Framework.Reporting.Shared.IXppSRSFrameworkService.getRelationLinkTargetList(SRSFrameworkServiceGetRelationLinkTargetListRequest request)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.SRSFrameworkServiceClient.Microsoft.Dynamics.AX.Framework.Reporting.Shared.ISRSFrameworkService.GetRelationLinkTargetList(String tableFieldsListEncodedStr)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.TableFieldMenuItemService.GetRelationLinkTargetList(String fieldList)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.TableFieldMenuItemService.Resolve(String encodedString)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.AutomaticDrillThroughStep.Transform(XDocument report, ILocalReportContext reportContext, ILocalUserContext userContext)

      at Microsoft.Dynamics.AX.Framework.Reporting.Shared.CustomizationExtensionImplementation.ProcessReportDefinition(Byte[] reportDefinition, ILocalReportContext reportContext, ILocalUserContext userContext, Byte[]& reportDefinitionProcessed)

    Unable to log on to Microsoft Dynamics AX.

    System.ServiceModel.FaultException

    Server stack trace:

      at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

      at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:

      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

      at Microsoft.Dynamics.AX.Framework.Services.Metadata.Service.IAxMetadataService.GetServicesVersionInformation(Guid versionId)

      at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataServiceClient.<>c__DisplayClasscf.<GetServicesVersionInformation>b__cc(IAxMetadataService channel)

      at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

    Rgds, AUT

  • Verified answer
    Maqk Profile Picture
    844 on at

    Issues related to AXRDCE are often resolved by deleteting the AUC files

    1. Stop reporting services,
    2. Goto: C:\Users\\AppData\Local\
    3. Take the backup of all AUC files,
    4. Remove them from there
    5. Start reporting services
    further links
  • Akhwand Usman Profile Picture
    1,032 on at

    Thanks MAQK

    It works.

    Thanks for support!! Keep contributing.

    Regards,

    AUT

  • Community Member Profile Picture
    on at

    Awesome !!  this solution worked for me

  • RM-22040759-0 Profile Picture
    2,014 on at

    Can anyone help me on route cause of the issue ?

  • Suggested answer
    RM-22040759-0 Profile Picture
    2,014 on at

    Dear Akhwand Usman 

    I have added the solution in other forum post, any one can try and let me know.
    https://community.dynamics.com/ax/f/33/t/153790.aspx

    Thanks & Regards.,

    Ravi Theja Madisetty
    https://techguns.wordpress.com/

  • RM-22040759-0 Profile Picture
    2,014 on at

    Error same, but many workarounds.

    This time your solution worked for me.

    Thanks Abdul.

  • Community Member Profile Picture
    on at

    2. C:\Users\Default\AppData\Local

  • Vinai Varghese Profile Picture
    150 on at

    I perform following steps to solve this problem.
    1. Stop reporting services,
    2. Stop AOS.
    3. Goto: C:\Users\\AppData\Local\   

    Do step # for all the user profiles

    4. Take the backup of all AUC files,
    5. Remove them from there
    6. Start reporting services
    7. Start AOS.
    8. Again run publish-AXReport -ReportName *. In powershell.

    Reports are successfully deploy on my machine.

    References:

    http://dynamics-ax.blogspot.no/2013/03/ax-2012-fatal-axrdce-exception-error.html

    https://community.dynamics.com/ax/f/33/t/115327.aspx

    https://community.dynamics.com/ax/b/alirazatechblog/archive/2014/06/13/a-call-to-the-microsoft-dynamics-ax-srsframework-service-failed

  • Suggested answer
    Community Member Profile Picture
    on at

    Thanks. You solution is perfect.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans