3
我遇到了運行用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,但我不知道在哪裏或如何?
沒關係......問題已解決。我們只需要重新啓動Coldfusion服務器。 – Anonymous 2012-03-13 18:35:53
爲什麼不接受戴爾的答案? – Sergii 2012-03-14 08:24:35
@sergii我在回答問題前3個小時回答了自己的帖子。但是,他確實增加了一些很好的附加信息,所以我會接受他的答案。 – Anonymous 2012-03-14 12:35:18