IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 14th, 2006, 06:06 PM
rick barclay rick barclay is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Freehold, N.J.
Posts: 68 rick barclay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 11 m 8 sec
Reputation Power: 7
My aspx page wont display

The file below resides C:/inetpub/wwwroot
Code:
<script language="VB" runat="server">
Sub Page_Load()
 Response.Write ("First ASP.NET Line <br />")
 Response.Write ("Second ASP.NET Line <br />")
 Response.Write ("Third ASP.NET Line <br />")
End Sub
</script>
<html>
<head>
  <title>inserting ASP.NET code Example </title></head>
<body>

Line1: First HTML Line <br />
Line2: Second HTML Line <br />
Line3: Third HTML Line <br />

</body>
</html> 


When I type in the URL of my virtual server:http://rick/messageHTML.aspx, I get the following error:

Cannot Display Page
"Only one top level element is allowed in an XML document. Error processing resource 'http://beg/messageHTML.aspx'. Line 8,..."

I believe "Line 8..." refers to the <html> tag.

This code, however, displays propely when I use Visual Studio
2005. It uses the URL: http://localhost:1358/wwwroot/messageHTML.aspx

Can someone tell me why I'm getting this error? Do I need to reference the aspx file via a separate html page?

Any help is much appreciated. Thanks.

Reply With Quote
  #2  
Old January 14th, 2006, 06:10 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,849 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 23 h 58 m 10 sec
Reputation Power: 766
The html tag should be above the script tag, for one thing, and the script should probably be in the head block.
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old January 14th, 2006, 06:28 PM
rick barclay rick barclay is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Freehold, N.J.
Posts: 68 rick barclay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 11 m 8 sec
Reputation Power: 7
Quote:
Originally Posted by Doug G
The html tag should be above the script tag, for one thing, and the script should probably be in the head block.


Thanks for the quick reply.

When I put the html tag up top, all I get is source code ie, the page displays as source.
If I put the file in C:\rick (my virtual folder) and then type in http://localhost/rick/messageHTML.aspx, the page displays the html but not the asp.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > My aspx page wont display


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway