Office 2007 files behaves as compressed folder

Vote:
 

Hi,

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?

 

Thanks,
Fredrik

#34093
Oct 28, 2009 14:13
Vote:
 

Hi,

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.

"Workaround:
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 -
http://www.microsoft.com/downloads/details.aspx?FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=en - 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.

Johannes

#34405
Nov 06, 2009 10:40
Vote:
 

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.

Thanks!

/Fredrik

#34406
Nov 06, 2009 10:46
Vote:
 

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...

#35017
Nov 24, 2009 13:26
Vote:
 

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.

/Fredrik

#35019
Nov 24, 2009 13:40
Vote:
 

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.

#35020
Nov 24, 2009 13:42
Vote:
 

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

#35023
Nov 24, 2009 14:09
Vote:
 

No, it was Win 2003 in my case.

#35024
Nov 24, 2009 14:20
Vote:
 

Same as Johannes here, Win 2003. If you check the link http://www.microsoft.com/downloads/details.aspx?FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=en 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.

 

/Fredrik

#35025
Nov 24, 2009 14:24
Vote:
 

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

#35402
Dec 09, 2009 11:07
Vote:
 

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

#35403
Dec 09, 2009 11:09
Vote:
 

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.

#39164
Edited, May 05, 2010 10:44
Vote:
 

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

#44777
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.