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.
|
|
|
|
|
![]() |
||
Problem with WSC component
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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!!!! |
|
|
|
||||
|
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
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
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 |
|
||||
|
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
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| problem, wsc, component |
| Thread Tools | |
|
|
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 |