ASP.net works in IE, but not Firefox or Chrome

For some reason, an .aspx page will not work in either Chrome nor Firefox on my computer. However, in IE it works just fine. It's not an issue of logic, but compatibility. A completely blank ASP.net page does not work.

Firefox gives me an XML Parsing Error: not well-formed

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
-^

Chrome just dumps the source code to the screen.

What am I doing wrong here? Help, please!
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
</body>
</html>

Open in new window

spectrumcareAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alfred A.Commented:
Hi,

Can you try removing ContentType="text/html" and ResponseEncoding="utf-8" and try again?
0
spectrumcareAuthor Commented:
I removed them, and I get the same thing: code dumped to the screen in Chrome, XML parsing error in Firefox. IE still works fine. :(
0
Alfred A.Commented:
OK.  Try this link.  Check some of the suggestions such as IIS ASP.NET version setting and if .NET is not registered in IIS and so on.

http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/47f6eb6a-b062-4f4d-8b7f-b4afb1b2725d

There is a possibility that IIS doesn't know how to deal with .NET aspx files.
0
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

Alfred A.Commented:
0
Dave BaldwinFixer of ProblemsCommented:
I hope you're trying to access this thru a Microsoft IIS webserver and not just as a file.  I saved your 'blank' page as BlankASP.aspx on my IIS5.0 Windows 2000 webserver and it works just fine in Firefox and Chrome.  Note that browser doesn't execute the ASP.net code, just HTML and javascript.  The IIS webserver executes the ASP.net code before it sends the HTML to the browser.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
spectrumcareAuthor Commented:
oh my god. *facepalm*

Once I actually uploaded the stupid file, it works like a charm!

Thanks for  figuring this out!
0
Dave BaldwinFixer of ProblemsCommented:
A lot of people do this with ASP and PHP files at first.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.