Trouble with CF2021 and .NET Connector - DotNetExtension not installed
- May 3, 2021
- 1 reply
- 711 views
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.
