Problem with WSC component

This is a discussion on "Problem with WSC component" within the Classic ASP section. This forum, and the thread "Problem with WSC component are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 17th, 2006, 14:48
New Member
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Problem with WSC component

Hi:
This is the script I use

<%@ Language=VBScript %>
<object RUNAT=SERVER ID=scptPet CLASSID="clsid:a5a670a0-f128-11d2-a60b-444553540000">
</object>
<%
set scptOwner = server.CreateObject("Unleashed.WSC")
scptOwner.FirstName = "Craig"
scptOwner.LastName = "Eddy"

scptPet.FirstName = "Lucy"
scptPet.LastName = "Eddy"
%>
<HTML><BODY>
<H2>Pet</H2>
First Name: <%=scptPet.FirstName%><br>
Last Name: <%=scptPet.LastName%><p>
<H2>Owner</H2>
First Name: <%=scptOwner.FirstName%><br>
Last Name: <%=scptOwner.LastName%><br>
</BODY></HTML>

I have the wsc file in the same folder that this asp file, but the error is this:



Objeto Servererror 'ASP 0177 : 800401f3'
Error en Server.CreateObject
/ejemplosasp/chapter17/test.asp, line 5 Cadena clase no válida

The line 5 is this

set scptOwner = server.CreateObject("Unleashed.WSC")


This example is part of a lot of examples from the book Active Server Pages Unleashed. Somebody tell me what's wrong?

Sorry my grammar

Thanks a lot!!!!
Reply With Quote

  #2 (permalink)  
Old Apr 18th, 2006, 08:56
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: Problem with WSC component

It sounds like the wsc object has not been registered.

You need to use regsvr32 on the command line to register the component.

Usage:- regsvr32 c:/path/unleashed.wsc

Change 'path' to whatever is relevant.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #3 (permalink)  
Old Apr 18th, 2006, 14:31
New Member
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problem with WSC component

Thanks a lot..... it's works fine....... but now one last question....... how can I do it when I publish this in a hosting? I mean register a component

Sorry my grammar
Reply With Quote
  #4 (permalink)  
Old Apr 18th, 2006, 17:00
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: Problem with WSC component

You ask the host....... but be warned, most hosts WONT allow this unless you have a DEDICATED server.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
Reply

Tags
problem, wsc, component

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
combobox component ahwell Flash & Multimedia Forum 0 Sep 11th, 2007 17:21
Desparately Need Form, Checkbox Component Help grillbat Starting Out 1 Aug 21st, 2007 16:04
How to unload a movie from the Loader component griffonwing Flash & Multimedia Forum 5 Jun 12th, 2007 04:22
XStandard Zip Component moojoo Classic ASP 2 Jul 18th, 2006 17:05
visual studio component interfaces Don Logan ASP.NET Forum 0 Jun 5th, 2006 15:23


All times are GMT. The time now is 20:54.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43