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)

SSRS deploy Index (zero based) must be greater than or equal to zero and less than the size of the argument list. See the log file for further details.

(0) ShareShare
ReportReport
Posted on by

Have you encounter this weird error before?

The report deployed and executed in Test fine, but when move to Prod and try to deploy, I get the error.

Error: Deployment failed unexpectedly with the message:

Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

See the log file for further details.

Deployment failed with the following exception:

System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.


When I go to VS for the project and try deploy (compile and view sample data is fine) from there,

It gives error above, and I double click on the error, it points to this file line (Microsoft.Dynamics.Framework.Design.Reporting.Modeling.targets)

I’ve compared this file to TEST environment, and it’s the same

  <Target

      Name="CoreDeploy"

      DependsOnTargets="$(CoreDeployDependsOn)"

        >

      <DeployToReportsServerTask ProjectFile="$(MSBuildProjectFullPath)"/>

      <OnError Condition="'$(RunPostDeployEvent)'=='Always'" ExecuteTargets="PostDeployEvent"/>

  </Target>



Here's the details of it

>> Thread 3: Entering Microsoft.Dynamics.Framework.Deployment.Reports.ReportLibraryDeployer.CopyAssemblies at 11:22:55.664
    sourceAssemblyPaths = { 'C:\Users\user\AppData\Local\Temp\3\tmp449F.tmp\WorkCenterPriority_KIT\BusinessLogic\bin\debug\MyReportLibrary.dll', 'C:\Users\vi.bui\AppData\Local\Temp\3\tmp449F.tmp\WorkCenter\BusinessLogic\bin\debug\WorkCenter.BusinessLogic.dll' }
    binDir = 'e:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin'
    logger = 'Microsoft.Dynamics.Framework.Deployment.Reports.DeploymentLogger'
Error: Deployment failed unexpectedly with the message:
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
See the log file for further details.
Deployment failed with the following exception:
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at Microsoft.Dynamics.Framework.Deployment.Reports.DeploymentLogger.LogError(String format, Object[] args)
   at Microsoft.Dynamics.Framework.Deployment.Reports.DeploymentLogger.LogError(String format, Object[] args)
   at Microsoft.Dynamics.Framework.Deployment.Reports.ReportLibraryDeployer.CopyAssemblies(IEnumerable`1 sourceAssemblyPaths, String binDir, DeploymentLogger logger)
   at Microsoft.Dynamics.Framework.Deployment.Reports.ReportLibraryDeployer.DeployBusinessLogicAssemblies(IEnumerable`1 businessLogicAssemblies, DeploymentLogger logger)
   at Microsoft.Dynamics.Framework.Deployment.Reports.ReportLibraryDeployer.Deploy(IEnumerable`1 reportLibrariesToDeploy, IEnumerable`1 transitiveReferenceClosure, IEnumerable`1 cultures, DeploymentLogger logger, Func`2 connectionStringModifier)
Assemblies in app domain:
    [FullName = 'AxReports, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', assemblyFileVersion = '5.0.593.0']
    [FullName = 'Microsoft.Dynamics.BusinessConnectorNet, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', assemblyFileVersion = '5.0.1500.3761']
    [FullName = 'Microsoft.Dynamics.Framework.BusinessConnector, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', assemblyFileVersion = '5.0.593.0']
    [FullName = 'Microsoft.Dynamics.Framework.Design.Modeling, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', assemblyFileVersion = '5.0.593.0']
    [FullName = 'Microsoft.Dynamics.Framework.Design.ReportsMetamodel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', assemblyFileVersion = '5.0.593.0']
    [FullName = 'Microsoft.Dynamics.Framework.Reports, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', assemblyFileVersion = '5.0.593.0']
    [FullName = 'Microsoft.Dynamics.Framework.ReportsDeployment, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', assemblyFileVersion = '5.0.1500.3761']
    [FullName = 'Microsoft.VisualStudio.Modeling.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', assemblyFileVersion = '9.0.30729.4462']
    [FullName = 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089', assemblyFileVersion = '2.0.50727.5448']
    [FullName = 'msvcm90, Version=9.0.30729.6161, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', assemblyFileVersion = null]
    [FullName = 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089', assemblyFileVersion = '2.0.50727.5447']
    [FullName = 'System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', assemblyFileVersion = '2.0.50727.5420']
    [FullName = 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089', assemblyFileVersion = '3.5.30729.5420']
    [FullName = 'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', assemblyFileVersion = '2.0.50727.5420']
    [FullName = 'System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', assemblyFileVersion = '2.0.50727.5420']
    [FullName = 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089', assemblyFileVersion = '3.0.4506.5420']
    [FullName = 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', assemblyFileVersion = '2.0.50727.5420']
    [FullName = 'System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', assemblyFileVersion = '2.0.50727.5420']
    [FullName = 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089', assemblyFileVersion = '2.0.50727.5446']
    [FullName = 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089', assemblyFileVersion = '2.0.50727.5420']

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Please help....?

  • Community Member Profile Picture
    on at

    hello?

  • Community Member Profile Picture
    on at

    help?

  • Community Member Profile Picture
    on at

    I will keep this thread alive until I get an answer!

  • Community Member Profile Picture
    on at

    I will keep this thread alive until I get an answer!

  • James Chwaszczewski Profile Picture
    245 on at

    I just started getting this message today.  This is AX2009.  I made changes to an SSRS report to set report parameter defaults.  I'm not seeing anything other than this thread.  I'll let you know if I find a solution.

  • James Chwaszczewski Profile Picture
    245 on at

    I rebooted the SSRS server and redeployed the report successfully.  I have no idea what changed to cause the problem or fix the problem.

  • David W. Lawson Profile Picture
    10 on at

    Hi tjCombos,

    As you using a custom dll thats not in the GAC?

    I fixed the exact same error,  I think the deployment tries to overwrite files in "\Reporting Services\ReportServer\bin". Some of these may be locked and require a restart of the SSRS service to Free.

    I hope this helps.

     

    David

  • G Davies Profile Picture
    20 on at

    I got the same message.  A report library with no changes failed to reply with this error, it worked yesterday.  I started the Report server and the deployment worked OK.

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans