Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: COM problems


Message #1 by "laeg byrne" <laeg_enterprises@y...> on Thu, 22 Nov 2001 17:27:57
I have a simple ASP page that calls uses an ActiveX dll to do a function 

for it. The asp page creates an object and that object uses one of the 

functions of the dll. In this case it just returns a string. I have 

compiled my project correctly and registered the resulting dll. Having 

checked the server logs no error is returned when I test the asp page yet 

it will not return the string. It prints nothing. So although the object 

is being created, it does not seem able to use the functions of the dll. 

Why is this? 
Message #2 by "Nicholas Murray" <murray_nicholas@h...> on Mon, 26 Nov 2001 09:09:27
Show us some code!



Did it work ok in testing, did you test it with PWS?



Nicholas.







Message #3 by "laeg byrne" <laeg_enterprises@y...> on Mon, 26 Nov 2001 09:47:34
> Show us some code!

> 

> Did it work ok in testing, did you test it with PWS?

> 

> Nicholas.

> 

> 

> 

The following ASP code is between Script tags specifiying the language as 

VBscript and Runat=Server



ASP:



On Error Resume Next

Dim thing

Dim yoke

Set thing=Server.CreateObject("Myproject.Myclass")

yoke=thing.myfun() 

Response.Write(yoke) 



++++++++++++++++++++



VB Code:

Public Function myfun() as String

myfun = "executed"

End Function



+++++++++++++++++++

OTHER DEPENDENDCIES

Project Name:Myproject

Class Name:Myclass

DLL:Myproject.dll



DLL registered, regedit verifies correct path

Running IIS 5 on Windows 2000 server





 

 

 

Message #4 by "Nicholas Murray" <murray_nicholas@h...> on Mon, 26 Nov 2001 11:58:09
Well,



I tried your code and it works no probs.



Have you registered an earlier version of this dll to your server?



as I was getting some probs myself where the server seemed to hold on to 

previous versions of the dll/classes.



Nicholas.
Message #5 by "laeg byrne" <laeg_enterprises@y...> on Mon, 26 Nov 2001 12:06:02
> Well,

> 

> I tried your code and it works no probs.

> 

> Have you registered an earlier version of this dll to your server?

> 

> as I was getting some probs myself where the server seemed to hold on to 

> previous versions of the dll/classes.

> 

> Nicholas.



This is a real baffler. Could I just get environment info. off you.



You running Windows 98 or 2000 on the machine you registered the dll on.

IIS version?



Cheers,

Laeg



Message #6 by "Nicholas Murray" <murray_nicholas@h...> on Mon, 26 Nov 2001 13:37:27
windows nt iis4
Message #7 by "laeg byrne" <laeg_enterprises@y...> on Mon, 26 Nov 2001 16:06:48
> windows nt iis4



Are there any dependencies when using a VB dll

with an ASP page?



If all usual protocol has been followed, choosing Active X project, 

registering, checking path with regedit etc, is it possible that 

registering a dll

on Windows 98 should not render the page while registering it on Windows 

NT would?



Are there any permissions on a given network folder that might inhibit the 

rendering of a page?



Any other suggestions would be gratefully accepted.



Laeg



Message #8 by =?iso-8859-1?q?Swati=20Manohar?= <swatimanohar@y...> on Tue, 27 Nov 2001 08:12:11 +0800 (CST)
Hello,

try to make the component an "activex-exe", and then

set "AspAllowOutOfProcComponents" to TRUE on the IIS

WebService.

for more info on this one u can search the micorsoft

site. search for "cannot launch out of process

component under iis4"

i think this should work with the dll as well.



Thanks and Best Regards,

Swati Manohar. 

 --- laeg byrne <laeg_enterprises@y...> wrote:

> > Well,

> > 

> > I tried your code and it works no probs.

> > 

> > Have you registered an earlier version of this dll

> to your server?

> > 

> > as I was getting some probs myself where the

> server seemed to hold on to 

> > previous versions of the dll/classes.

