Null Reference when deploying to k8s #3472
-
I am trying to deploy a c# service that accesses s3 using aws-sdk-net in k8s but I keep on getting a null reference error. error:
Referenced packages:
Startup code:
Platform version: eks.11 Environment Variables:
Is there something I am missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Did you start seeing this error after upgrading to the latest version of the If possible (and you could share it), I'm also curious on what properties you have on the |
Beta Was this translation helpful? Give feedback.
Oh, you're using AOT... Unfortunately version
3.7.301
of theAWSSDK.Extensions.NETCore.Setup
package is not Native AOT compatible (which explains the warnings you saw during the build). Do you still see the error without thePublishAot
option?We also have a preview version of
AWSSDK.Extensions.NETCore.Setup
that is compatible with AOT, but it'll require you to update the SDK packages too: https://www.nuget.org/packages/AWSSDK.Extensions.NETCore.Setup/4.0.0-preview.2 (this issue has a list of all breaking changes currently included in the V4 preview: #3362)