C # call from ColdFusion

I wrote .dll in C # to change folder permissions. I also wrote .exe to test the DLL, and it successfully changes the permissions. Now I'm trying to call .dll from ColdFusion, but I get an error that System / Security / IPermission was not found.

I assume this is a C # interface that ColdFusion cannot find in any of the available assemblies on my system. I added the System.Security assembly to my links in a C # project. Is there anything else I need to do so that ColdFusion can find the interface?

This is how I use .dll:

<cfobject type="dotnet" name="permObj" assembly="#pathToDLLs#CoursePortal.dll" class="CoursePortal.Permissions">
<cfset permObj.revokePermissions(dir, username)>
+5
source share
1 answer

. DLL EXE <cfexecute> . ..NET- , , .

+3

All Articles