473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Local ASPX pages won't diaplay - IE and Firefox ask to open or savefile


I have a set of ASPX pages that work fine on my home computer (Vista),
and on a server at work (XP). I just got a new laptop at work (XP) and
these same files don't work on it. I installed IIS and dot.net on my new
computer, but every time I try to access the ASPX pages locally (using
http://localhost/main.aspx in the browser address bar), the browsers
don't display the pages. Instead, a popup box asks if I want to open or
save, and opening with the browser just shows me the code.

This has the feel of an IIS problem, I'm thinking. IIS says that dot.net
version 2 is installed even though I installed version 3.5. I have no
idea why it says that (I tried updating dot.net from the MSDN page, but
it tells me that everything is installed properly). That may be a clue
for someone more knowledgeable than I am, but it has this humble noob
stumped.

As always, thanks so much for any help.
Jun 27 '08 #1
5 9851
Yes, IIS will show .NET2.0, because .NET3.5 is just some extra stuff added
on top of .NET2.0 core.

How do you place the set of ASPX pages to the new coomputer? you need to
make the virtual directory into a application. Have you done that?

"Arch Stanton" <sa**@hill.orgwrote in message
news:aJ******************************@comcast.com. ..
>
I have a set of ASPX pages that work fine on my home computer (Vista), and
on a server at work (XP). I just got a new laptop at work (XP) and these
same files don't work on it. I installed IIS and dot.net on my new
computer, but every time I try to access the ASPX pages locally (using
http://localhost/main.aspx in the browser address bar), the browsers don't
display the pages. Instead, a popup box asks if I want to open or save,
and opening with the browser just shows me the code.

This has the feel of an IIS problem, I'm thinking. IIS says that dot.net
version 2 is installed even though I installed version 3.5. I have no idea
why it says that (I tried updating dot.net from the MSDN page, but it
tells me that everything is installed properly). That may be a clue for
someone more knowledgeable than I am, but it has this humble noob stumped.

As always, thanks so much for any help.
Jun 27 '08 #2
re:
!IIS says that dot.net version 2 is installed even though I installed version 3.5.

The 3.5 version targets the same CLR as the 2.0 version.

re:
!every time I try to access the ASPX pages locally (using http://localhost/main.aspx
!in the browser address bar), the browsers don't display the pages. Instead, a popup box
!asks if I want to open or save, and opening with the browser just shows me the code.

Sounds like ASP.NET isn't registered with IIS.

Open a command window to the .net Framework 2.0 directory
( drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 )

i.e., click the "start" button, then click "run", write "cmd" and hit "Enter".

Then, issue this directory change :

cd\

and then, this one :

cd WINDOWS\Microsoft.NET\Framework\v2.0.50727

Once you're there, write this command :

aspnet_regiis -i

....and hit Enter.

Let us know whether that works...


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/
======================================
"Arch Stanton" <sa**@hill.orgwrote in message news:aJ******************************@comcast.com. ..
>
I have a set of ASPX pages that work fine on my home computer (Vista), and on a server at work (XP). I just got a new
laptop at work (XP) and these same files don't work on it. I installed IIS and dot.net on my new computer, but every
time I try to access the ASPX pages locally (using http://localhost/main.aspx in the browser address bar), the
browsers don't display the pages. Instead, a popup box asks if I want to open or save, and opening with the browser
just shows me the code.

This has the feel of an IIS problem, I'm thinking. IIS says that dot.net version 2 is installed even though I
installed version 3.5. I have no idea why it says that (I tried updating dot.net from the MSDN page, but it tells me
that everything is installed properly). That may be a clue for someone more knowledgeable than I am, but it has this
humble noob stumped.

As always, thanks so much for any help.

Jun 27 '08 #3
It sounds like you may need to repair your IIS mappings.
Here are the details on 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
"Arch Stanton" <sa**@hill.orgwrote in message
news:aJ******************************@comcast.com. ..
>
I have a set of ASPX pages that work fine on my home computer (Vista), and
on a server at work (XP). I just got a new laptop at work (XP) and these
same files don't work on it. I installed IIS and dot.net on my new
computer, but every time I try to access the ASPX pages locally (using
http://localhost/main.aspx in the browser address bar), the browsers don't
display the pages. Instead, a popup box asks if I want to open or save,
and opening with the browser just shows me the code.

This has the feel of an IIS problem, I'm thinking. IIS says that dot.net
version 2 is installed even though I installed version 3.5. I have no idea
why it says that (I tried updating dot.net from the MSDN page, but it
tells me that everything is installed properly). That may be a clue for
someone more knowledgeable than I am, but it has this humble noob stumped.

As always, thanks so much for any help.
Jun 27 '08 #4
ASP.Net 3.5 is an extension to ASP.Net 2, that's why you will see ver.
2 displayed in IIS. That's not a cause to panic.

Check in IIS whether it is handling ASPX pages. I think you will find
it in the extensions section. Orr's article is short and sweet, and it
even gives you a very likely cause.

I hope your situation is remedied. I would have installed windows
afresh by now. That's my solution to most system trouble.
Jun 27 '08 #5

My problem is solved, thanks to an amalgam of several replies. Not only
did your answers solve my immediate problem, they also taught me a few
things I'll need to know as I go along. Thanks to all for taking them
time to help me out.

Grateful Noob :|

Arch Stanton wrote:
>
I have a set of ASPX pages that work fine on my home computer (Vista),
and on a server at work (XP). I just got a new laptop at work (XP) and
these same files don't work on it. I installed IIS and dot.net on my new
computer, but every time I try to access the ASPX pages locally (using
http://localhost/main.aspx in the browser address bar), the browsers
don't display the pages. Instead, a popup box asks if I want to open or
save, and opening with the browser just shows me the code.

This has the feel of an IIS problem, I'm thinking. IIS says that dot.net
version 2 is installed even though I installed version 3.5. I have no
idea why it says that (I tried updating dot.net from the MSDN page, but
it tells me that everything is installed properly). That may be a clue
for someone more knowledgeable than I am, but it has this humble noob
stumped.

As always, thanks so much for any help.
Jun 27 '08 #6

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

Similar topics

2
by: zoltix | last post by:
Hello, I try to send an xml from an aspx pages which generate an xml file. And I tried with this method FileStream fs = new...
2
by: Gayathri | last post by:
Hi I am using MS Access to store the data in an .mdb file. And I observe that, if the .mdb is open, I receive a runtime error whenever I/someone tries to access any of the .aspx pages that needs to...
4
by: Frankie | last post by:
I'm writing a small C# utility application that creates new Web Sites via ADSI. It seems to work just fine for the most part -- meaning that IIS Metabase entries look either identical or "different...
14
by: Mark B | last post by:
Our webhost (www.usbusinessweb.net) had a W2K IIS5 server crash after a scheduled hard-boot occurred during a ms-security patch install overnight. They couldn't get the server working again so they...
5
by: moondaddy | last post by:
I have a website that currently has all static htm pages and nothing will be dynamic for quite some time. This site is made up of a bunch of htm pages. is there any advantage or disadvantage of...
2
by: WT | last post by:
Hello, Could we use 'Embedded resources' with resx files that contain text resources used in aspx pages with the syntaxe: Text="<%$ Resources:ResourcesMy,KEY1 %>" I tryed removing the...
2
by: Joey | last post by:
Hello guys, I am using Microsoft Windows Server 2003 Enterprise edition. Yesterday I installed IIS from the "Application Server" category in Add/Remove Windows components. Afterwards I also...
3
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I have some ASPX pages that I would like to display by browsing to http://localhost/, but whenever I do, all I get is MS's 404 "Webpage cannot be found" page. I have IIS configured so that it...
4
by: ayush patel | last post by:
Hi, I am developing a web application in visual studio 2008. .net 3.5. this application needs to be compatible with both IE and Firefox. I tried implementing but the Aspx pages render...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.