Piece of code below works fine with Development Server but fails when the project is published to IIS. Tried different ones than the xlExcel8
but no help. I also thought changing Microsoft.Office.Interop.Excel
reference's "Copy Local" property to "True" but it's grayed out. I am not able to change it. I suspect the IIS and Visual Studio using different dlls.
_excelApp.ActiveWorkbook.SaveAs(filename, XlFileFormat.xlExcel8)