944,124 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1353
  • ASP.NET RSS
Jul 21st, 2007
0

ASP page showing up as XML...?

Expand Post »
Hi all,

I warn you now, I'm a newbie, so please be gentle!!

I've installed Visual Studio and the .NET framework, started IIS, saved my test aspx file in a folder in the Inetpub/wwwroot/.. folder. When I run my test asp page (just a simple html page saved with a .aspx extension) it shows up as XML... what am I missing?? There's patently something I'm doing wrong... any pointers?

gem
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shinyhappygem is offline Offline
3 posts
since Jul 2007
Jul 22nd, 2007
0

Re: ASP page showing up as XML...?

I think it has to have the <%@ Page ... > directive so that the ASP parser knows to interpret it. Just make a Default.aspx and you'll see how it's got that at the very beginning of the page. And if you've got VS, then there's no reason not to just use it to create your pages; doing it the hard way will just get in the way and cause silly things like this.
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Jul 22nd, 2007
0

Re: ASP page showing up as XML...?

Thanks for your reply!

I took your advice and created a brand new aspx page in VS, leaving the standard <%@ Page... declaration at the top. I try to run the page, and it's still trying to output as xml, only this time it's throwing an error because it doesn't like the "%" and is claiming it's badly formed xml - I've attached the error message that I'm getting.

It just seems like there's something fundamental that I have set up wrongly, or something that I haven't set up at all...

Any ideas?
Attached Thumbnails
Click image for larger version

Name:	xmlerror.JPG
Views:	11
Size:	40.4 KB
ID:	3779  
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shinyhappygem is offline Offline
3 posts
since Jul 2007
Jul 22nd, 2007
0

Re: ASP page showing up as XML...?

That's just really weird. I have no idea why it would do that. Maybe double-check your configs, but other than that I'm out of ideas. Sorry I can't help
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Jul 22nd, 2007
0

Re: ASP page showing up as XML...?

you havent configured IIS right

i had this before with server 2003. it was set up for ASP not ASP.NET so showed the XML instead of parsing it
Moderator
Featured Poster
Reputation Points: 1800
Solved Threads: 575
Moderator
jbennet is offline Offline
16,534 posts
since Apr 2005
Jul 22nd, 2007
0

Re: ASP page showing up as XML...?

This is because ,I think you installed IIS after you installed the VS. If,so try configure IIS using ASPNETREGIIS utility.At VS Command prompt type

:\>ASPnet_Regiis -i

this will configure your IIS.

I am not sure this will solve your problem.But try this
Reputation Points: 10
Solved Threads: 1
Light Poster
aravindkishore is offline Offline
29 posts
since Feb 2007
Jul 22nd, 2007
0

Re: ASP page showing up as XML...?

no you need to set up IIS for .NET, IIS by default only does classic ASP (or at least, server 2003 does it this way, not sure about xp pro)
Moderator
Featured Poster
Reputation Points: 1800
Solved Threads: 575
Moderator
jbennet is offline Offline
16,534 posts
since Apr 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: asp.net and frames
Next Thread in ASP.NET Forum Timeline: how to store and retrieve data from cookies





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC