1

I Have my Dot Net application where I am opening Excel file by fetching path from DB on the click of Button, It works fine, but when I host my application in IIS then i am getting following exception-

 System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC 
 at Excel.Workbooks.Open(String Filename, Object UpdateLinks, Object ReadOnly, 
                          Object Format, Object Password, Object WriteResPassword, 
                          Object IgnoreReadOnlyRecommended, Object Origin, 
                          Object Delimiter, Object Editable, Object Notify, 
                          Object Converter, Object AddToMru, Object Local, 
                          Object CorruptLoad)

Please Help...

2 Answers 2

1

I generally find these to be permissions issues with the user associated with the website in IIS. Make sure the IIS user has access to the file.

Incidentally, I might would consider using 3rd party DLLs which don't require the use of Excel Automation. I have had good success with NPOI if you don't need XLSX support. Just a suggestion.

Good luck.

Sign up to request clarification or add additional context in comments.

1 Comment

Yes, I have gone through first way mentioned as we need to give some permissions for ASPNET user, I solved it...Thanks a lot
0

Have you impersonate uSer refer http://support.microsoft.com/kb/306158

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.