I am getting the COMException when importing data from Excel file. Now my application uses Microsoft.Office.Interop.Excel NuGet package but it referenced the dll in GAC and this dll didn't get into the bin when publishing the files. So I manually reference to the dll in packages folder and then published the web app. Even then the dll didn't get published. What I observe is while the other dlls from Nuget packages have Copy Local set to True, the Microsoft.Office.Interop.Excel dll has False and I am nnot able to change it either. I read a few articles suggesting installing the Excel dlls on server, I am wondering how does the Nuget package help in this case?
Do I need to install Excel Interop dlls on server? If yes, whats the point of providing the Nuget for it?