
While deploying lambda in C# I am getting an error as - "errorType": "LambdaException", "errorMessage": "Could not find the specified handler assembly with the file name '/var/task/AWSLambda1.dll' or '/var/task/AWSLambda1.ni.dll'. The assembly should be located in the root of your uploaded .zip file.". as a beginner Could any one provide me the steps to execute lambda in C#?
It is possible that your runtime settings are not set to execute your function. Perform the following steps to modify your setting:

Modify the name to your function handler:

This worked with me.
Late to the party but let me put my solution here to save someone else's time. I also got this type of error and fixed the error by matching the AWS Lambda function handler name the same as the assembly name of the handler function in the code/zip file. AWS Lambda Handler can be found under the Runtime settings of the Code tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With