I have hosted my .net core application on Elastic beanstalk to use API to sign the pdf.
The application is hosted successfully but getting 500 internal server error
I logged into my server to get a brief idea of the error in the event viewer and got System.IO.FileNotFoundException: Could not load file or assembly 'System.Drawing.Common, Version=6.0.0.0,
in the windows logs application section
Note: application is hosted with elastic beanstalk with IIS 10.0 running on 64bit Windows Server 2019/2.11.2 version
The problem was in the buildspec.sh file which is used while using codebuild
In postBuild part where we have to zip our publish file, we should use the following command
zip ../{appname}.zip -r * .[^.]*
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-sourcebundle.html