Excel – Why does Office 2010 fail to open an Excel file

microsoft excelmicrosoft-excel-2010microsoft-office-2010

I have a excel file I've put on a file server. When required i access it via a dll, fill it with some data in background only (through ExecuteExcel functionality).

It used to work before. Recently I changed 2003 office to 2010 office version. After that it started throwing below error.

System.Runtime.InteropServices.COMException (0x80070BBC): Office has
detected a problem with this file. To help protect your computer this
file cannot be opened.

Even now also it works sometimes, and sometime throws above error.

What is the problem here?

Best Answer

Office 2010 file validation requires files or file locations to be trusted. Here is a knowledge base article about it - Error message in Microsoft Office 2010: "Office has detected a problem with this file".

Try adding the location of the file to trusted locations in File > Options > Trust Center > Trust Center Settings > Trusted Locations

Add, remove, or modify a trusted location for your files.

Related Question