So, you are still running IE6 (as many Enterprises still are) on the desktop and whenever you attempt to export certain file types from a SQL Reporting Services web site you are prompted to save "Reserved.ReportViewerWebPart.axd". To the average user this would probably halt the experience and may even prompt a call to the helpdesk (if you're lucky, otherwise they might not say anything at all and just never use your nifty reporting site ever again). I've been getting this error for quite awhile now and, being only a minor nuisance, I would just rename the file to the appropriate name/extension and go on about my business. This morning I finally got tired of it and decided to do something about it.
It turns out that "rniersbach" was kind enough to file a bug in Connect on this very problem. The status of this bug is "Resolved (Won't Fix)" and the Microsoft tech assigned this bug was kind enough to list two workarounds:
- Upgrade to IE 7.0 - not exactly an option in most corporate environments if the standard remains IE 6, or
- Delete the .axd file type from the list of file types IIS compresses - now here is an option an SSRS Admin should be able to influence
The feedback goes on to reference the following TechNet article on how to accomplish this:
Customizing the File Types IIS Compresses
I found the instructions a little too high level, so for both general consumption and my own blog-term memory, I'll describe how to fix this. If you crack open the metabase (%windir%\system32\inetsrv\metabase.xml) you can find the following section:
Notice that the offending parameter here is under HcScriptFileExtensions. The safe way to eliminate this is to run the following commands from the command prompt:
cd \Inetpub\AdminScripts
cscript adsutil.vbs SET W3SVC/Filters/Compression/gzip/HcScriptFileExtensions "asp exe"
In order to get the change to take effect I had to follow this with an IISRESET as well; however someone more IIS savvy might know of a way around this last step.
That's it - now you can export without having the annoying AXD problem!