Monday, January 31, 2011

Compatibility Result for Microsoft SharePoint 2010 - August 2010

Thursday, January 27, 2011

ClrObject static method invocation error

I am getting a "ClrObject static method invocation error" when deleting the file after sending the email.

You have to close the stream after sending email.
Sample code that might help,
fileStream = attachment.get_ContentStream();

Other issue can be with the permissions, assert the permissions before deleting.

Wednesday, January 26, 2011

Time in Dynamics AX

In AX time is represented in seconds. The formula for time is following,

time = hours * 3600 + minutes * 60 + seconds.

Sunday, January 23, 2011

Passing Parameter to SSRS Report

That assembly does not allow partially trusted callers

I am getting the following error when running reports,
"That assembly does not allow partially trusted callers"


This is because you are using a direct reference to BusinessConnector and more security is required for that. You should never use any classes which require direct access to Business Connector.

Wednesday, January 19, 2011

Monday, January 17, 2011

Thursday, January 13, 2011

How can we send emails from AX using SMTP

Please find attached xpo of info class. It contains modifications, required to send email without outlook. Previously sysINetMail class was used to send report through email. Now I used 'System.Net.Mail' assembly, which do not require any outlook integration.
How to send Report through Email
  • Email address defined on 'user options' form, will be used as sender email.
  • Smtp server defined on 'Email parameters' form will be used (company > Administration > Administration area > Setup > Email paramters)
  • Remaining parameters like To, Cc, Subject e.t.c will be picked from the specific report you want to send ( from the report dialog goto Options and select 'email recipients' and provide the information and attachement format)
  • Open the report you want to send through email.
  • From the report dialog, select Options button.
  • Select the option of 'Email recipients' and provide the necessary detail.
  • Press OK to close the options form.
  • Press OK to close the dialog, now the report will become an attachement in the format you selected and sent.

Wednesday, January 12, 2011

Microsoft Domain-Specific Language Tools can not be found

Install Visual Studio 2008

Saturday, January 8, 2011

ClrBridge issue when deploying reports

I am getting a ClrBridge issue when deploying reports.

Restart your server and it should work.

Tuesday, January 4, 2011

AL.exe is not installed

Query :
I am deploying the reports on the reporting server but getting the following error, "AL.exe is not installed"

This is because you have not installed the .Net SDK, install it from here,, and you should be good.

You must install SQL server 2005 Reporting Services Service Pack 2 before installing the report extensions

I am trying to install this extension. When I run the Setup, I get the following message : "You must install SQL server 2005 Reporting Services Service Pack 2 before installing the report extensions".