3
votes

I'm having issues running a DLL written in C# from ColdFusion.

ColdFusion Code:

<cfset dll = ExpandPath('./RemoteDraftingDLL.dll')>
<cfobject type=".NET" name="testing" class="Remote.Macro" assembly="#dll#">
<cfset output = testing.TestMethod()>
<cfoutput>#output#</cfoutput> 

I'm getting this error:

Could not find the DotNet class.  
The assembly might not be registered with the DotNetSide.  

It sounds like I need to register the DLL some where within the ColdFusion administration page but I'm not sure where or how?

1
Nevermind...Issue was resolved. We just needed to restart the Coldfusion server. - Anonymous
Why not accept Dale's answer? - Sergey Galashyn
@sergii I answered by own post 3 hours before he ansewered. However, he did add some great additional information so I will accept his answer. - Anonymous
I've seen that, but answer in comments doesn't really count here :) - Sergey Galashyn

1 Answers

3
votes

Everytime you change a DLL you need to restart ColdFusion. Including the initial time you place the DLL on the server and everytime the DLL is updated.

I think it would be nice if they allowed you to programmatically update the DLL register.