I'm working on a C# winforms application (.net framework 3.5). I'm opening an outlook email with an attachment using the outlook interop. We're working in a citrix environment, and it takes a LONG time to load the outlook API each time we open an email (takes 13 seconds for each email). So I'm trying to keep an instance of the outlook API in memory (using static instance of the outlook application object) so it only has to load 1 time.
The 2nd time I open an email window, I get the following message "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)". This happens as soon as I call the email function and it references the static variable of the outlook object (Microsoft.Office.Interop.Outlook.Application).
Any ideas as to why this is happening, how I can get rid of the error, or a faster way to send an email such that it will appear in the users outlook sent folder?
Thanks in advance!
The 2nd time I open an email window, I get the following message "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)". This happens as soon as I call the email function and it references the static variable of the outlook object (Microsoft.Office.Interop.Outlook.Application).
Any ideas as to why this is happening, how I can get rid of the error, or a faster way to send an email such that it will appear in the users outlook sent folder?
Thanks in advance!