Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Error Retrieving COM object

Reply
Thread Tools

Error Retrieving COM object

 
 
Klaki
Guest
Posts: n/a
 
      12-12-2006
I'm trying to create an instance of Outlook using VB.net and every time
I run the site, I get the following error: Retrieving the COM class
factory for component with CLSID {0006F03A-0000-0000-C000-000000000046}
failed due to the following error: 80010001. If I run debug on my PC
using Visual Sturdio 2005, it works, but when I publish it to the web
server, I get the error. I have Office installed on the web server
with the Interop files. Is there something else that I'm missing.
Here is the code if anyone is interested:

Dim taskBody As String
Dim oOutlook As Outlook.Application
Dim oNS As Outlook.NameSpace
Dim oItem As Outlook.TaskItem
Dim oItem2 As Outlook.TaskItem

oOutlook = New Outlook.Application
oNS = oOutlook.GetNamespace("MAPI")
oItem = oNS.Folders.Item("Public Folders").Folders("All Public
Folders").Folders("My Folder").Folders("SubF").Items.Add(3)
oItem2 = oNS.Folders.Item("Public Folders").Folders("All Public
Folders").Folders("MyFolder").Folders("SubF2").Fol ders("SubF3").Items.Add(3)
taskBody = strBody

With oItem
.StartDate = Now
.DueDate = Now
.Owner = "Me"
.Subject = "My Subject"
.Body = taskBody
.Importance = 2
.ReminderSet = False
.Close(0)
End With

With oItem2
.StartDate = Now
.DueDate = Now
.Owner = "Me"
.Subject = "My Subject"
.Body = taskBody
.Importance = 2
.ReminderSet = False
.Close(0)
End With

Any ideas or clues would be greatly appreciated

Thanks in advance,
Klaki

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieving templatized object via singleton getInstance using generic template parameters gary.bernstein@gmail.com C++ 3 06-06-2007 03:25 AM
Retrieving expiration date of cache object =?Utf-8?B?RGlmZmlkZW50?= ASP .Net 0 01-19-2006 07:48 PM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
Need Microsoft Help: Session object retrieving another user's Session information Boban Dragojlovic ASP .Net 2 04-19-2004 06:45 PM
retrieving PDF file with ServerXMLHTTP object =?Utf-8?B?QnJpYW4gQmFybmV0dA==?= ASP .Net 1 02-15-2004 01:06 AM



Advertisments