Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 21st, 2003, 10:19 AM
ne0 ne0 is offline
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Professional ASP 3.0, chapter 6

In Professional ASP 3.0, in chapter 6 the Active Server Components are noticed. One of them is the "MyInfo" component. When I try to test the ASP files from chapter 6, I always receive an error message. I visited the Microsoft web site and discovered that the MyInfo component has been removed from IIS 5.1 which I'm running. So I removed the <Object> tag for the MyInfo component from the global.asa file but the default.asp file is still not working. What's the problem ?

  #2 (permalink)  
Old July 21st, 2003, 02:27 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Maybe you should post some code (of the default.asp page) and give some more detailed information about your setup and errors you receive. There could be a million reasons for the page not to function, and it's hard to guess which one it is from your description.....

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #3 (permalink)  
Old July 22nd, 2003, 10:44 AM
ne0 ne0 is offline
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Here is the code of the default.asp:

<%@LANGUAGE="VBScript"%>
<HTML>
<HEAD>
<TITLE>The ASP Installable Components</TITLE>
<STYLE TYPE="text/css">
BODY {font-family:Tahoma,Arial,sans-serif; font-size:10pt}
.heading {font-family:Tahoma,Arial,sans-serif; font-size:14pt; font-weight:bold}
.subhead {font-family:Tahoma,Arial,sans-serif; font-size:12pt; font-weight:bold; padding-bottom:5px}
.cite {font-family:Tahoma,Arial,sans-serif; font-size:8pt}
</STYLE>

</HEAD>
<BODY BGCOLOR="#FFFFFF">
<SPAN CLASS="heading">The ASP Installable Components</SPAN>

<DIV CLASS="subhead">This menu is created using the Content Linking Component</DIV>
<%
'create an instance of a Content Linking object
Set objNextLink = Server.CreateObject("MSWC.Nextlink")
%>
<UL>
<%
'get the number of entries in the menu file
intCount = objNextLink.GetListCount("contlink.txt")
'loop through the entries
For intLoop = 1 To intCount %>
  <LI>
  <A HREF="<% = objNextLink.GetNthURL("contlink.txt", intLoop) %>">
  <% = objNextLink.GetNthDescription("contlink.txt", intLoop) %>
  </A>
<%
Next
%>
</UL><P>
The content of the file <B>contlink.txt</B> that defines this menu is:<PRE>
<%
'create an instance of a FileSytemObject object
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
'open the text file as a TextStream object
Set objTStream = objFSO.OpenTextFile(Server.MapPath("contlink.txt") , ForReading)
'read whole file
Response.Write objTStream.ReadAll
objTStream.Close
%>
</PRE>

<SPAN CLASS="cite">&copy;1999 <A CLASS="cite" HREF="http://www.wrox.com/">Wrox Press</A> -
<A CLASS="cite" HREF="http://webdev.wrox.co.uk/default.asp?bookcode=2610">Professional ASP 3.0</A> (ISBN: 1-861002-61-0)</SPAN>
</BODY>
</HTML>


And this is the original global.asa file :


<!-- declare instance of the ASP Counters component with application-level scope
-->
<OBJECT ID="objCounters" RUNAT="Server" SCOPE="Application"
PROGID="MSWC.Counters">
</OBJECT>

<!-- declare instance of the ASP MyInfo component with application-level scope
-->
<OBJECT ID="objMyInfo" RUNAT="Server" SCOPE="Application" PROGID="MSWC.MyInfo">
</OBJECT>

<SCRIPT LANGUAGE="VBScript" RUNAT="Server">

Sub Application_onStart()
End Sub

Sub Application_onEnd()
End Sub

Sub Session_onStart()
End Sub

Sub Session_onEnd()
End Sub

</SCRIPT>


 I have removed the <OBJECT> tag for the MyInfo component(because this componenent is not included in IIS 5.1 which I'm running) and now the code is :


<!-- declare instance of the ASP Counters component with application-level scope
-->
<OBJECT ID="objCounters" RUNAT="Server" SCOPE="Application"
PROGID="MSWC.Counters">
</OBJECT>

<SCRIPT LANGUAGE="VBScript" RUNAT="Server">

Sub Application_onStart()
End Sub

Sub Application_onEnd()
End Sub

Sub Session_onStart()
End Sub

Sub Session_onEnd()
End Sub

</SCRIPT>

This is the error when I try to open the default.asp page with the <OBJECT> tag for MyInfo in the global.asa :

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Error Type:
Active Server Pages, ASP 0134 (0x80004005)
The object has an invalid ProgID of 'MSWC.MyInfo'.
//global.asa, line 9


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Page:
GET /Default.asp

More information:
Microsoft Support


 When I remove the <OBJECT> tag for MyInfo and try to open the page again, the browser starts loading but... It doesn't open anything, even an error message.

Sorry for my elementary questions but still I'm not very good at ASP :)

With many thanks,
Rangel


  #4 (permalink)  
Old July 22nd, 2003, 02:02 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I never used the MyInfo object much myself. I found it to provide less info that I needed, so I have always created (or simulated) objects like this in my own code.

However, a quick scan at Google (your best friend in problem solving) revealed this article after a quick search.


Hope this helps, and if not, feel free to post another message here.

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #5 (permalink)  
Old July 23rd, 2003, 08:37 AM
ne0 ne0 is offline
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Thank you very much for your help.
I've installed this dll, but the page still gives this error:

Active Server Pages, ASP 0224 (0x80004005)
Cannot load Type Library specified in the METADATA tag.
/Default.asp, line 11

Then I found that the path in METADATA tag is wrong - it was : in the sample
and so I changed it to : (which is the right path)

The page gives the error above when the path is wrong but even with the right path for the dll, the browser starts loading the page, but it doesn't display anything. Even an error message
I searched at Google for error 0224 (0x80004005) but I'didn't find anything that solves my problem.
Rangel




  #6 (permalink)  
Old July 23rd, 2003, 08:48 AM
ne0 ne0 is offline
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've found a solution :))))))
The scrrun.dll was simply not registered and I had to done it by myself with regsvr32 scrrun.dll command from the Command Prompt.
Thank you very much for the link, because I leaned the regsvr32 command from there :)))





Similar Threads
Thread Thread Starter Forum Replies Last Post
Professional C# Chapter 15 (#2) Mike Smith BOOK: Professional C#, 2nd and 3rd Editions 1 January 7th, 2004 08:20 PM
Professional ASP 3.0 Kwowie All Other Wrox Books 1 July 15th, 2003 01:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.