Why am I receiving exception from Office's Outlook library?

后端 未结 2 1382

I have an application that calls

Email hello = new Email(appropriate constructor);
hello.Email_Send();

I\'m receiving the exception:

<
2条回答
  •  [愿得一人]
    2020-12-29 20:41

    This error was caused by visual studio being run as admin. Outlook doesn't allow separate users to access the same mailbox (I had the outlook application open on desktop). Even though I have local admin access w/ my domain user, running VS as admin must associate the process to a different user object? Not exactly sure how this works, but... Resolved.

提交回复
热议问题