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)

Unable to deploy SSRS report with a datamethod in R3 environment

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I'm currently unable to deploy a ssrs report with a datamethod in our R3 CU8 environment.

I'm creating the simplest possible report with a precision design with only 1 text box that use my datamethod.

My datamethod is just returning "Test", no complex code behind.

using System;
using System.Collections.Generic;
using System.Security.Permissions;
using System.Data;
using Microsoft.Dynamics.Framework.Reports;
public partial class Report1
{
[DataMethod(), PermissionSet(SecurityAction.Assert, Name = "FullTrust")]
public static string DataMethod1()
{
return "test";
//throw new NotImplementedException("The method or operation is not implemented.");
}
}

I have this error

Error 5 System.Web.Services.Protocols.SoapException: Error while loading code module: ‘ReportModel1.BusinessLogic, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'ReportModel1.BusinessLogic, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at Microsoft.ReportingServices.Library.ReportingService2005Impl.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Guid batchId, Warning[]& Warnings)
at Microsoft.ReportingServices.WebServer.ReportingService2005.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Warning[]& Warnings) C:\Program Files (x86)\MSBuild\Microsoft\DynamicsTools\Microsoft.Dynamics.Framework.Design.Reporting.Modeling.targets 466 6 ReportModel1

I have no problems with the deployment of ssrs reports with datamethod in our R2 environnement.

I have tried a lot of different things with no success.

Any help will be very appreciated.

Best regards,

Karl Alexandersson

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    If you rebuild both projects, do you get any error?

  • Community Member Profile Picture
    on at

    I have only the error when I try to deploy the report.

    No error when i rebuild both projects.

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    How are you deploying the report? Does it behave this same if you use other deployment methods?

  • Community Member Profile Picture
    on at

    I have tried to deploy from AX, from Visual Studio (with the business logic project in the solution) and from the terminal, all the same result

    Note that i have no problem deplying a report with a datamethod in our R3 environments.

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Aha, the last sentence is likely the key. AX 2012 R3 uses Visual Studio 2010 and AX 2012 R3 CU8 uses Visual Studio 2013.

    Maybe you forgot to upgrade the reporting extension or your project was created in R3 and still refers to an assembly from VS 2010. It's hard to guess without more information about what you did.

    Note that Assembly Binding Log Viewer can tell you what exactly failed to bind.

  • Community Member Profile Picture
    on at

    Thanks for the replies, I will see what can I do with the Assembly Binding Log Viewer

    I'm currently trying to create a whole new report in R3 CU8 with datamethod, just the simplest possible, and even that failed to deploy

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    I suggest you first check whether the reporting extension has been upgraded to CU8.

  • Community Member Profile Picture
    on at

    My current version is 6.3.164, so i have to upgrade it to CU8.

    99% of chance that it will solve the problem, I try and I post if it work.

    Thank you very much

  • Community Member Profile Picture
    on at

    2015_2D00_10_2D00_27-10_5F00_01_5F00_39_2D00_Clipboard.jpg

    I can't update the Reporting Services Extension...

    I guess after all, the reporting extension is updated in CU8

    2015_2D00_10_2D00_27-09_5F00_59_5F00_41_2D00_Clipboard.jpg

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