Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internal Server Error - ASP - Invalid ProgID

Status
Not open for further replies.

ozpeppers

Programmer
Jul 17, 2001
32
0
0
BN
Hi Guys

I'm trying to connect to a wsc file from an asp file in the same directory on the server but get an Server object, ASP, Invalid ProgID error.

The page below connects to the wsc file.

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<P>
Wrox Building Supplies</P>
<P>&nbsp;</P>
<%

dim objBrickCalc
Set objBrickCalc = Server.CreateObject(&quot;Bricks.wsc&quot;)

WallLength = Request.Form(&quot;WallLength&quot;)
WallHeight = Request.Form(&quot;WallHeight&quot;)

objBrickCalc.BrickType = Request.Form(&quot;BrickType&quot;)

Response.Write(&quot;Calculation for wall with height &quot;& WallHeight &&quot; feet and Length &quot;& WallLength &&quot;feet&quot;)

strResult = objBrickCalc.HowManyBricks(WallHeight, WallLength)

Response.Write(&quot;<br><br>You will need &quot;& strResult &&quot; bricks.&quot;)

%>

</BODY>
</HTML>

All ideas appriciated. Cheers in advance.

Mark
 
Make sure the ProgID attribute of your Registration element is set to &quot;Bricks.wsc&quot;. If it is, did you remember to register it at the server?

Can you paste the following in a .VBS on the server and execute it without error?

Set objBrickCalc = Wscript.CreateObject(&quot;Bricks.wsc&quot;) Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top