Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am facing an issue to execute AWS Lambda function

enter image description here

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#?

like image 548
pratik Avatar asked Oct 21 '25 03:10

pratik


2 Answers

It is possible that your runtime settings are not set to execute your function. Perform the following steps to modify your setting:

  1. Navigate to your AWS Lambda function.
  2. Under your Lambda, scroll down and navigate to Code tab.
  3. Scroll down to Runtime settings:

enter image description here

Modify the name to your function handler: enter image description here

This worked with me.

like image 104
Akshay Avatar answered Oct 23 '25 16:10

Akshay


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.

like image 25
Ikigai programmeh Avatar answered Oct 23 '25 18:10

Ikigai programmeh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!