1

i am tring to read excel file but the iis7 is giving this error:

"Microsoft Office Excel cannot access the file 'D:\Demosites\Domaininterface\Keywordsfolder\keywords2172011 23841 PM.xlsx'. There are several possible reasons: • The file name or path does not exist. • The file is being used by another program. • The workbook you are trying to save has the same name as a currently open workbook."

someone know about this?

raoisrar
  • 47
  • 6
  • There are several possible reasons: • The file name or path does not exist. • The file is being used by another program. • The workbook you are trying to save has the same name as a currently open workbook. – jevakallio Feb 17 '11 at 11:07
  • but this same code is working in ii6 – raoisrar Feb 17 '11 at 11:18

1 Answers1

0

Since the path is explicit, it sounds like a permissions issue - simply: the account that the application / app-pool is running as (in IIS) doesn't have access to that folder.

However, unless it has changed recently, you should note that Excel is not supported for use on a server - it is desktop software, and you may run into a multitude of issues using it on a server. And I have no idea whether this would be a licensed scenario ;p

Marc Gravell
  • 1,026,079
  • 266
  • 2,566
  • 2,900