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