Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML 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
Old April 14th, 2004, 12:45 AM
Registered User
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default <%Response.ContentType...Error


I've been trying to use a few ASP codes I found online about storing cookies on cell phones and everytime I either open it on my web browser or Openwave simulators, i have the following error...

"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://students.ist.psu.edu/~lqc100/exam.asp'. Line 1, Position 2

<% Response.ContentType = "text/vnd.wap.wml" %>

This is the code...
"<% Response.ContentType = "text/vnd.wap.wml" %>
<?xml version="1.0"?>
<card id="card1" title="Session">
Session("TimeLogon") = now
Response.Write "You are logged on at " & _

Why is that? Thank you for any input.

Old April 14th, 2004, 03:42 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi Lucy,

Look at the source of the page in the browser. What do you see?

I think you'll still see the ASP source and not its output, which means that the page is not processed by the server. Is your server setup correctly to handle ASP? What OS and Web server do you have?

Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Come With Us by The Chemical Brothers (Track 1 from the album: Come With Us)

Old April 14th, 2004, 08:19 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts

Like lucy's other post- this is in the wrong forum. I am going to move it to the right one.

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
Old April 14th, 2004, 10:32 AM
Registered User
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Imar,

The server I'm using is a server provided by my school. I'm not exactly sure why this happens but when I saved another code as .asp but begins with <!xml.. and no <%Response.ContentType, it worked fine even though it has .asp extension. I just found out one of the two servers does not support ASP however the .asp file which begins with <!xml... worked on a non asp server..? If anyone replies with their email, I can send you my screen name. That's the best way to reach me and I'm very limited on time with this project. Thank you.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Webresponse contenttype different from request mikehsu317 C# 6 September 27th, 2006 10:42 AM
Response.Write output is of <body></body> yoord BOOK: Beginning ASP.NET 1.0 0 October 13th, 2004 07:06 AM
Problem with Response.ContentType nagesh_vasa XML 1 May 23rd, 2004 01:41 PM
Help with excel using response.contenttype YoungLuke Classic ASP Basics 0 October 2nd, 2003 11:16 AM
Response.ContentType jcsierra ASP.NET 1.x and 2.0 Application Design 0 September 8th, 2003 11:24 AM

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