Search code examples
linuxasp.net-corenpoi

Why NPOI xlsx file generation does not work on Linux Server


I created a web site using asp.net core. When action method having NPOI library code called, it is not responding the excel file. But it works in windows development environment.


Solution

  • When I checked server logs, I noticed that NPOI library dependenct libgdiplus is not intalled.

    sudo apt-get update
    sudo apt-get install libgdiplus

    I tried this code to install on linux server and i fixed the problem.