Microsoft Office Interop Excel Dll Version 12.0.0.0
I guess that the reason of the error is I wanted to open both xls and xlsx files. OpenFileDialog1.Filter = '(.xls).xls (.xlsx).xlsx'; It could be fine if I only select only xls file. So your original question (moving the.exe file for the WinForms project) is answered? If yes, could you mark the message(s) that are the Answer then post this problem as a new question with an appropriate Subject line? When you post, please remember 1. The Version of Office, 2. Sample code to replicate the problem, 3.
The line of code that causes the error, 4. The exact error message, 5. If this problem only occurs when you've moved the.exe file, but not while in the Debug folder, list what else is in the Debug folder. Cindy Meister, VSTO/Word MVP. Just-in-time (JIT) debugging instead of this dialog box.
Microsoft.office.interop.excel.dll
Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0. I have added reference of 'Microsoft.Office.Interop.Excel' dll in webApplication. Jul 23, 2012 Thank You all for the replies. Office is not installed on the server. Infact i did not see the 'Microsoft.Office.Interop.Excel, Version=14.0.0.0' DLL in GAC.
Microsoft.office.interop.excel C#
Exception Text. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. I guess that the reason of the error is I wanted to open both xls and xlsx files. OpenFileDialog1.Filter = '(.xls).xls (.xlsx).xlsx'; It could be fine if I only select only xls file. So your original question (moving the.exe file for the WinForms project) is answered?
If yes, could you mark the message(s) that are the Answer then post this problem as a new question with an appropriate Subject line? When you post, please remember 1. The Version of Office, 2. Sample code to replicate the problem, 3. The line of code that causes the error, 4. The exact error message, 5.
If this problem only occurs when you've moved the.exe file, but not while in the Debug folder, list what else is in the Debug folder. Cindy Meister, VSTO/Word MVP.