473,797 Members | 3,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.aspx pages not being interpreted

I am just starting with .net. I have done a new install of iis 5.1 and
changed the default document to index.aspx. I have written a simple aspx
document in wwwroot. However, when I browse to 127.0.0.1/, I just get the
code contained in the page displayed in the browser as an xml document.
Here's the contents of index.aspx(this is what is displayed in the browser):

- <html>
- <head>
<title>Simple ASPX Page</title>
</head>
- <body>
- <form runat="server">
<b>Username</b>
<br />
<input id="username" type="text" size="30" runat="server" />
<p />
<b>Comments</b>
<br />
<textarea id="comments" cols="60" rows="10" runat="server" />
<p />
<input type="submit" value="Add Comment" runat="server" />
</form>
</body>
</html>

Jun 30 '08 #1
3 1709
Ok, I found the setting in the IIS snap in to turn on asp.net. Now I get
alternating output. The first time I try to bring up 127.0.0.1/, I get the
code for index.aspx. When I refresh the page, I get this error:

------------------------------------------------------------------------------
-------------------------------------------------------------------
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then
click the Refresh button, or try again later.
------------------------------------------------------------------------------
--

The system cannot locate the resource specified. Error processing resource '
http://127.0.0.1/'.

------------------------------------------------------------------------------
-------------------------------------------------------------------
Every time I refresh the page, it alternates between the two.

Jun 30 '08 #2
Try running these 2 commands from a command window in
the .Net Framework version's directory you're interested in running :

First, run :
aspnet_regiis -u

then, run :
aspnet_regiis -i

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"cheddersla m" <u44600@uwewrot e in message news:8676ff7d7f 308@uwe...
Ok, I found the setting in the IIS snap in to turn on asp.net. Now I get
alternating output. The first time I try to bring up 127.0.0.1/, I get the
code for index.aspx. When I refresh the page, I get this error:

------------------------------------------------------------------------------
-------------------------------------------------------------------
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then
click the Refresh button, or try again later.
------------------------------------------------------------------------------
--

The system cannot locate the resource specified. Error processing resource '
http://127.0.0.1/'.

------------------------------------------------------------------------------
-------------------------------------------------------------------
Every time I refresh the page, it alternates between the two.

Jun 30 '08 #3
It sounds like you may need to repair your IIS mappings.
Here are the details showing how to do that:
http://SteveOrr.net/faq/3in1.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
http://iPhonePlaza.net
"cheddersla m" <u44600@uwewrot e in message news:8676ea2c52 e00@uwe...
>I am just starting with .net. I have done a new install of iis 5.1 and
changed the default document to index.aspx. I have written a simple aspx
document in wwwroot. However, when I browse to 127.0.0.1/, I just get the
code contained in the page displayed in the browser as an xml document.
Here's the contents of index.aspx(this is what is displayed in the
browser):

- <html>
- <head>
<title>Simple ASPX Page</title>
</head>
- <body>
- <form runat="server">
<b>Username</b>
<br />
<input id="username" type="text" size="30" runat="server" />
<p />
<b>Comments</b>
<br />
<textarea id="comments" cols="60" rows="10" runat="server" />
<p />
<input type="submit" value="Add Comment" runat="server" />
</form>
</body>
</html>
Jul 2 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1213
by: Dave Uphoff | last post by:
I noticed that when I process my aspx web pages in Netscape that the page is not interpreted correctly. Text boxes that are supposed to have no border, have borders, the font for arial is one size larger than what it is supposed to be, etc. Doe Netscape plan to fully support the Net Framework system Dave Uphoff
1
2213
by: Paul | last post by:
Title: What are the Consequences of Aspx page separate from app DLL Hi JL; I am working on a big asp.net application. When we migrate the dll (or dlls) to the production server, all users who are login into the application are pumped off. In fact we must close down the server (to preserve users from being logged on and thinking they are updating data when it is in fact lost when we move the dlls to the the applications bin directory)....
7
1565
by: Bennett Haselton | last post by:
If you create a ASP.Net Web application in Visual Studio .Net, you apparently have to specify the target as a directory on a web server, e.g. www.hostname.com/dirname, with "dirname" being the name of the locally created project. I can't find a way to create an .aspx file and publish it straight to the Web root directory in VS .Net. And yet of course there are many sites with .aspx files located in the Web root directory. Does that...
7
2349
by: J Smithers | last post by:
I have several ASPX pages (with code-behind logic) that I reuse amongst many Web sites on the same production server. Currently each Web site has its own copy of these aspx pages. I was thinking that it might be a good idea to move these common aspx pages to a new folder and then make them accessible via a new virtual directory in each Web site. Is this a good idea? Bad idea? Thoughts, opinions? Thanks!
2
2179
by: Janusz Jezowicz | last post by:
Hello! I would like to have one page on the server, which would be a target processing page for a number of other aspx pages. E.g Processing page \portal_page.aspx Target pages
29
3682
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form id="Form1" method="post" runat="server"> <%
3
1550
by: Mike Dee | last post by:
I posted this back in November 2005 a couple times but did not get any responses. I'm hoping someone here can please shed some light on this. I'm new to index server and can't get any DocTitle value back from index server (it is returned as null) for all my aspx pages. It do get the values from inside the <title> tags from my static .htm pages just fine. My aspx pages however are generated from master pages where the title tag is set...
4
2200
by: orianavim | last post by:
Hi, I'm try to find an easy efficient way to generate my web pages dynamically from an xml/text file. What exactly I want? I want that whenever a pages is loaded it will go and read an xml/text file which will include the style of the page (tables,div, web controls, etc) and will build the page according to that. Meaning that
13
3566
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains some javascript code that calls window.open. I pass the resource url of page B to Page A's window.open call. Page B is then loaded and executed but none of the server-side code is rendered. If I view the source of the page, the code (and page...
0
9536
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10245
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10205
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9063
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7559
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5458
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.