Skip to main content
September 8, 2010
Answered

Integration with .NET 4.0 Framework

  • September 8, 2010
  • 2 replies
  • 2135 views

My development server is ColdFusion 9,0,0,251028 Enterprise.

We use the .NET Integration service to run our .NET code in CF.  We have some code that works when the .NET assembly is built using .NET Framework 3.5, however if fails when the assembly is built with .NET Framework 4.0.

The errors being logged are:

"Error","jrpp-221","09/08/10","12:18:01",,"Error in retrieving the referenced assembly"
"Error","jrpp-221","09/08/10","12:18:02",,"Aborting proxy generation as no classes were found in dependent class list. This might mean that the class MyNamespace.ProofTool was not present in the assembly"

Can someone verify the .NET Integration service is compatible with .NET Framework 4.0 assemblies?

Is there a way to get a more specific error than "Error in retrieving the referenced assembly"?

Thanks!

    This topic has been closed for replies.
    Correct answer hemant_k1

    .NET 4.0 support was added in CF 9.0.1. The build number for CF 9.0.1 is 274733. Your build number (251028) suggest CF9 version and .NET 4 is not supported.

    Please upgrade to CF 9.0.1 and try out.

    2 replies

    hemant_k1Correct answer
    Participating Frequently
    September 9, 2010

    .NET 4.0 support was added in CF 9.0.1. The build number for CF 9.0.1 is 274733. Your build number (251028) suggest CF9 version and .NET 4 is not supported.

    Please upgrade to CF 9.0.1 and try out.

    September 9, 2010

    I received that same information last night from an alternative source.  Also learned that CF9 includes an OEM license of JNBridge (www.jnbridge.com).  CF9.0.1 has JNBridge 5.0.1 included with it, which is compatible with CLR 4.0.

    Thanks for the help!

    September 8, 2010

    As far as I know it only works for versions 1.1 and 2.0 of the CLR.  So that means .NET 1.1, 2.0, 3.0 and 3.5.  .NET 4.0 uses the new 4.0 version of the CLR.

    Have a look around on the internet to see if any one has got .NET 4.0 interface working with JNI or something.

    Cheers

    September 8, 2010

    After some more testing you appear to be correct.  There is some evidence that JNI has been updated to support CLR 4.0--specifically in the JNI4NET project.

    http://jni4net.sourceforge.net/

    How does this help me though?  Can I generate wrappers manually and use them in ColdFusion9?