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
In my case, I use Upload from - .zip features of Lambda.

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

That's created an issue. When you upload .zip files, make sure binary files are in the main root. Not inside any folder.
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