Re: runtime error 800a0030 when executing vbscript from w2k. Works

From: a_sakuma (asakuma_at_discussions.microsoft.com)
Date: 02/09/05


Date: Tue, 8 Feb 2005 23:27:01 -0800

Thank you for the prompt answer.

The COM server (it is not DLL, but out proc exe) is registered on both
systems.
To test if it is registered and working, I used visual basic 6.0 with SP5 to
make the same coding used on vbscript and it worked fine under windows 2000
pro.

I forgot to mention more about the enviroment, but basically the COM Server
is out of process exe and it was coded using Visual c++.NET 2003 and ATL7.0
This COM Server is unmanaged.

"Michael Harris (MVP)" wrote:

> a_sakuma wrote:
> > When running the script from command prompt:
> > c:\wscript MyScript.vbs under windows 2000 professional, I got the
> > error below.
> >
> > Microsoft VBScript runtime error '800a0030'
> > Error in loading DLL: 'MyDocs'
>
>
> Om the W2K box, from a command prompt opened on the directory containing the
> dll, run:
>
> regsvr32.exe yourdllname.dll
>
> Does the dll register correctly as a COM component?
>
>
> >
> > But when running under Windows XP Professional, it works fine.
> >
> > WSH 5.6 on both systems. (on w2k the build is 8825 and on winxp is
> > 8820)
> >
> > The script is a simple:
> >
> > Dim app
> > Dim doc
> > Dim work
> >
> > Set app = CreateObject("MyDLL.MyApplication")
> > Set doc = app.MyDocs("MyDocName")
> > Set work = doc.Work
> >
> > Set work = nothing
> > Set doc = nothing
> > Set app = nothing
> >
> > Any help is welcome
>
> --
> Michael Harris
> Microsoft MVP Scripting
>
>
>



Relevant Pages

  • Re: VB6 Regfree Com
    ... The dll itself is a standard dll and needs no registering. ... It allows you to instantiate objects from COM servers *without* the need to register them. ... The COM server file may be anywhere on disk, not necessarily in the application directory. ... The only difference is that for instantiating you must not use VBs New operator or VBs CreateObject method. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6 Regfree Com
    ... MSVBVM60.DLL is on the target machine, then I can just include this DLL, the ... The COM server file may be anywhere on disk, ... Register the COM server you want to use *on the development pc*. ...
    (microsoft.public.vb.general.discussion)
  • Re: Registering DLL issue.
    ... working fine, with it pointed to the system32 folder, can't explain it ... system32 drive and use regsvr32 to register it. ... are pointing to the dll on the network drive and not the dll i ... All of my source is on our server so it's backed up every night. ...
    (microsoft.public.vb.general.discussion)
  • Re: Updating CDO.DLL on BlackBerry Server
    ... > After applying the 828429 hotfix to our Exchange server, ... > BES must match or exceed that of the CDO.DLL on the ... must the DLL file be in the correct location ... because the location that you register it from is also saved as part of the ...
    (microsoft.public.exchange.admin)
  • Re: Help in WMI in ASP.net application
    ... In my option you did the correct thing by creating a COM+ DLL. ... step I see you missing is that you need to register the DLL in COM+. ... The parameters that we pass or the server name (the host ... > well as from a remote machine it is giving the correct result. ...
    (microsoft.public.scripting.wsh)