• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1369
  • Last Modified:

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

0
spectrumcare
Asked:
spectrumcare
  • 3
  • 2
  • 2
1 Solution
 
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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now