VBScript "Unhandled Exception" MSO9.DLL W2k 
Author Message
 VBScript "Unhandled Exception" MSO9.DLL W2k

I am trying to create an instance of Outlook 2000 using VBScript. If I
issue the following:

Dim oOutlook

Set oOutlook = CreateObject("Outlook.Application")

I get an access violation in MSO9.dll.  I am running windows 2k.

I scoured MSDN and did not see any reference to this problem.

Thanks,

Kurt



Thu, 05 Feb 2004 05:28:47 GMT  
 VBScript "Unhandled Exception" MSO9.DLL W2k
Some thoughts come to mind...

1) The MSO9.DLL file is corrupted.  If you rename it and do a detect and
repair, a new copy should be installed.

2) A corrupted Outlook mail profile.

3) Are you trying to use Outlook from an unattended task?  (eg. Task
Scheduler or system service?)


Quote:
> I am trying to create an instance of Outlook 2000 using VBScript. If I
> issue the following:

> Dim oOutlook

> Set oOutlook = CreateObject("Outlook.Application")

> I get an access violation in MSO9.dll.  I am running windows 2k.

> I scoured MSDN and did not see any reference to this problem.

> Thanks,

> Kurt



Thu, 05 Feb 2004 21:17:08 GMT  
 VBScript "Unhandled Exception" MSO9.DLL W2k

Quote:

> Some thoughts come to mind...

> 1) The MSO9.DLL file is corrupted.  If you rename it and do a detect and
> repair, a new copy should be installed.

> 2) A corrupted Outlook mail profile.

> 3) Are you trying to use Outlook from an unattended task?  (eg. Task
> Scheduler or system service?)



> > I am trying to create an instance of Outlook 2000 using VBScript. If I
> > issue the following:

> > Dim oOutlook

> > Set oOutlook = CreateObject("Outlook.Application")

> > I get an access violation in MSO9.dll.  I am running windows 2k.

> > I scoured MSDN and did not see any reference to this problem.

> > Thanks,

> > Kurt

Thanks for the response.  I can launch Outlook fine by starting the
application explicitly.  It is only when I am using automation that
this error occurs.  I have a vbs file that I am running from the
desktop.  I am not using automation via a service or unattended task.
If my MSO9.dll is corrupt I should not be able to launch Outlook at
all, correct?

Kurt



Fri, 06 Feb 2004 05:58:28 GMT  
 VBScript "Unhandled Exception" MSO9.DLL W2k

Quote:

> Some thoughts come to mind...

> 1) The MSO9.DLL file is corrupted.  If you rename it and do a detect and
> repair, a new copy should be installed.

> 2) A corrupted Outlook mail profile.

> 3) Are you trying to use Outlook from an unattended task?  (eg. Task
> Scheduler or system service?)



> > I am trying to create an instance of Outlook 2000 using VBScript. If I
> > issue the following:

> > Dim oOutlook

> > Set oOutlook = CreateObject("Outlook.Application")

> > I get an access violation in MSO9.dll.  I am running windows 2k.

> > I scoured MSDN and did not see any reference to this problem.

> > Thanks,

> > Kurt

One other thing, if outlook is already running and I run the execute
the vbscript I do not see the problem.


Fri, 06 Feb 2004 06:08:31 GMT  
 VBScript "Unhandled Exception" MSO9.DLL W2k
hmm... in this case it might be an addin that is causing this error.  What
do you have loading under Tools | Options | Other | Advanced Options | AddIn
Manager and COM AddIns?


Quote:

> > Some thoughts come to mind...

> > 1) The MSO9.DLL file is corrupted.  If you rename it and do a detect and
> > repair, a new copy should be installed.

> > 2) A corrupted Outlook mail profile.

> > 3) Are you trying to use Outlook from an unattended task?  (eg. Task
> > Scheduler or system service?)



> > > I am trying to create an instance of Outlook 2000 using VBScript. If I
> > > issue the following:

> > > Dim oOutlook

> > > Set oOutlook = CreateObject("Outlook.Application")

> > > I get an access violation in MSO9.dll.  I am running windows 2k.

> > > I scoured MSDN and did not see any reference to this problem.

> > > Thanks,

> > > Kurt

> One other thing, if outlook is already running and I run the execute
> the vbscript I do not see the problem.



Fri, 06 Feb 2004 11:30:33 GMT  
 VBScript "Unhandled Exception" MSO9.DLL W2k

Quote:

> hmm... in this case it might be an addin that is causing this error.  What
> do you have loading under Tools | Options | Other | Advanced Options | AddIn
> Manager and COM AddIns?




> > > Some thoughts come to mind...

> > > 1) The MSO9.DLL file is corrupted.  If you rename it and do a detect and
> > > repair, a new copy should be installed.

> > > 2) A corrupted Outlook mail profile.

> > > 3) Are you trying to use Outlook from an unattended task?  (eg. Task
> > > Scheduler or system service?)



> > > > I am trying to create an instance of Outlook 2000 using VBScript. If I
> > > > issue the following:

> > > > Dim oOutlook

> > > > Set oOutlook = CreateObject("Outlook.Application")

> > > > I get an access violation in MSO9.dll.  I am running windows 2k.

> > > > I scoured MSDN and did not see any reference to this problem.

> > > > Thanks,

> > > > Kurt

> > One other thing, if outlook is already running and I run the execute
> > the vbscript I do not see the problem.

Yes, that is it.  I have an add-in loading. Any ideas as to why
loading an add-in can cause this assertion?


Sun, 08 Feb 2004 00:23:38 GMT  
 VBScript "Unhandled Exception" MSO9.DLL W2k
It might be trying to reference a UI element that isn't there.


Quote:
> Yes, that is it.  I have an add-in loading. Any ideas as to why
> loading an add-in can cause this assertion?



Sun, 08 Feb 2004 12:35:58 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. DLL or something like "#"#ยค#"!"#

2. "Unhandled Win32 Exception" after installing a new MSHTML.dll

3. Unhandled exception in Visdata.exe(rpcrt4.dll)

4. Unhandled exception in system.windows.forms.dll (in my main form) - argh

5. unhandled exception jet40.dll

6. Unhandled exception in Visdata.exe(rpcrt4.dll)

7. Unhandled exception in Visdata.exe(rpcrt4.dll)

8. Question about "Exception from HRESULT: 0x80131019"

9. error 80020009 "exception occurred"

10. "Print Engine Not Opened" - Exception

11. Newbie - unhandled exception problem - "AddressBook.txt" 395 Bytes

12. problems with the Helpfile compiler - VB3 "run-time error R6915 - Dosx16 : unhandled exception"

 

 
Powered by phpBB® Forum Software