> > 

> > Nicholas.

> 

> This is a real baffler. Could I just get environment

> info. off you.

> 

> You running Windows 98 or 2000 on the machine you

> registered the dll on.

> IIS version?

> 

> Cheers,

> Laeg

> 

> 



> swatimanohar@y...


$subst('Email.Unsub') 



__________________________________________________

Do You Yahoo!?

Yahoo! Shopping - Beat the crowds!  Do your X'mas Shopping Online!

http://shopping.yahoo.com.sg/

Message #9 by "laeg byrne" <laeg_enterprises@y...> on Tue, 27 Nov 2001 10:18:50
This unfortunately is not an issue. I am running IIS 5.0 and that

field is obselete with it. It only holds for IIS 4.0, Any one else

know of anything that needs checking with IIS 5.0???? Real baffler

this.





> Hello,

> try to make the component an "activex-exe", and then

> set "AspAllowOutOfProcComponents" to TRUE on the IIS

> WebService.

> for more info on this one u can search the micorsoft

> site. search for "cannot launch out of process

> component under iis4"

> i think this should work with the dll as well.

> 

> Thanks and Best Regards,

> Swati Manohar. 

Message #10 by "laeg byrne" <laeg_enterprises@y...> on Tue, 27 Nov 2001 12:35:50
> This unfortunately is not an issue. I am running IIS 5.0 and that

> field is obselete with it. It only holds for IIS 4.0, Any one else

> know of anything that needs checking with IIS 5.0???? Real baffler

> this.



I created a VB.exe and it was able to access the dll no problems 

whatsoever. This is definitely specific to asp and IIS, but I cannot think 

what. Any ideas?
Message #11 by =?iso-8859-1?q?Swati=20Manohar?= <swatimanohar@y...> on Wed, 28 Nov 2001 08:29:31 +0800 (CST)
Not sure what u mean by "the field is obsolete with

iis5.0)". This is a feature to be set in the "adsutil"

of teh web server (not from an asp). It is a safety

mechanism in ASP that prevents the launching of

LocalServerComponents. To Override this , you must

change the value in the AspAllowOutOfProcComponents

metabase setting to TRUE(in the web server).

I had a very similar problem, that the ASP creates the

ActiveX object but does not perform the functionality.

It worked fine for me after this resolution, and as

far as I know this resolution is suggested by MS

helpsite for iis4.0 and 5.0 also.

Anyway, as it does not work for you, must think of

something else.



Thanks and Best Regards,

Swati Manohar.

 --- laeg byrne <laeg_enterprises@y...> wrote:

> This unfortunately is not an issue. I am running IIS

> 5.0 and that

> field is obselete with it. It only holds for IIS

> 4.0, Any one else

> know of anything that needs checking with IIS

> 5.0???? Real baffler

> this.

> 

> 

> > Hello,

> > try to make the component an "activex-exe", and

> then

> > set "AspAllowOutOfProcComponents" to TRUE on the

> IIS

> > WebService.

> > for more info on this one u can search the

> micorsoft

> > site. search for "cannot launch out of process

> > component under iis4"

> > i think this should work with the dll as well.

> > 

> > Thanks and Best Regards,

> > Swati Manohar. 

> 



> swatimanohar@y...


$subst('Email.Unsub') 





=====

Thanks and regards,

Swati Manohar,

Singapore.

Tel : 65 - 9001 5295



__________________________________________________

Do You Yahoo!?

Yahoo! Shopping - Beat the crowds!  Do your X'mas Shopping Online!

http://shopping.yahoo.com.sg/

Message #12 by "laeg byrne" <laeg_enterprises@y...> on Wed, 28 Nov 2001 11:37:18
Sorry,

      How exactly do I do this, I have done a search for adsutil, and come 

up with adsutil.vbs, How do I set the AspAllowOutOfProcComponents metabase 

setting to TRUE from here? Thanks very much for replies.





> Not sure what u mean by "the field is obsolete with

