2

So I just upated to Firefox 4.0 and now my site seems to not be serving ASPX files incorrectly.

Instead of serving them as expected I'm prompted to download them. Other sites seem to be fine, and other browsers serve my pages as expected.

I'm thinking it has to do with some IIS settings not being set properly. (I'm using IIS6.) Any thoughts?

EDIT: Just noticed that the content-type of the page is coming back at "application/vnd.wap.xhtml+xml" instead of "text/html" if that means anything to anyone...

Ev.
  • 7,109
  • 14
  • 53
  • 87
  • I am having the same issue on two different sites. The sites are also being served by IIS 6 and using the FiftyOne Degrees mobile component. – James Lawruk Mar 30 '11 at 15:31

3 Answers3

2

It sounds like .net needs to be re-registered with IIS. The command for this is: C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -i

A warning though: this will perform the equivalent of an iisreset. So be prepared for your web server to be down temporarily.

In my sample above, note that I am using .Net 2.0. You may have to run aspnet_regiis from the 4.0 folder if you are using that version of .net (I have had something as simple as installing .net 4.0 removing my 2.0 iis bindings).

Bobby D
  • 2,129
  • 14
  • 21
  • thanks heaps, but unfortunately registering IIS didn't work... Also, I just noticed that the content-type of the page is coming back at "application/vnd.wap.xhtml+xml" instead of "text/html" if that means anything to you... – Ev. Mar 28 '11 at 04:28
  • @Ev without actually looking at the server, the only other things I could suggest checking would be permissions on the filesystem (ensure that the IUSR account has access to the directory in which the site lives), and checking the Event Viewer for any processing errors. – Bobby D Mar 28 '11 at 12:33
  • Thanks again for all the great ideas. I'll give that ago now.Although I'm starting to suspect it might have something to do with the DLL we use to direct traffic to the mobile site... – Ev. Mar 28 '11 at 23:57
2

Okay, this wasn't an obvious one, but I hope this helps someone.

My site uses a 3rd Party mobile device detection called FiftOne Degrees (http://51degrees.mobi).

This app uses some files (web_browsers_patch.xml and wurfl.xml.gz) to help browsers render the page correctly especially for mobile devices. My files were 6 months out of date and the new version of FireFox was not accounted for, causing the content-type to be set as WAP instead fo HTML.

So I updated to the newest versions of the files (from http://wurfl.sourceforge.net/) ... and it actually didn't fix the problem... BUT I've checked the "last updated" dates in these files and the last time they were updated was before FF4 came out, so I'll have to wait for the newer version of these files to come out (or maybe hack the files up a little to account for the updated User Agents).

For the time being (on test), I've just switched off the mobile device detector in the web.config.

Hope that helps someone.

Thanks everyone for the help!

EDIT: I raised another question to find a solution to this out of date WURFL. There's a few work arounds in there. Check out: WURFL not detecting FireFox 4 successfully

Community
  • 1
  • 1
Ev.
  • 7,109
  • 14
  • 53
  • 87
1

I'm by no means an IIS expert, but I think this is usually caused by the MIME type being set incorrectly for ASPX pages, or the ASP.NET parser not running correctly (or at all).

Karl Nicoll
  • 16,090
  • 3
  • 51
  • 65
  • 1
    There isn't really a MIME-type for aspx pages, but you're right on the latter bit. You can verify this by editing the site properties, going to the "Home Directory" tab, clicking on the "Configuration" button, and ensuring that a handler is assigned to the aspx extension. – Bobby D Mar 28 '11 at 00:55
  • Lets just hope he's coded in the code behind methodology - otherwise free source! – Jeremy Mar 28 '11 at 01:09
  • and Bobby: Thanks for the help guys. I can confirm that the extension mapping in IIS for aspx pages is aspnet_isapi.dll (as expected). – Ev. Mar 28 '11 at 04:49