By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,971 Members | 1,451 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,971 IT Pros & Developers. It's quick & easy.

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

P: n/a

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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a

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 discussion thread is closed

Replies have been disabled for this discussion.