> iis5.0)". This is a feature to be set in the "adsutil"

> of teh web server (not from an asp). It is a safety

> mechanism in ASP that prevents the launching of

> LocalServerComponents. To Override this , you must

> change the value in the AspAllowOutOfProcComponents

> metabase setting to TRUE(in the web server).

> I had a very similar problem, that the ASP creates the

> ActiveX object but does not perform the functionality.

> It worked fine for me after this resolution, and as

> far as I know this resolution is suggested by MS

> helpsite for iis4.0 and 5.0 also.

> Anyway, as it does not work for you, must think of

> something else.

> 

> Thanks and Best Regards,

> Swati Manohar.

Message #13 by "Greg Jennings" <greg.jennings@t...> on Wed, 28 Nov 2001 14:43:28
> > Show us some code!

> > 

> > Did it work ok in testing, did you test it with PWS?

> > 

> > Nicholas.

> > 

> > 

> > 

> The following ASP code is between Script tags specifiying the language 

as 

> VBscript and Runat=Server

> 

> ASP:

> 

> On Error Resume Next

> Dim thing

> Dim yoke

> Set thing=Server.CreateObject("Myproject.Myclass")

> yoke=thing.myfun() 

> Response.Write(yoke) 

> 

> ++++++++++++++++++++

> 

> VB Code:

> Public Function myfun() as String

> myfun = "executed"

> End Function

> 

> +++++++++++++++++++

> OTHER DEPENDENDCIES

> Project Name:Myproject

> Class Name:Myclass

> DLL:Myproject.dll

> 

> DLL registered, regedit verifies correct path

> Running IIS 5 on Windows 2000 server

> 

> 

>  

>  

>  



Check Err.Number after the CreateObject and after the function call to 

your object to find out exactly where the error is occuring.
Message #14 by "laeg byrne" <laeg_enterprises@y...> on Wed, 28 Nov 2001 15:57:29
> > > Show us some code!

> > > 

> > > Did it work ok in testing, did you test it with PWS?

> > > 

> > > Nicholas.

> > > 

> > > 

> > > 

> > The following ASP code is between Script tags specifiying the language 

> as 

> > VBscript and Runat=Server

> > 

> > ASP:

> > 

> > On Error Resume Next

> > Dim thing

> > Dim yoke

> > Set thing=Server.CreateObject("Myproject.Myclass")

> > yoke=thing.myfun() 

> > Response.Write(yoke) 

> > 

> > ++++++++++++++++++++

> > 

> > VB Code:

> > Public Function myfun() as String

> > myfun = "executed"

> > End Function

> > 

> > +++++++++++++++++++

> > OTHER DEPENDENDCIES

> > Project Name:Myproject

> > Class Name:Myclass

> > DLL:Myproject.dll

> > 

> > DLL registered, regedit verifies correct path

> > Running IIS 5 on Windows 2000 server

> > 

> > 

> >  

> >  

> >  

> 

> Check Err.Number after the CreateObject and after the function call to 

> your object to find out exactly where the error is occuring.



Err.Number after CreateObject returns

-2147221005

Err.Number after fucntion call returns

424



The first one refers to an invalid string in the CreateObject

parenthesis, however I have checked regedit and all seems ok, ie

my dll is registered, is pointed towards the correct path, and when I 

check the PROG ID folder it says (Default) "Myproject.Myclass" like its 

supposed to even though I get an "Invalid Prog" error along with 

my "Server.CreateObject" error. I really don't understand how the hell

this can run with a VB.exe and not an asp page.
Message #15 by "Greg Jennings" <greg.jennings@t...> on Wed, 28 Nov 2001 16:18:43
> > > > Show us some code!

> > > > 

> > > > Did it work ok in testing, did you test it with PWS?

> > > > 

> > > > Nicholas.

> > > > 

> > > > 

> > > > 

> > > The following ASP code is between Script tags specifiying the 

language 

> > as 

> > > VBscript and Runat=Server

> > > 

> > > ASP:

> > > 

