wierd error.....help please.....

  • Thread starter John Pether (john@
  • Start date
J

John Pether (john@

have been working with a site and today started getting an error when uploaded page on the live server...everything works well locally...

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'http://www.bchandbook.com/kalamunda/cats.asp'. Line 3, Position 2

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
-^

the top of the page looks like this...

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

Any ideas how to get rid of this??? is drivin me mad....have been at it for an hour or two....





**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
J

John Pether (john@

??

this is an asp page made in dreamweaver mx?? It is not asp.net??

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
C

Chris Barber

The @Language="VBScript" declaration is a server-side declaration that
defines the default script engine.

You can remove it if you know that your default script engine is VBScript
(ASP).

Chris.

John Pether said:
??

this is an asp page made in dreamweaver mx?? It is not asp.net??

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...
 
J

John Pether (john@

it wont let me see source...just says the xml file is unavailable for viewing

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
B

Bob Barrows

John said:
it wont let me see source...just says the xml file is unavailable for
viewing

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...

My mistake. I didn't realize you were dealing with a file. I thought you
were doing a response.write using contenttype = text/xml.

What happens if you just remove the <%Language... tag?
 
B

Bob Barrows

Bob said:
My mistake. I didn't realize you were dealing with a file. I thought
you were doing a response.write using contenttype = text/xml.

What happens if you just remove the <%Language... tag?

Actuall, just move this tag to the top of the page, BEFORE the xml tags
begin.
 
M

Mark Schupp

You might check the versions of MSXML between the server that works and the
one that doesn't.

--
Mark Schupp
--
Head of Development
Integrity eLearning
Online Learning Solutions Provider
(e-mail address removed)
http://www.ielearning.com
714.637.9480 x17


John Pether said:
thankseveryone for trying to help but am still struggling with this one:(:(

The page is an asp page that displays a dynamic list. It is xhtml
compliant and was made in dreamweaver mx.
I have pasted the full page below, basically it collects 2 sets of data
from a sql server using stored procs on the sql server. These pages work
fine locally and I have just uploaded to another host and again they worked
fine, the only difference I can find betweeen the hosts that work and the
one that doesn't is that the one that is not working does not have the .net
framework installed, but as this is an asp page I am confused as to why that
would effect the page and give an xml error!!!!
<code>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@language="vbscript" codepage="1252"%>

<!--#include file="../Connections/****.asp" -->
<%
Dim GetCategories__CatID
GetCategories__CatID = "1"
If (Request.QueryString("parentcatid") <> "") Then
GetCategories__CatID = Request.QueryString("parentcatid")
End If
%>
<%
Dim GetCategories
Dim GetCategories_numRows

Set GetCategories = Server.CreateObject("ADODB.Recordset")
GetCategories.ActiveConnection = MM_BCH_STRING
GetCategories.Source = "{call dbo.GetCategories(" +
Replace(GetCategories__CatID, "'", "''") + ")}"
GetCategories.CursorType = 0
GetCategories.CursorLocation = 2
GetCategories.LockType = 1
GetCategories.Open()

GetCategories_numRows = 0
%>
<%
Dim GetSubCatName__CatID
GetSubCatName__CatID = "1"
If (Request.QueryString("parentcatid") <> "") Then
GetSubCatName__CatID = Request.QueryString("parentcatid")
End If
%>
<%
Dim GetSubCatName
Dim GetSubCatName_numRows

Set GetSubCatName = Server.CreateObject("ADODB.Recordset")
GetSubCatName.ActiveConnection = MM_BCH_STRING
GetSubCatName.Source = "{call dbo.GetSubCategory(" +
Replace(GetSubCatName__CatID, "'", "''") + ")}"
GetSubCatName.CursorType = 0
GetSubCatName.CursorLocation = 2
GetSubCatName.LockType = 1
GetSubCatName.Open()

GetSubCatName_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 20
Repeat1__index = 0
GetCategories_numRows = GetCategories_numRows + Repeat1__numRows
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Choose a Category</title>
<link href="../styles/****.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="contentwrap">
<h1><%=(GetSubCatName.Fields.Item("CategoryName").Value)%></h1>
<div class="content">
<table width="100%" border="0" cellspacing="2" cellpadding="4">
<%
While ((Repeat1__numRows <> 0) AND (NOT GetCategories.EOF))
%><tr>
<td><a href="listing.asp?parentcatid=<%=
Request.QueryString("parentcatid")%>&catid=<%=(GetCategories.Fields.Item("ca
tID").Value)%>"> said:
</tr><%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
GetCategories.MoveNext()
Wend
%>
</table>


</div>
</div>
</body>
</html>
<%
GetCategories.Close()
Set GetCategories = Nothing
%>
<%
GetSubCatName.Close()
Set GetSubCatName = Nothing
%>
</code>

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top