August 30, 2022
What is the latest version of .Net that I can consume from ColdFusion?
Comments
(1)
August 30, 2022
What is the latest version of .Net that I can consume from ColdFusion?
I'm the Chief Software Architect of coderPro.net. I've been developing solutions for more than twenty years now. I first cut my teeth on ColdFusion back in 1998 & always loved the technology (even though few other people give it much love). I was also an early adopter of dotNet and tried to find ways that the two technologies could work together. ColdFusion was the first language I ever got a certification for (1999), and I recently recertified again in 2022. I've been a digital nomad bouncing around the world since 2009 & am currently slowly making my way around Ecuador one town/city every month.
Newbie 1 posts
Followers: 0 people
(1)

I’ve spent most of the day hacking away at trying to get ColdFusion to return data from a simple class that I created in .Net 6. I get the same error when I try to call the component with CFML or cfScript:

Class CoderPro.Blog.Networking.Connectivity not found in the specified assembly list.

cfHTML

<cfobject type="dotnet" name="pingClass" assembly="D:/Projects/Clients/CoderPro.Blog/CoderPro.Blog.Networking/bin/Debug/net6.0/CoderPro.Blog.Networking.dll"
    class="Connectivity" />

cfScript
var testInstance = CreateObject(".NET", "CoderPro.Blog.Networking.Connectivity", "D:/Projects/Clients/CoderPro.Blog/CoderPro.Blog.Networking/bin/Debug/net5.0-windows/CoderPro.Blog.Networking.dll");

I checked System.Environment.GetVersion & it returns 4.0.30319.42000. I’ve researched online, but I haven’t found a clear answer to what is the latest version of .Net that I can use with ColdFusion. Before someone says that I can use a web service, I know that. This is a PoC requiring CF to consume a .Net class. I can’t believe that it is 2022 & I can’t use .Net 6/5 or even one of the versions of Core?! Am I really limited to legacy .Net Standard?

I almost forgot to mention that I’m using ColdFusion 2021

1 Comment
2022-09-07 22:39:20
2022-09-07 22:39:20

A little while ago someone in my office built something here in CF2021 that called a C# app that was using .NET Framework 4.8.  That was just what we were using, we didn’t try anything higher or lower than 4.8.

Like
Add Comment