windows server2008中,MSScriptControl.ScriptControl出错
请教一下,为什么我以下代码在XP及2003系统都没问题,而在Server2008里会出错Dim exp As String = expression
Dim t As Type = Type.GetTypeFromProgID("MSScriptControl.ScriptControl")
Dim obj As Object = Activator.CreateInstance(t)
t.InvokeMember("Language", System.Reflection.BindingFlags.SetProperty, Nothing, obj, New Object() {"vbscript"})
Dim result As Decimal = CDec(t.InvokeMember("Eval", System.Reflection.BindingFlags.InvokeMethod, Nothing, obj, New Object() {exp}))
Return result --------------------编程问答-------------------- 来人帮帮忙,看看也行啊! --------------------编程问答-------------------- 同样问题,解决了吗? --------------------编程问答-------------------- 和操作系统相关的问题就难解决了。期待高手回复啊。
补充:.NET技术 , ASP.NET