title: Calling C# from ColdFusion
body: <p>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. </p>
  
  <p>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?</p>
  
  <p>Here's how I'm using the .dll:</p>
  
  <pre><code>&lt;cfobject type="dotnet" name="permObj" assembly="#pathToDLLs#CoursePortal.dll" class="CoursePortal.Permissions"&gt;
  &lt;cfset permObj.revokePermissions(dir, username)&gt;
  </code></pre>