T
THNQDigital
Hi All,
I have written VB.NET Windows Service whcih reads some
information from Outlook and creates an Excel report outa
it.
When i make a console application and run the program
everything works fine but same code does not work if i put
it in an Windows service.
My OS : Win2000 Pro
Error is thrown where create object of Outlook ( VB6.0)
Set objOutlook = CreateObject("Outlook.Application")
Can not create Activex Object ( if i run as an exe it
works fine but if i make it as an NTService it throws this
error)
Error is thrown where i say ( VB.NET Win Service)
Public oNS As Outlook.NameSpace = oApp.GetNamespace("mapi")
Dim oInbox As Outlook.MAPIFolder = oNS.GetDefaultFolder
(Outlook.OlDefaultFolders.olFolderInbox)
System.Runtime.InteropServices.COMException (0x84140102):
Could not complete the operation because the service
provider does not support it
Is this a bug of MS or is there any fix available?
Please let me know
Best Regards
THNQDigital
I have written VB.NET Windows Service whcih reads some
information from Outlook and creates an Excel report outa
it.
When i make a console application and run the program
everything works fine but same code does not work if i put
it in an Windows service.
My OS : Win2000 Pro
Error is thrown where create object of Outlook ( VB6.0)
Set objOutlook = CreateObject("Outlook.Application")
Can not create Activex Object ( if i run as an exe it
works fine but if i make it as an NTService it throws this
error)
Error is thrown where i say ( VB.NET Win Service)
Public oNS As Outlook.NameSpace = oApp.GetNamespace("mapi")
Dim oInbox As Outlook.MAPIFolder = oNS.GetDefaultFolder
(Outlook.OlDefaultFolders.olFolderInbox)
System.Runtime.InteropServices.COMException (0x84140102):
Could not complete the operation because the service
provider does not support it
Is this a bug of MS or is there any fix available?
Please let me know
Best Regards
THNQDigital