Running net core5 app inside Docker container fails with error Invalid class string (0x800401F3 (CO_E_CLASSSTRING)) for VBScriptEngine #296
sven634231
started this conversation in
General
Replies: 1 comment 1 reply
-
While javascript is running fine within docker: var scriptControl = new Microsoft.ClearScript.V8.V8ScriptEngine(Microsoft.ClearScript.V8.V8ScriptEngineFlags.EnableDebugging); scriptControl.Execute("value_out = 5 + 8"); netcoreapp3.1 Windows AnyCPU false |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While it is running fine in IIS it shows an error if executed inside a docker windows container.
line: var scriptControl = new Microsoft.ClearScript.Windows.Core.VBScriptEngine(Microsoft.ClearScript.Windows.WindowsScriptEngineFlags.EnableDebugging, Microsoft.ClearScript.Windows.Core.NullSyncInvoker.Instance);
System.Runtime.InteropServices.COMException: 'Invalid class string (0x800401F3 (CO_E_CLASSSTRING))'
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.ClearScript.Util.COM.HResult.Check(Int32 result)
at Microsoft.ClearScript.Util.COM.HResult.Check(UInt32 result)
at Microsoft.ClearScript.Util.COM.ActivationHelpers.CLSIDFromProgID(String progID)
at Microsoft.ClearScript.Util.COM.ActivationHelpers.CreateInstance[T](String progID)
at Microsoft.ClearScript.Windows.Core.ActiveScriptWrapper64..ctor(String progID, WindowsScriptEngineFlags flags)
at Microsoft.ClearScript.Windows.Core.ActiveScriptWrapper.Create(String progID, WindowsScriptEngineFlags flags)
at Microsoft.ClearScript.Windows.Core.WindowsScriptEngine.<>c__DisplayClass13_0.<.ctor>b__0()
at Microsoft.ClearScript.ScriptEngine.ScriptInvokeInternal[T](Func
1 func) at Microsoft.ClearScript.ScriptEngine.ScriptInvoke[T](Func
1 func)at Microsoft.ClearScript.Windows.Core.WindowsScriptEngine..ctor(String progID, String name, String fileNameExtensions, WindowsScriptEngineFlags flags, ISyncInvoker syncInvoker)
at Microsoft.ClearScript.Windows.Core.VBScriptEngine..ctor(String progID, String name, String fileNameExtensions, WindowsScriptEngineFlags flags, ISyncInvoker syncInvoker)
at Microsoft.ClearScript.Windows.Core.VBScriptEngine..ctor(String name, WindowsScriptEngineFlags flags, ISyncInvoker syncInvoker)
at Microsoft.ClearScript.Windows.Core.VBScriptEngine..ctor(WindowsScriptEngineFlags flags, ISyncInvoker syncInvoker)
at RunnerCoreKube.Controllers.WeatherForecastController.vba() in c:...\ScriptController.cs:line 67
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
Beta Was this translation helpful? Give feedback.
All reactions