Thread: COMException
View Single Post
  #1  
Old April 16th 07, 10:46 PM posted to microsoft.public.outlook.program_vba
Jennifer
external usenet poster
 
Posts: 7
Default COMException

Currently I have it running on localhost (my machine) and Outlook is
installed. The code ran a couple of times an then this error appeared.
When I run this code in debug mode I do not recieve this error. I have
checked the regedit CLSID and the default value is not set. I am not sure
what else to do?


"Ken Slovak - [MVP - Outlook]" wrote in message
...
Where is this code running? Normally ASP.NET code runs on the server and
unless you have Outlook installed and configured on the server the code
would error.

If the code is running on a client where Outlook is installed then you
have to verify if script code can run on that computer, if the code has to
be signed and designated as safe for scripting and safe for
initialization.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Jennifer" wrote in message
...
I am writing an ASP.NET/C# application and having trouble with outlook. I
keep receiving this error.

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:
80040154.

Source Error:

Line 1196: {
Line 1197: // Create an Outlook application.
Line 1198: Outlook.Application oApp = new
Outlook.ApplicationClass();
Line 1199:
Line 1200: // Get the Mapi NameSpace and the Logon.


I do not know how to fix this. Please help!

Jennifer




Ads