K
KatMagic
The following code wrks fine when running from my pc (localhost); but errors
when I put the asp.net code up to the production web server. Theerror I get
is System.Runtime.InteropServices.COMException: COM Object ... is either not
valid or not registered.
What am I missing?
My code:
Public Function CallOutlook()
Dim oOutlook As New Outlook.Application()
Dim oMailitem As Outlook.MailItem
oMailitem = oOutlook.CreateItem(Outlook.OlItemType.olMailItem)
oMailitem.To = (e-mail address removed)
oMailitem.Cc = (e-mail address removed)
oMailitem.Subject = "Email Integration with Outlook and VB.Net"
oMailitem.Display()
End Function
when I put the asp.net code up to the production web server. Theerror I get
is System.Runtime.InteropServices.COMException: COM Object ... is either not
valid or not registered.
What am I missing?
My code:
Public Function CallOutlook()
Dim oOutlook As New Outlook.Application()
Dim oMailitem As Outlook.MailItem
oMailitem = oOutlook.CreateItem(Outlook.OlItemType.olMailItem)
oMailitem.To = (e-mail address removed)
oMailitem.Cc = (e-mail address removed)
oMailitem.Subject = "Email Integration with Outlook and VB.Net"
oMailitem.Display()
End Function