473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error Retrieving COM object

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

Dec 12 '06 #1
0 3068

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andy | last post by:
Hi All. I'm working for a company that has set out a guideline for retrieving data from a database. Nobody can explain to me the reason for the following. When retrieving a set of records...
1
by: whitehorse | last post by:
When the warehousecontroller service is invoked, the following error message is sent to the application log: Event Type: Error Event Source: TFS Warehouse Event Category: None Event ID: 3000...
10
by: Bhavna | last post by:
I am using a Replace function to replace single quotes with double when submitting a text field in the database i.e. Replace (q, "'", "' ' ") which works fine. When I retrieve the field from the...
3
by: Harish | last post by:
I am buiding an application in ASP.Net 2.0 with C#. After installing corel wordperfect i am adding the reference into the application. Afetr adding reference interop.wordperfect.dll is added to the...
4
by: omrivm | last post by:
Hi, I have a problem with Outlook Redemption, every time I'm trying to create a new RDOAddressBook: Redemption.RDOAddressBook AB = new RDOAddressBook(); I get: "Retrieving the COM class factory...
0
by: mike1402 | last post by:
Hi ! I get the error below sometimes when retrieving a big amount of data using Datadapter.Fill(dataset,"table"). But when I send the command Fill again, there is no error. Is it a fault of...
0
by: cmrhema | last post by:
Hello, We are currently using a program where we recieve the details from the client. Developed in C#.It is recieved through sockets. It is working fine. i.e. When we start the program afresh we...
4
by: sahitya sidda | last post by:
"Error 91: object variable or with block variable not set" I am getting the above error while retrieving the index of selected row in listview. Please help me out Private Sub...
2
by: pavanip | last post by:
Hi, I developed a windows application in Vb.Net 2003.It is working fine in this. But when I am trying to convert this into .Net 2005 I am getting this error. Class not registered...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.