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 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" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>


Open in new window

Who is Participating?

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

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:

Can you try removing ContentType="text/html" and ResponseEncoding="utf-8" and try again?
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. :(
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.

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

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

Alfred A.Commented:
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 code, just HTML and javascript.  The IIS webserver executes the code before it sends the HTML to the browser.

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!
Dave BaldwinFixer of ProblemsCommented:
A lot of people do this with ASP and PHP files at first.
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.