> > > On Error Resume Next

> > > Dim thing

> > > Dim yoke

> > > Set thing=Server.CreateObject("Myproject.Myclass")

> > > yoke=thing.myfun() 

> > > Response.Write(yoke) 

> > > 

> > > ++++++++++++++++++++

> > > 

> > > VB Code:

> > > Public Function myfun() as String

> > > myfun = "executed"

> > > End Function

> > > 

> > > +++++++++++++++++++

> > > OTHER DEPENDENDCIES

> > > Project Name:Myproject

> > > Class Name:Myclass

> > > DLL:Myproject.dll

> > > 

> > > DLL registered, regedit verifies correct path

> > > Running IIS 5 on Windows 2000 server

> > > 

> > > 

> > >  

> > >  

> > >  

> > 

> > Check Err.Number after the CreateObject and after the function call to 

> > your object to find out exactly where the error is occuring.

> 

> Err.Number after CreateObject returns

> -2147221005

> Err.Number after fucntion call returns

> 424

> 

> The first one refers to an invalid string in the CreateObject

> parenthesis, however I have checked regedit and all seems ok, ie

> my dll is registered, is pointed towards the correct path, and when I 

> check the PROG ID folder it says (Default) "Myproject.Myclass" like its 

> supposed to even though I get an "Invalid Prog" error along with 

> my "Server.CreateObject" error. I really don't understand how the hell

> this can run with a VB.exe and not an asp page.



Since it works in a VB program but not from an ASP page, that seems to 

imply a possible permissions problem.  Your VB program is running with 

your login ID, but the ASP page is likely running with the 

IUSR_MACHINENAME (where MACHINENAME is the name of your computer) login 

ID.  In Windows Expolorer, browse to the locaion of your Myproject.dll.  

Right-click the file, then click Properties.  Select the Security tab.  

Now, you need to make sure that either the IUSR_MACHINENAME or the special 

Everyone login has Read and Execute permission for your file.  If neither 

of those logins have Read and Execute permission, add them now.  When 

finished, go back and try the web page again.
Message #16 by "laeg byrne" <laeg_enterprises@y...> on Wed, 28 Nov 2001 16:55:32
> > > > > Show us some code!

> > > > > 

> > > > > Did it work ok in testing, did you test it with PWS?

> > > > > 

> > > > > Nicholas.

> > > > > 

> > > > > 

> > > > > 

> > > > The following ASP code is between Script tags specifiying the 

> language 

> > > as 

> > > > VBscript and Runat=Server

> > > > 

> > > > ASP:

> > > > 

> > > > On Error Resume Next

> > > > Dim thing

> > > > Dim yoke

> > > > Set thing=Server.CreateObject("Myproject.Myclass")

> > > > yoke=thing.myfun() 

> > > > Response.Write(yoke) 

> > > > 

> > > > ++++++++++++++++++++

> > > > 

> > > > VB Code:

> > > > Public Function myfun() as String

> > > > myfun = "executed"

> > > > End Function

> > > > 

> > > > +++++++++++++++++++

> > > > OTHER DEPENDENDCIES

> > > > Project Name:Myproject

> > > > Class Name:Myclass

> > > > DLL:Myproject.dll

> > > > 

> > > > DLL registered, regedit verifies correct path

> > > > Running IIS 5 on Windows 2000 server

> > > > 

> > > > 

> > > >  

> > > >  

> > > >  

> > > 

> > > Check Err.Number after the CreateObject and after the function call 

to 

> > > your object to find out exactly where the error is occuring.

> > 

> > Err.Number after CreateObject returns

> > -2147221005

> > Err.Number after fucntion call returns

> > 424

> > 

> > The first one refers to an invalid string in the CreateObject

> > parenthesis, however I have checked regedit and all seems ok, ie

> > my dll is registered, is pointed towards the correct path, and when I 

> > check the PROG ID folder it says (Default) "Myproject.Myclass" like 

its 

> > supposed to even though I get an "Invalid Prog" error along with 

