Hugo:
First off, why not create send email via System.Web.Mail ??
Secondly, since you are using ASP.Net, the user making the request is
probably anonymous and doesn't have access to create the COM object.. You
could quickly verify this by setting <identity impersonate="true" /> in
your web.config which (depending on how IIS is set up) should make the
process run under the account of the user visiting (you) but that'll only
work in an intranet environment...unless you escalate ASP.Net's persmission
for anonymous users (bad idea)
So why not #1?
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"HvG" <hv*****@hotmail.com> wrote in message
news:eh*************@tk2msftngp13.phx.gbl...
I'm sure this is a trivial question, but I cannot create an Outlook Object
from a WebForm app, but can from a console app. or a Windows app. My COM
knowledge is very poor sorry.
Code------------------------------------------------------------------------
----------- Dim oApp As Outlook.Application = New Outlook.Application
...
--------------------------------------------------------------------------
--------- Exception Details: System.Exception: Cannot create ActiveX component.
A reference to "Microsoft Outlook 10.0 Object Library" has been added, the
PC runs on XP Pro, .NET FW1.1, Outlook 2002.
Thanks for any help,
Hugo