Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Binaries Missing AWS Lambda

I have uploaded a .NET6 project as a zip to AWS Lambda, via Visual Studio --> Publish to AWS Lambda however when I test the lambda, I receive this error:

Error: .NET binaries for Lambda function are not correctly installed in the /var/task directory of the image when the image was built. The /var/task directory is missing.

Does anyone have any suggestions for why this may be happening? Isn't AWS Lambda responsible for including the binaries when you publish as a zip?

Thanks

like image 989
SamuraiMelon Avatar asked May 21 '26 01:05

SamuraiMelon


1 Answers

In my case, I use Upload from - .zip features of Lambda.

enter image description here

I uploaded the project in a zip file and binary files were inside the folder. like

enter image description here

That's created an issue. When you upload .zip files, make sure binary files are in the main root. Not inside any folder.

like image 142
virender Avatar answered May 23 '26 16:05

virender