Reputation: 327
I am using AWS Lambda toolkit for C#. When I am publishing AWS Lambda directly it is working fine on AWS. But when I am trying to make a zip file by using publish and then making the zip of all DLL under bin\Release\netcoreapp1.0. and trying to run.
Then it is giving an error:
{
"errorType": "LambdaException",
"errorMessage": "An error occurred while attempting to execute your code."
}
In configuration Handler name is correct.
What can be the issue?
Upvotes: 1
Views: 894
Reputation: 1
Have you tried packing the zip using the dotnet cli command
?
Try this in your project folder: dotnet lambda package -o .\lambda.zip
It should create a lambda.zip
file which you can try to upload.
Upvotes: 0