B
Bruno Vignola
Good Morning all,
I need to interoperate with the Calendar of MS Outlook 2003
(inserting, retrieving,
listing events, etc. etc.) from an ASP.NET application; I first
developed a simple
windows application in C# and it worked fine, I added the OL reference
and created
the COM object with the following code:
Outlook.Application app = new Outlook.Application();
Outlook.MAPIFolder folder =
app.GetNamespace("MAPI").GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar);
System.Collections.IEnumerator ie = folder.Items.GetEnumerator();
....
The problem is that, when I write the *same* code into an ASP.NET app,
*in spite
of in debugging mode everything works* (I use MS VS 2008), when I
deploy my
app on IIS (on the same developing machine!) I always get the
following error:
Retrieving the COM class factory for component with CLSID
{0006F03A-0000-0000-C000-000000000046} failed due to the following
error: 80080005.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
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.
.....
I tried almost everything, setting all the possible user and
permissions, using
DCOMCNFG, etc. looking on the net and it seems that many people have
the
same problem, but no solutions ...
Is it possible to create a COM object instance (CoCreateInstance)
inside an
ASP.NET app ?
Thank you in advance for your help ...
Bruno
I need to interoperate with the Calendar of MS Outlook 2003
(inserting, retrieving,
listing events, etc. etc.) from an ASP.NET application; I first
developed a simple
windows application in C# and it worked fine, I added the OL reference
and created
the COM object with the following code:
Outlook.Application app = new Outlook.Application();
Outlook.MAPIFolder folder =
app.GetNamespace("MAPI").GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar);
System.Collections.IEnumerator ie = folder.Items.GetEnumerator();
....
The problem is that, when I write the *same* code into an ASP.NET app,
*in spite
of in debugging mode everything works* (I use MS VS 2008), when I
deploy my
app on IIS (on the same developing machine!) I always get the
following error:
Retrieving the COM class factory for component with CLSID
{0006F03A-0000-0000-C000-000000000046} failed due to the following
error: 80080005.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
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.
.....
I tried almost everything, setting all the possible user and
permissions, using
DCOMCNFG, etc. looking on the net and it seems that many people have
the
same problem, but no solutions ...
Is it possible to create a COM object instance (CoCreateInstance)
inside an
ASP.NET app ?
Thank you in advance for your help ...
Bruno