> > my "Server.CreateObject" error. I really don't understand how the hell

> > this can run with a VB.exe and not an asp page.

> 

> Since it works in a VB program but not from an ASP page, that seems to 

> imply a possible permissions problem.  Your VB program is running with 

> your login ID, but the ASP page is likely running with the 

> IUSR_MACHINENAME (where MACHINENAME is the name of your computer) login 

> ID.  In Windows Expolorer, browse to the locaion of your Myproject.dll.  

> Right-click the file, then click Properties.  Select the Security tab.  

> Now, you need to make sure that either the IUSR_MACHINENAME or the 

special 

> Everyone login has Read and Execute permission for your file.  If 

neither 

> of those logins have Read and Execute permission, add them now.  When 

> finished, go back and try the web page again.



Everyones got full access. Its mad.
Message #17 by "Greg Jennings" <greg.jennings@t...> on Wed, 28 Nov 2001 17:06:29
OK, how about checking the winnt\system32 permissions?  Does 

IUSR_MACHINENAME or Everyone have Read and Execute permission?  If not, 

add the IUSR_MACHINENAME login and give then Read and Execute permission.  

It's possible that the VB runtime files in the winnt\system32 folder 

cann't be accessed by the web site.
Message #18 by "laeg byrne" <laeg_enterprises@y...> on Wed, 28 Nov 2001 17:23:14
> OK, how about checking the winnt\system32 permissions?  Does 

> IUSR_MACHINENAME or Everyone have Read and Execute permission?  If not, 

> add the IUSR_MACHINENAME login and give then Read and Execute 

permission.  

> It's possible that the VB runtime files in the winnt\system32 folder 

> cann't be accessed by the web site.



Again everyone has r+x access. star badge to anyone who can solve this.

Thanks very much for replies
Message #19 by "Greg Jennings" <greg.jennings@t...> on Wed, 28 Nov 2001 17:39:45
> > OK, how about checking the winnt\system32 permissions?  Does 

> > IUSR_MACHINENAME or Everyone have Read and Execute permission?  If 

not, 

> > add the IUSR_MACHINENAME login and give then Read and Execute 

> permission.  

> > It's possible that the VB runtime files in the winnt\system32 folder 

> > cann't be accessed by the web site.

> 

> Again everyone has r+x access. star badge to anyone who can solve this.

> Thanks very much for replies



How about creating the following VB script and running it?  If you haven't 

done that before, just create a file with a .vbs extension and put the 

following code in it.  Then save it, and double-click the file to execute 

the script.  You'll either see a run-time error message pop up, or a 

message box with the correct return value.



+++++++++++++++++

Dim thing

Dim yoke

Set thing=Server.CreateObject("Myproject.Myclass")

yoke=thing.myfun() 

MsgBox yoke,,"returned by myfun()"

Set thing=nothing

+++++++++++++++++



If you get the correct return value, I'd try logging into the machine with 

the IUSR_machinename login ID just to make sure it's not a permissions 

problem.  It takes a little more work, but I think this is how you could 

do it.



First, modify the web server settings to NOT allow IIS to control the 

password for the IUSR_machinename login.  (It's a checkbox in the dialog 

where you specify the login to be used when anonymous access is available 

on your web server.)



Then manually change the password for the IUSR_machinename login so that 

you know what it is.  Then logout and log back in with the 

IUSR_machinename login.  (Be sure that you have put the .vbs file 

somewhere that IUSR_machinename has access.)



Then try running the script again.  If it still runs OK, it sounds like 

something in the IIS environment may be the problem.  If it doesn't run 

OK, it still sounds like a permissions issue.
Message #20 by =?iso-8859-1?q?Swati=20Manohar?= <swatimanohar@y...> on Thu, 29 Nov 2001 08:17:42 +0800 (CST)
on your WEB SERVER CONSOLE, execute this command(in

dos)

c:\winnt\system32\inetsrv\adminsamples>adsutil set

