Using WSC files from ASP (VBScript) 
Author Message
 Using WSC files from ASP (VBScript)

I hope this is the correct newsgroup for this post...

Where I work, we are implementing the new WSC files into ASP to wrap up
some of our business logic.  After creating a new WSC file using MS's
wizard and putting our code in, the Server.CreateObject fails on the
object.  Of course we are registering the component before using it.
Is there some other something that has to be done before the component
can be used from ASP?  I also noticed that to see the WSC component
from within Visual Basic, you had to first create a TLB and reference
it instead of the WSC file...maybe that is because you can't early-bind
to the WSC components.?  Can someone shed some light on this for me.

Here is the registration section from the WSC file.

<registration
    description="CompanyCatalogs"
    progid="Company.Catalogs"
    version="1.00"
    classid="{55bd0670-0592-11d4-a890-005004c0bfec}"
</registration>

In ASP, we are simply using Server.CreateObject("Company.Catalogs").
Is there something in IIS which needs to be setup before this will
work?  I am really clueless past this point.

Thanks,
jesse

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Sun, 15 Sep 2002 03:00:00 GMT  
 Using WSC files from ASP (VBScript)
Try creating an instance from an ordinary script executed as a logged on interactive user.  The
CreateObject failure may have nothing to do with ASP.

--
Michael Harris
MVP Scripting

I hope this is the correct newsgroup for this post...

Where I work, we are implementing the new WSC files into ASP to wrap up
some of our business logic.  After creating a new WSC file using MS's
wizard and putting our code in, the Server.CreateObject fails on the
object.  Of course we are registering the component before using it.
Is there some other something that has to be done before the component
can be used from ASP?  I also noticed that to see the WSC component
from within Visual Basic, you had to first create a TLB and reference
it instead of the WSC file...maybe that is because you can't early-bind
to the WSC components.?  Can someone shed some light on this for me.

Here is the registration section from the WSC file.

<registration
    description="CompanyCatalogs"
    progid="Company.Catalogs"
    version="1.00"
    classid="{55bd0670-0592-11d4-a890-005004c0bfec}"
</registration>

In ASP, we are simply using Server.CreateObject("Company.Catalogs").
Is there something in IIS which needs to be setup before this will
work?  I am really clueless past this point.

Thanks,
jesse

Sent via Deja.com http://www.deja.com/
Before you buy.



Tue, 17 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Using WSC files from ASP (VBScript)

2. Using a WSC to access Jscript functions from VBScript

3. Using WScrip.Echo in a WSC file....?

4. Using WScript in wsc files

5. Weird problem with files deltion using wininet HTTP and ASP vbscript

6. using vbscript in an asp file

7. Executing files using ASP/VBScript

8. NON US Characters in vbscript code gives an error when registering a .wsc file

9. Using WSC and DCOM

10. Interfacing with Access object using WSC written in JScript

11. Expose Python library to PerlScript using WSC

12. Using WScript object in WSC components

 

 
Powered by phpBB® Forum Software