website release error

G

Guest

I have a website in VS2005 C#. It runs fine in the debug mode in the IDE. On
creating and installing the release version, I get the following error when I
bring up the website.


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://vaishali/kpamweb/default.aspx'. Line 1, Po...

<%@ page language="C#" masterpagefile="~/kpam.master" autoeventwireup="true"
inherits="_Default, App_Web_m21oc5mn" theme=...

What setting am I missing ? What do I need to do??

Thanks and regards,VKM
 
G

Guest

Hi Juan,

Thanks for the response. It wasn't a typo - just what was coming up in the
error - the comma does not exist in the code.

I needed to run the aspnet_regiis.exe and that has fixed the problem.

Rgds,
VKM
 
G

Guest

WHen you see "The XML Page cannot be displayed" That's because ASP.NET isn't
processing the page and IIS is attempting to serve the raw page ASPX file,
which the browser is interpreting as XML (which is of course, malformed).

So, you need to find out how to make ASP.NET handle the page. In IIS 6.0,
you have to enable the various providers such as ASP.NET, ASP, etc. for the
applicaiton pool.
Peter
 

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

Top