callmeastha
Broken In
i have vista home premium with iis7 installed.i am learning asp.some simple asp pages are running fine but some like the one below give the error
"An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error."
but i have just 1 user account with admin rights.
help!!!!!
the file is as below;
<%@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>
<!-- METADATA TYPE="typelib" FILE="c:\WinNT\System32\scrrun.dll" -->
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<SPAN CLASS="heading">The ASP Installable Components</SPAN><HR>
<!--------------------------------------------------------------------------->
<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>
<!--------------------------------------------------------------------------->
<HR><SPAN CLASS="cite">©1999 <A CLASS="cite" HREF="*www.wrox.com/">Wrox Press</A> -
<A CLASS="cite" HREF="*webdev.wrox.co.uk/default.asp?bookcode=2610">Professional ASP 3.0</A> (ISBN: 1-861002-61-0)</SPAN>
</BODY>
</HTML>
"An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error."
but i have just 1 user account with admin rights.
help!!!!!
the file is as below;
<%@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>
<!-- METADATA TYPE="typelib" FILE="c:\WinNT\System32\scrrun.dll" -->
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<SPAN CLASS="heading">The ASP Installable Components</SPAN><HR>
<!--------------------------------------------------------------------------->
<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>
<!--------------------------------------------------------------------------->
<HR><SPAN CLASS="cite">©1999 <A CLASS="cite" HREF="*www.wrox.com/">Wrox Press</A> -
<A CLASS="cite" HREF="*webdev.wrox.co.uk/default.asp?bookcode=2610">Professional ASP 3.0</A> (ISBN: 1-861002-61-0)</SPAN>
</BODY>
</HTML>