I have installed ColdFusion 2021 on a test server and am working through my web apps to find any issues. I discovered that whenever I try to instantiate a .NET class using cfobject, I receive an error. I have tried uninstalling and reinstalling the dotnet package, but that has not resolved the issue. All CF packages are installed and the "ColdFusion 2021 .NET Service" is running.
Here is test code that works fine on my CF2016 servers, but fails on CF2021:
<cfobject type=".NET" class= "System.IO.Directory" name="fso"> <cfset cwd = fso.getCurrentDirectory()> <cfdump var = "#fso#"><cfdump var = "#cwd#">
Here is the error message I receive:
DotNetExtension not installed. If a dll is specified in the assembly list, DotNetExtension must also be installed.
Also of note, nothing is being created in the wwwroot\WEB-INF\cfclasses\dotNetProxy folder on the new server like it is on the old server. Folder rights on that dotNetProxy folder appear to be the same between the two servers.
Stack trace attached.
Copy link to clipboard
After further comparing my CF2016 and CF2021 servers, I noticed the "jnbridge" folder did not appear in my CF2021 instance's folder, just under the cfusion folder. On the CF2016 install, it appears under both. On a hunch, I manually copied it from the default cfusion folder to my instance, restarted the .NET Service and appropriate ColdFusion Application Server services and things magically started working. Perhaps this is an issue with the installer for new ColdFusion instances in Enterprise server?