"Could not decrypt file." error on non-password protected file

J

Jo

I am using OleDb to connect to an Excel file from my VB.NET code and
am receiving an error message saying "Could not decrypt file."

The workbook is definitely not password protected - I even tried
adding password protection and then removing it again but this did not
resolve the problem.

It can be worked around by having the workbook open while trying to
make the connection, but this is not a practical solution as
eventually this code needs to run on our webserver, where Excel
automation is not permitted.

Does anyone have any suggestions/solutions for this error?

Jo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top