Calling C# from ColdFusion
Posted
by stomcavage
on Stack Overflow
See other posts from Stack Overflow
or by stomcavage
Published on 2010-03-25T17:17:07Z
Indexed on
2010/03/26
23:33 UTC
Read the original article
Hit count: 245
I've written a .dll in C# to change the permissions on a folder. I also wrote an .exe to test the .dll and it successfully changes the permissions. Now I'm trying to call the .dll from ColdFusion, but I'm getting an error about System/Security/IPermission not being found.
I'm assuming this is an interface in C# that ColdFusion can't find in any of the available assemblies on my system. I've added the System.Security assembly to my References in the C# project. Is there something else I need to do to make sure ColdFusion can find the interface?
Here's how I'm using the .dll:
<cfobject type="dotnet" name="permObj" assembly="#pathToDLLs#CoursePortal.dll" class="CoursePortal.Permissions">
<cfset permObj.revokePermissions(dir, username)>
© Stack Overflow or respective owner