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

后端 未结 2 1390

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:37

    I ran into the same issue, and as previously said: if Visual Studio is running as Administrator then Outlook prevents another instance with a different user. My VS solution is starting several projects, and I need it to run as Administrator, so what I did is run Outlook as administrator while debugging. This solved my problem.

提交回复
热议问题