Links to .xls files open showing code and not as excel documents

Hi

I have a website set up running on Tomcat, pages are delivered via IIS

When a user clicks on a link to an excel doc it opens as a lot of code and does not start excel on their pcs.

I have looked for a found numerous web.xml files and have added the mime types where relevant.

However this still has not solved the problem, .doc files work fine by the way

any ides of what else could be preventing the files from opening correctly

cimaweb1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

enetadminCommented:
Hi,
Is this a problem only with your particular website? Does the browser open Excel documents from other websites? It looks like the mime types in the browser needs to be fixed. BTW, is this a problem with everyone or just one PC? Also, can you speficy what browser is it? IE or Firefox or something else?

Regards
-eNetadmin
enetadminCommented:
Hi,
Perhaps you can look at this MSKB and get more info about opening Excel files in the native application instead of the browser:

http://support.microsoft.com/?kbid=162059

Regards
-eNetadmin
Program_PoserCommented:
How about adding something like this to the ASP page?

<%
   'Change HTML header to specify Excel's MIME content type
   Response.Buffer = TRUE
   Response.ContentType = "application/vnd.ms-excel"
%>
JeremyT923Commented:
It sounds like the MIME Type for .xls files is not set up correctly in IIS.  Try adding a MIME type for .xls files, and set it to: application/vnd.ms-excel.

Just go into the IIS Manager, right click on the option that has your computer name and (This Computer) on it, and select properties, then click the MIME Types button.

Hope this helps!  :)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.