w3svc/AspAllowOutOfProcComponents True

Please reboot your server after successfull execution

of this command for it to take effect.

For more information on this look up the microsoft

help site and search for "cannot launch out of process

component under iis 4"



try this out...





Thanks and Best Regards,

Swati Manohar

 --- laeg byrne <laeg_enterprises@y...> wrote:

> Sorry,

>       How exactly do I do this, I have done a search

> for adsutil, and come 

> up with adsutil.vbs, How do I set the

> AspAllowOutOfProcComponents metabase 

> setting to TRUE from here? Thanks very much for

> replies.

> 

> 

> > Not sure what u mean by "the field is obsolete

> with

> > iis5.0)". This is a feature to be set in the

> "adsutil"

> > of teh web server (not from an asp). It is a

> safety

> > mechanism in ASP that prevents the launching of

> > LocalServerComponents. To Override this , you must

> > change the value in the

> AspAllowOutOfProcComponents

> > metabase setting to TRUE(in the web server).

> > I had a very similar problem, that the ASP creates

> the

> > ActiveX object but does not perform the

> functionality.

> > It worked fine for me after this resolution, and

> as

> > far as I know this resolution is suggested by MS

> > helpsite for iis4.0 and 5.0 also.

> > Anyway, as it does not work for you, must think of

> > something else.

> > 

> > Thanks and Best Regards,

> > Swati Manohar.

> 



> swatimanohar@y...


> $subst('Email.Unsub')

> Read the future with ebooks at B&N

>

http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid=rn_ebooks 



=====

Thanks and regards,

Swati Manohar,

Singapore.

Tel : 65 - 9001 5295



__________________________________________________

Do You Yahoo!?

Yahoo! Shopping - Beat the crowds!  Do your X'mas Shopping Online!

http://shopping.yahoo.com.sg/

Message #21 by "laeg byrne" <laeg_enterprises@y...> on Thu, 29 Nov 2001 12:17:53
> How about creating the following VB script and running it?  If you 

haven't 

> done that before, just create a file with a .vbs extension and put the 

> following code in it.  Then save it, and double-click the file to 

execute 

> the script.  You'll either see a run-time error message pop up, or a 

> message box with the correct return value.

> 

> +++++++++++++++++

> Dim thing

> Dim yoke

> Set thing=Server.CreateObject("Myproject.Myclass")

> yoke=thing.myfun() 

> MsgBox yoke,,"returned by myfun()"

> Set thing=nothing

> +++++++++++++++++

> 

> If you get the correct return value, I'd try logging into the machine 

with 

> the IUSR_machinename login ID just to make sure it's not a permissions 

> problem.  It takes a little more work, but I think this is how you could 

> do it.

> 

> First, modify the web server settings to NOT allow IIS to control the 

> password for the IUSR_machinename login.  (It's a checkbox in the dialog 

> where you specify the login to be used when anonymous access is 

available 

> on your web server.)

> 

> Then manually change the password for the IUSR_machinename login so that 

> you know what it is.  Then logout and log back in with the 

> IUSR_machinename login.  (Be sure that you have put the .vbs file 

> somewhere that IUSR_machinename has access.)

> 

> Then try running the script again.  If it still runs OK, it sounds like 

> something in the IIS environment may be the problem.  If it doesn't run 

> OK, it still sounds like a permissions issue.



The VBscript returned the following error.



Script: E:/mypath

Line:   4

Char:   1

Error:  Object required: 'Server'

Code:   800A01A8

Source: Microsoft VBScript runtime error



Thats pretty much the error that I am getting when I run it with asp. Its 

almost like it can't find the dll or something. Its like the VB.exe could 

because I physically include it in the references for that exe. So the 

link that the .exe has to the dll is two fold, not only the 

Myproject.Myclass link its included as a reference also. The asp page

and vb script have to rely merely on the Myproject.Myclass as their link.

The problem then is scripts linking to this dll?? I'm lost, been reading 

related web pages/solutions for a couple of days now. Cheers for the much 

