Windows Service error for VB 2005/Outloo

Getting error when trying to run a windows service written in VB 2005

Page 1 of 1

0 Replies - 806 Views - Last Post: 26 October 2009 - 09:58 AM Rate Topic: -----

#1 rob19146  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-October 09

Windows Service error for VB 2005/Outloo

Post icon  Posted 26 October 2009 - 09:58 AM

I have written a service in VB.net 2005 to delete all contacts in an Outlook contacts folder and replace them with contacts from an Access DB. When I run the service in the .net environment it runs fine and does exactly what it is supposed to do. Then I install the service and it installs fine also. The problem is when I try to start the service I get an error when the progress bar is on the last bar saying Error 1053: The service did not respond to the start or control request in a timely fashion.

When I open the service up in debug mode I get this error on the first Dim statement.

An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in Contacts.exe

Additional information: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80010001.

After I click OK and run it again in debug the service runs fine like it is supposed to. I just get get it to start up as a service in the services folder. I know nothing is wrong with my code since the service runs fine. I am running .Net version 2.0 and referencing Outlook version 9.2.0. Any help would be appreciated.

Thanks,

Rob

Is This A Good Question/Topic? 0
  • +

Page 1 of 1