0
asp.net web apiプロジェクトでOutlook APIを使用する必要があります。私はローカルIISサーバにプロジェクトを公開すると、VSは、管理者として実行する必要があるので、私は管理者としてvs2015を実行しますが、問題は、以下のように発生します。asp.net web apiでOutlookを取得できない失敗
Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
Source Error:
public class MailSender
{
Outlook.Application olApp = new Outlook.Application();
Outlook.MailItem mailItem;
public MailSender()
}
ありがとう、私は失敗して長い間試したので、私はあきらめて自分のプロジェクトを自己ホストするように変更します。 – user9112754