我試圖從C#代碼中調用Javascript函數「eval」(以利用字符串來運算符分析器)。我用下面的代碼:在C#中調用64位項目的Javascript函數
Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {0E59F1D5-1FBE-11D0-8FF2-00A0D10038BC} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
我相信這個問題是因爲項目/機是64位: https://stackoverflow.com/a/12431435/712700
它與下面的消息---雖然崩潰。我不想將項目更改爲32位,是否有另一個CLSID可用於使其與64位一起工作?或者還有另一種方法來在C#代碼中簡單地使用JavaScript中的「eval」函數嗎?
你可以嘗試不同的嵌入式引擎中的文件? http://stackoverflow.com/questions/172753/embedding-javascript-engine-into-net-c – 2013-04-18 06:21:07