Sebastian Wilhelm
Posts: 2
Joined: 2023-05-04
|
Hello Addin-Expressteam,
i have a problem with the SecurityManager, which is not working, when outlook is opened via a service on a server.
On my local machine it is working as wanted.
It even works when i start the process via the CMD on the server.
I got this error message:
System.ArgumentException
HResult=0x80070057
message = The value is not in the expected range.
source = SecurityManager.2005
stacktrace:
at AddinExpress.Outlook.IOutlookSecurityManager2.Connect(Object vTarget)
at AddinExpress.Outlook.SecurityManager.OSMThread.ThreadWork() in AddinExpress.OutlookSecurityManager.cs:line 213
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Do you have any idea what it could be?
Thank you for your help!
BR Sebastian |
|
Andrei Smolin
Add-in Express team
Posts: 19011
Joined: 2006-05-11
|
Hello Sebastian,
Try to pass an Explorer or Inspector object to the Connect method.
Regards from Poland (GMT+1),
Andrei Smolin
Add-in Express Team Leader |
|
Sebastian Wilhelm
Posts: 2
Joined: 2023-05-04
|
Hello Andrei,
i have tried to pass a inspector object to the Connect method and it worked.
Then i disabled the OOM-warnings.
But when i tried to activate the inspector object i will get the following message "Outlook cannot perform the desired action because a dialog box is open. Please close the dialog box and then try again."
It looks as if the security notifications are not deactivated in this way.
Best regards,
Sebastian |
|
Andrei Smolin
Add-in Express team
Posts: 19011
Joined: 2006-05-11
|
Hello Sebastian,
I don't think so. You would need to find out what dialog window is opened.
Regards from Poland (GMT+1),
Andrei Smolin
Add-in Express Team Leader |
|