AX 2009 SSRS: Attempted to perform an operation that was forbidden by the CLR host

I developed a simple report using AX 2009, Visual Studio, and Business logic. I’m able to preview te report without any problems in Visual studio.

I deployed the report to the SSRs server and tried to run the report from the SSRS server. I get the following error:

"An error occurred during client rendering.

An error has occurred during report processing.

Query execution failed for dataset ‘CustomerPrices’.

Exception has been thrown by the target of an invocation.

Dynamics Adapter CallStaticClassMethod failed.

Attempted to perform an operation that was forbidden by the CLR host."

The log file for SSRS shows the following:

The protected resources (only available with full trust) were:
All

The demanded resources were:
Synchronization

Appreciate any help in figuring out the problem.

Thanks.