Thread: COMException
View Single Post
  #3  
Old April 17th 07, 07:58 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default COMException

I think she means that both the IIS and server and the client are on the
same machine.
Since this is C#, and IE does not run any .Net code the way it runs VB and
Java Scrips, I suspect that the code is actually executed in the IIS server
context (which is a service), and no Office app (inclusing Outlook) should
be used in any Windows service.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ken Slovak - [MVP - Outlook]" wrote in message
...
You will probably need to set security on the application, sign it and
install it for it to run in non-debug mode, but that's a question for an
ASP.NET group that deals with deployment. I don't do much ASP programming
so I don't have an answer for that.

Do you have scripting enabled in your browser and other conditions set so
ASP code can run?

When you do deploy you will need to account for all the things I mentioned
and run the code client side unless you only want to access Outlook
installed on the server.

--
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 mean the regedit CLSID default value is set to OUTLOOK.EXE. When I
typed the path in the Run dialog box Outlook came up, so I assume that the
path is correct.

"Jennifer" wrote in message
...
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?




Ads