Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Office 2007 files behaves as compressed folder



Having a problem on a customers site, the customer have uploaded Excel 2007 files (.xlsx) on their intranet. So far so good.
When trying to download a file, it's saved as a compressed folder and not a Excel 2007 file.

It is a common problem however, which usually is fixed by adding mime types for .xlsx in IIS, which I have done. And it doesn't work, the files still try to download as a compressed folder.

If I copy a .xlsx file to the webroot directly on the server, bypassing Episerver, it does work however. When using EPiservers File manager it doesn't.

Anyone seen this problem before and know of a fix?



Oct 28, 2009 14:13


One of my customers also recently reported this problem. It turns out the problem is caused by EPiServer returning the wrong MIME type when downloading the file. This can be seen by using Fiddler and downloading an Office 2007 file from both IIS and EPiServer.

I registered the problem with EPiServer support, and they just got back to me with a fix.

1. The problem is resolved when MS mime extensions are loaded on the server.
Either install MS Office Compatibility Pack for Word, Excel and Powerpoint 2007 - - or install Office 2007 on the server."

I have just tested the compability pack on our test server, and it seems to solve the problem. EPiServer support also said they would register it as a bug, so hopefully this won't be necessary in a future version of EPiServer.


Nov 06, 2009 10:40

Thanks Johannes, we actuelly solved this problem a few days ago by installing that exact pack. Just forgot adding that to this thread.

But it's good that you answered this thread if others are experiencing the same problem, seeing as more and more probably are starting  to use Office 2007.



Nov 06, 2009 10:46

Did you install this on a server which allready had office installed? My server does not have Office, and I'm a bit sceptical to install the compability pack...

Nov 24, 2009 13:26

Hi Lars,

No, our server did not have Office installed. I believe that this problem only occurs on servers that doesn't have Office installed.
Have tried this on two servers where office wasn't installed, and it worked on both.


Nov 24, 2009 13:40

In my case the servers did not have any Office product installed, and so far there seems to be no negative effects. I think what happens is that the compatibility pack also updates a common Windows component used to detect file mime types, allowing it to recognize the files as Office files rather than zip archives which they actually are as well.

Nov 24, 2009 13:42

One more question, did you try it on a win 2008 server?

Nov 24, 2009 14:09

No, it was Win 2003 in my case.

Nov 24, 2009 14:20

Same as Johannes here, Win 2003. If you check the link it doesn't actually list win 2008 server as a supported OS. Not sure if will work anyway.

If you decide to try it, please reply with your success/failure. Good to know.



Nov 24, 2009 14:24

I can confirm that it works on win 2008 server :)

Dec 09, 2009 11:07

Very nice to hear Lars. Oh, and thanks for the info :)

Dec 09, 2009 11:09

Has anyone of you tried to download a word template file .dotx ?

We still have this problem for .dotx files on IIS6 Win 2003 server even after installing the Compability pack.

Edited, May 05, 2010 10:44

I made my own  small httpHandler that add the the right contenType when requesting a xlsx document and it seems to work fine.

By doing this you don't need the Office Compatibility Pack on the server

I'll test it some more, but so far so good

Oct 14, 2010 16:07
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.