Skip to Content

Crystal reports 13.0.26 problem Marshal.StructureToPtr

I installed Crystal reports 13.0.26 64 bits, when trying to print a report with c# desktop application dotnet 4.5 An error :

Void System.Runtime.InteropServices.Marshal.StructureToPtr(!!0, IntPtr, Boolean).

In some hosts ther is no problem..

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Apr 10, 2020 at 03:04 PM

    Who developed the application? Are you installing the same version of runtime as the application was developed with?

    Is the application compiled for 32-bit or 64-bit? The bit-ness of the required runtime should match the bit-ness of the application regardless of the OS it's installed on.

    When the runtime was installed, were you logged in with Administrator privileges? If not, you need to be because there are a bunch of registry entries that get set.

    Finally, this error is not directly from the Crystal SDK - it's a system error. You would need to post the stack trace from the error for us to determine whether it's a Crystal issue or something else.


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2020 at 03:32 PM


    I am finding the same problem just after updating from runtime for Vs2017 (13_0_22) to Vs2019 (13_0_27)

    The exact error message is

    Method not found 'Void System.Runtime.InteropServices.Marshal.StructureToPtr(!!0,IntPtr,Boolean)'

    Thanks and Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 06, 2020 at 10:49 AM

    I have the same issue.

    We have two servers with Windows 2008 R2 with same configuration and same applications but only in one of them works fine and the other we get this error. The only difference between them is one has installed framework 4.8 (this one works) and the other have 4.5.

    Is it possible the issue be with the .net framework version or with any associated component?

    Thank you.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.