
Hey guys,
currently I am facing a problem with SQL Server Reporting Service, Microsoft Dynamics AX 2009 and the .NET Business Connector 5:
When I am starting to print a report (report will have round about 520 pages), the SSRS fetches all data and then in a subreport I am receiving in the generated PDF "subreport - error: Subreport could not be shown". But only at the last pages (last 6 pages). All pages before are looking perfertly fine!
Digging into it, I created some Debug Traces (System.Diagnostics.Trace) to locate the problem. But so far, I am not receiving some Error-Traces. Nervermind, I can see in the Windows-Event-Log 3 Errors:
Error 1:
Microsoft Dynamics AX Business Connector Session 8.
Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
bei AxCore_ExecuteStmt(tagVARIANT* , Int32 )
bei Microsoft.Dynamics.BusinessConnectorNet.Axapta.ExecuteStmt(String statement, AxaptaRecord[] paramList)
EventID: 110
Error 2:
Microsoft Dynamics AX Business Connector Session 8.
Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
bei AxCore_DeleteRecord(UInt64 )
bei Microsoft.Dynamics.BusinessConnectorNet.AxaptaRecord.ReleaseAxaptaRecord(Boolean disposing)
Error 3:
Microsoft Dynamics AX Business Connector Session 8.
Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
bei AxCore_DeleteRecord(UInt64 )
bei Microsoft.Dynamics.BusinessConnectorNet.AxaptaRecord.ReleaseAxaptaRecord(Boolean disposing)
bei Microsoft.Dynamics.BusinessConnectorNet.AxaptaRecord.Dispose()
bei Microsoft.Dynamics.BusinessConnectorNet.Axapta.Logoff()
So, how am I trying to access the SessionManager?
// get the current Session
AxaptaWrapper ax = SessionManager.GetSession();
// this is the SessionManager implementation
namespace Microsoft.Dynamics.Framework.Reports
{
public abstract class SessionManager
{
protected SessionManager();
protected abstract AxaptaWrapper CreateSession();
public static AxaptaWrapper GetSession();
protected virtual void OnEndRequest();
}
}
How can I get rid of this problem? Should I try to programm more defensive? (try-catch around the GetSession?) Any other ideas?
Thank you so much in advance!
Regads,
Peter Detzner
*This post is locked for comments
I have the same question (0)Microsoft.Dynamics.Framework.Reports.dll is used in Version 5.0.0.0, so is there maybe somewhere a "newer" Version sth. like Version 5.x.y.z?!