shows excel format error if I read .xls or .xlsx file from IIS

Hi

I am trying to read xlsx file from IIS, it show me error like "The file you are tyring to open .xlsx is in a different format than specified by the file extension. verify the file is not corrupted and is from trusted source before opening the file. Do you want to open the file now?" if I give url likehttp://dev.mysite.com/test.xlsx?id =1.

But it works fine if I give url likehttp://dev.mysite.com/test.xlsx (without querystring)

This error shows if I open xls or xlsx also.

I have office 2007 in my system

Is the problem with office 2007?

Can any help me on this issue..

Thanks

KVReddy

[991 byte] By [kvreddy] at [2008-1-4]
# 1

I'm haveing the same problem,

I've had nothing but problems since I upgraded to office 2007.
Let me know if you figure anything out.

tmacker_mackdaddy at 2007-9-26 > top of Msdn Tech,Feedback for forums and MSDN websites,Where Is the Forum For...?...
# 2

Move the thread from Visual Basic IDE, Both of the customers don't mention any relationship with VB.NET IDE but Office 2007 product. Hope that others can give some help on the problems.

Thanks for your questions and answers.

BrunoYu-MSFT at 2007-9-26 > top of Msdn Tech,Feedback for forums and MSDN websites,Where Is the Forum For...?...
# 3

add new registry key as below.

HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\OFFICE\12.0\EXCEL\SECURITY
Rightclick --> new>DWORD>
add key ExtensionHardening
value = 0

make sure the key word without any spaces

enjoy

kvreddy at 2007-9-26 > top of Msdn Tech,Feedback for forums and MSDN websites,Where Is the Forum For...?...
# 4

Hi reddy,

Whatever you commented there worked too good.I am working with a portal which is having excel 2003 interfaces to do the file operation causing the incompatibility and warning messages.I am able to suppress that with the registry config change.

Regards

Ranjith

RanjithAbraham at 2007-9-26 > top of Msdn Tech,Feedback for forums and MSDN websites,Where Is the Forum For...?...