CoInitializeSecurity: Execution context.
When I add a nuget dependency to nuget package TitaniumAS.Opc.Client
and run the code line
Bootstrap.Initialize();
... I get the error message that it should run in MTA.
The Inner exception indicates a Security error.
I tried setting the "Run queries in MTA" under advanced settings and restarted LINQPad as an administrator.
Still the same error.
Does anybody have a suggestion?
and run the code line
Bootstrap.Initialize();
... I get the error message that it should run in MTA.
The Inner exception indicates a Security error.
I tried setting the "Run queries in MTA" under advanced settings and restarted LINQPad as an administrator.
Still the same error.
Does anybody have a suggestion?
Comments
Thread.CurrentThread.GetApartmentState()
Thank you, anyways.