needed replies.
Message #22 by Aaron Bull <aaronb@a...> on Thu, 29 Nov 2001 23:21:44 +1100
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C178D0.687DC28C

Content-Type: text/plain



For vbscripts, running wscript or cscript (double clicking on them),

Don't use  server.createObject, just use createObject

Ie

Set thing=CreateObject("Myproject.Myclass")





Cheers



Aaron

-----Original Message-----

From: laeg byrne [mailto:laeg_enterprises@y...] 

Sent: Thursday, 29 November 2001 11:18 PM

To: ASPToday Discuss

Subject: [asptoday_discuss] Re: COM problems





> How about creating the following VB script and running it?  If you

haven't 

> done that before, just create a file with a .vbs extension and put the

> following code in it.  Then save it, and double-click the file to 

execute 

> the script.  You'll either see a run-time error message pop up, or a

> message box with the correct return value.

> 

> +++++++++++++++++

> Dim thing

> Dim yoke

> Set thing=Server.CreateObject("Myproject.Myclass")

> yoke=thing.myfun()

> MsgBox yoke,,"returned by myfun()"

> Set thing=nothing

> +++++++++++++++++

> 

> If you get the correct return value, I'd try logging into the machine

with 

> the IUSR_machinename login ID just to make sure it's not a permissions

> problem.  It takes a little more work, but I think this is how you could 

> do it.

> 

> First, modify the web server settings to NOT allow IIS to control the

> password for the IUSR_machinename login.  (It's a checkbox in the dialog 

> where you specify the login to be used when anonymous access is 

available 

> on your web server.)

> 

> Then manually change the password for the IUSR_machinename login so 

> that

> you know what it is.  Then logout and log back in with the 

> IUSR_machinename login.  (Be sure that you have put the .vbs file 

> somewhere that IUSR_machinename has access.)

> 

> Then try running the script again.  If it still runs OK, it sounds 

> like

> something in the IIS environment may be the problem.  If it doesn't run 

> OK, it still sounds like a permissions issue.



The VBscript returned the following error.



Script: E:/mypath

Line:   4

Char:   1

Error:  Object required: 'Server'

Code:   800A01A8

Source: Microsoft VBScript runtime error



Thats pretty much the error that I am getting when I run it with asp. Its 

almost like it can't find the dll or something. Its like the VB.exe could 

because I physically include it in the references for that exe. So the 

link that the .exe has to the dll is two fold, not only the 

Myproject.Myclass link its included as a reference also. The asp page and vb

script have to rely merely on the Myproject.Myclass as their link. The

problem then is scripts linking to this dll?? I'm lost, been reading 

related web pages/solutions for a couple of days now. Cheers for the much 

needed replies.




Message #23 by "laeg byrne" <laeg_enterprises@y...> on Thu, 29 Nov 2001 12:20:45
Hey,

    I tried what you outlined below, however it made no change to

the rendering of the page, still got the same result. Thanks for replies.



> on your WEB SERVER CONSOLE, execute this command(in

> dos)

> c:\winnt\system32\inetsrv\adminsamples>adsutil set

> w3svc/AspAllowOutOfProcComponents True

> Please reboot your server after successfull execution

> of this command for it to take effect.

> For more information on this look up the microsoft

> help site and search for "cannot launch out of process

> component under iis 4"

> 

> try this out...

 

Message #24 by "laeg byrne" <laeg_enterprises@y...> on Thu, 29 Nov 2001 14:04:12
> Content-Type: text/plain

> 

> For vbscripts, running wscript or cscript (double clicking on them),

> Don't use  server.createObject, just use createObject

> Ie

> Set thing=CreateObject("Myproject.Myclass")

> 

> 

> Cheers

> 

> Aaron



Having made that change I get the following error:



Script: E:/mypath

Line:   4

Char:   1

Error:  ActiveX component can't create object: 'Myproject.Myclass'

Code:   800A01AD

Source: Microsoft VBScript runtime error


  Return to Index