Server Deployment

Dec 19, 2016 at 9:02 PM
Hi all - I have a project that opens an Excel file (used as a template), writes to it, and then saves it. The solution works on my desktop (where Excel is installed), but when I deploy it to the server and execute I get this message:

Line 56: l_oExcelApp = New ExcelInterop.Application()

[ArgumentException: progId not found. Excel.Application]
NetOffice.COMObject..ctor(String progId) in C:\NetOffice6\Source\NetOffice\COMObject.cs:350
NetOffice.ExcelApi.Application..ctor() in C:\NetOffice6\Source\Excel\Classes\Application.cs:148
index.CreateExcelExportFile() in D:\ExcelExport\index.aspx.vb:56
index.btnExport_click(Object sender, EventArgs e) in D:\ExcelExport\index.aspx.vb:13
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +155
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804

I copied over the entirety of the solution on the server, no luck. all referenced .dlls are there.
Can anyone help?
Coordinator
Dec 24, 2016 at 2:18 AM
That means Excel is not installed or you have no access to the desktop because your code is running in a network/system account.

This topic is good explanation how you fix it:
http://www.integra4notes.com/faq/pages/0168

*Sebastian