ASP page showing up as XML...?

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 3
Reputation: shinyhappygem is an unknown quantity at this point 
Solved Threads: 0
shinyhappygem's Avatar
shinyhappygem shinyhappygem is offline Offline
Newbie Poster

ASP page showing up as XML...?

 
0
  #1
Jul 21st, 2007
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
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,580
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Solved Threads: 52
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

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

 
0
  #2
Jul 22nd, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 3
Reputation: shinyhappygem is an unknown quantity at this point 
Solved Threads: 0
shinyhappygem's Avatar
shinyhappygem shinyhappygem is offline Offline
Newbie Poster

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

 
0
  #3
Jul 22nd, 2007
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
xmlerror.JPG  
Anything worth doing, is worth doing now.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,580
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Solved Threads: 52
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

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

 
0
  #4
Jul 22nd, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,155
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 530
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is online now Online
Moderator

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

 
0
  #5
Jul 22nd, 2007
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
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 29
Reputation: aravindkishore is an unknown quantity at this point 
Solved Threads: 1
aravindkishore aravindkishore is offline Offline
Light Poster

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

 
0
  #6
Jul 22nd, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,155
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 530
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is online now Online
Moderator

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

 
0
  #7
Jul 22nd, 2007
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)
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC