Skip to Content
avatar image
Former Member

Crystal reports 11 crashes calling user function in dll built with .net 4.0

We have the full version of Crystal Reports 11 where we develop our reports.

We call our reports from a C# application developed in Visual Studio. We also build our user function dll using Visual Studio and Crystal reports 13 for Visual Studio.

Our application and user function dll was previously built with older versions of .NET. We have been upgrading our .NET environment and are now using .NET 4.0/4.5.

We can still edit our reports via Crystal Reports 13 for Visual Studio and can run our application with this Crystal runtime.

We can no longer run our reports from Crystal 11 Designer. When we try to run the report, it crashes.

Is it because Crystal Reports 11 does not support .calling user functions in a DLL built with NET 4.0 / 4.5?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 31, 2017 at 08:18 PM

    Correct, you need to stay on a version that uses CR 11 and older framework. CR 11 had no concept of 4.5 framework.

    On newer versions of CR Designer you can set it to use the updated framework, not sure if it works for 11 though...

    You need to adjusst the folder location but see if this works:

    To be able to set Crystal Report Designer to use the same Framework you created the UFL in you must tell CR Designer which one to use by doing the following:

    Create a file called:

    crw32.exe.config

    And paste this into it:

    <?xml version ="1.0"?>

    <configuration>

    <startup useLegacyV2RuntimeActivationPolicy="true" >

    <supportedRuntime version="v4.0" />

    </startup>

    </configuration>

    Change the "supportedRuntime version" to what ever framework you are compiling your UFL in.

    Save this file into the same location as crw32.exe:

    For CR 2011/2013:

    C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86

    And for CR 2008:

    C:\Program Files (x86)\Business Objects\BusinessObjects Enterprise 12.0\win32_x86

    Now you should see your functions in the list in CR Designer.

    Add comment
    10|10000 characters needed characters exceeded