ax 2012 data methods

Hi,

I am trying to use a data method in a ssrs report in ax 2012.

I have the following data method:

using

System;

using

System.Collections.Generic;

using

System.Security.Permissions;

using

System.Data;

using

Microsoft.Dynamics.Framework.Reports;

public partial class provaMarcoReport{[DataMethod(), PermissionSet(SecurityAction.Assert, Name = “FullTrust”)]

public static string provaMarcoDataMethod()

{

return “ciao”;

}

It’s nothig complicated, but to start I am trying to make the easiest things to work.

When I generate the preview in Visual Studio, everything works fine and I see my “ciao” string printed.

When I launch the report with a menu item in AX, the report works but in the cell where “ciao” should be, I get #Error.

How can I solve this? Please be as specific as possible