Thursday, January 27, 2011

ClrObject static method invocation error

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


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

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

1 comment:

  1. RE: Ax 2009 Workflow

    Post by usenet » Tue Sep 23, 2008 8:55 am
    HI,

    You vave installed one .Net Business Connector, and created two
    configurations in the AX Config. Utility for the Business Connector, Right ?
    Only one AX Configuration can be active at the same time. You have to
    activate the second if you want, but the first will no work anymore.
    I use IISReset DOS command to take in account a new . Net Business Connector
    configuration... it's may be a quick and dirty solution.

    Greets,
    Vijay

    ReplyDelete