cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal reports 13.0.26 problem Marshal.StructureToPtr

former_member480454
Discoverer
0 Kudos

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..

Accepted Solutions (1)

Accepted Solutions (1)

DellSC
Active Contributor
0 Kudos

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.

-Dell

Answers (2)

Answers (2)

0 Kudos

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.

mauriziolongo
Member
0 Kudos

Hello,

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