报错问题: Retrieving the COM class factory for component with CLSID {0E59F1D5-1FBE-11D0-8FF2-00A0D10038BC} failed due to the following error: 80040154 没有注册类 (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
字符串转换公式:
MSScriptControl.ScriptControl sc = new MSScriptControl.ScriptControl();
sc.Language = "JavaScript";
formulate = formulate.Replace("W", weight.ToString());
object objResult = sc.Eval(formulate);
在win7 IIS下报错。
开启IIS 运用池---高级设置----启用32位应用程序