从ColdFusion运行.NET

问题描述:

我遇到了运行用ColdFusion编写的C#DLL的问题。从ColdFusion运行.NET

ColdFusion代码:

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

我得到这个错误:

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

这听起来像我需要到ColdFusion管理页面内的一些地方注册DLL,但我不知道在哪里或如何?

+0

没关系......问题已解决。我们只需要重新启动Coldfusion服务器。 – Anonymous 2012-03-13 18:35:53

+0

为什么不接受戴尔的答案? – Sergii 2012-03-14 08:24:35

+0

@sergii我在回答问题前3个小时回答了自己的帖子。但是,他确实增加了一些很好的附加信息,所以我会接受他的答案。 – Anonymous 2012-03-14 12:35:18

每次更改DLL时,都需要重新启动ColdFusion。包括初次将DLL放在服务器上的时间以及每次更新DLL时的时间。

我认为这将是很好,如果他们允许您以编程方式更新DLL寄存器。

+0

调试时,这似乎是一个真正的海塞尔...我同意你,这将是很好的编程更新DLL寄存器。 – Anonymous 2012-03-14 12:36:42