473,387 Members | 1,574 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,387 software developers and data experts.

Home page on localhost shows script instead of webpage

Hello friends,

I had my laptop reformatted and rebuilt recently. After this, when I try to
open my asp.net web application by using http://localhost, it shows the
script code in the browser instead of the web page. I have enabled the
default document as .aspx under the IIS settings.

Any ideas as to what might be causing the problem ?

Thanks,
Hemil.
Nov 19 '05 #1
3 1284
Assuming .NET is still installed, it sounds like the script mapping has come
undone. The fix is here:

How To Repair IIS Mapping After You Remove and Reinstall IIS

http://support.microsoft.com/default...b;en-us;306005

PRB: ASP.NET Pages Exhibit Unexpected Behavior Because the Server-Side Code
Is Not Processed

http://support.microsoft.com/default...b;en-us;325093
"Hemil" <He***@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
Hello friends,

I had my laptop reformatted and rebuilt recently. After this, when I try
to
open my asp.net web application by using http://localhost, it shows the
script code in the browser instead of the web page. I have enabled the
default document as .aspx under the IIS settings.

Any ideas as to what might be causing the problem ?

Thanks,
Hemil.


Nov 19 '05 #2
Hi Ken,

I repaired the IIS mapping and registered the dll as suggested by the
articles. It's working fine now.

Thank you very much for your prompt response. Very much appreicated.

Cheers
Hemil.

"Ken Cox [Microsoft MVP]" wrote:
Assuming .NET is still installed, it sounds like the script mapping has come
undone. The fix is here:

How To Repair IIS Mapping After You Remove and Reinstall IIS

http://support.microsoft.com/default...b;en-us;306005

PRB: ASP.NET Pages Exhibit Unexpected Behavior Because the Server-Side Code
Is Not Processed

http://support.microsoft.com/default...b;en-us;325093
"Hemil" <He***@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
Hello friends,

I had my laptop reformatted and rebuilt recently. After this, when I try
to
open my asp.net web application by using http://localhost, it shows the
script code in the browser instead of the web page. I have enabled the
default document as .aspx under the IIS settings.

Any ideas as to what might be causing the problem ?

Thanks,
Hemil.


Nov 19 '05 #3
Hi Hemil,

Glad to hear you got going.

Thanks for letting us know.

Ken
Toronto

"Hemil" <He***@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
Hi Ken,

I repaired the IIS mapping and registered the dll as suggested by the
articles. It's working fine now.

Thank you very much for your prompt response. Very much appreicated.

Cheers
Hemil.

"Ken Cox [Microsoft MVP]" wrote:
Assuming .NET is still installed, it sounds like the script mapping has
come
undone. The fix is here:

How To Repair IIS Mapping After You Remove and Reinstall IIS

http://support.microsoft.com/default...b;en-us;306005

PRB: ASP.NET Pages Exhibit Unexpected Behavior Because the Server-Side
Code
Is Not Processed

http://support.microsoft.com/default...b;en-us;325093
"Hemil" <He***@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
> Hello friends,
>
> I had my laptop reformatted and rebuilt recently. After this, when I
> try
> to
> open my asp.net web application by using http://localhost, it shows the
> script code in the browser instead of the web page. I have enabled the
> default document as .aspx under the IIS settings.
>
> Any ideas as to what might be causing the problem ?
>
> Thanks,
> Hemil.



Nov 19 '05 #4

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

Similar topics

5
by: MarBo | last post by:
Hi My index page has got scrollbars turned on even when there is not enough there to scroll. How do I remove this? www.marbo.co.uk
3
by: SGA Smele | last post by:
Hello, Now I think that there is a simple answer to my problem, but I don't know what it is and I can't work out what I should be searching for on the internet to read up some more about it. ...
1
by: IWP506 | last post by:
Hello I want to create a customizable home page. I'd like to be able to put together a template in frontpage, then put it on the web. I want to put in HTML comments like <!-- home page element...
4
by: Eddie | last post by:
Hello, there. I'm just a newbie for ASP. I made a webpage with VS2005. The page contains nothing. It's a default page when I created webpage in the VS2005. IE shows me error message that he...
23
by: Peter | last post by:
I have a problem with a page show_image.asp that returns a jpg image under Windows XP Pro SP2. The page sets content type as: Response.ContentType = "image/jpg" While this works perfectly fine...
1
by: Loc108 | last post by:
I have mysql 5 and php 5.1.2 with chinese chars in utf8 on mysql. Browsing the tables in phpmyadmin shows correct chinese characters. However, a custom php page to display them shows only ??? At...
3
by: lee9372 | last post by:
Is there a way to change default home page under Xampp, so that when I type http://localhost it would go to a home page other than page with popup asking for Xampp authorization.
0
by: phil469 | last post by:
I'm having an issue when trying to read a file in a user's homedir from a cgi script. I have a virtual host section in my httpd.conf file which I'll include. The cgi script is a very basic script...
8
by: Cirene | last post by:
I have 1 master page in the root of my website that I would like to share with all pages, even those in my /admin and /client directories. But when pages in the subdir's are viewed the img, css,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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?
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.