CoInitializeSecurity: Execution context.
Options
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
-
You can verify that the MTA setting is working in LINQPad by executing the following query:
Thread.CurrentThread.GetApartmentState()
-
Right. It states "MTA", so I guess the error is elsewhere. Misleading error message, though.
Thank you, anyways.