Skip to content

Conversation

@jasontaylordev
Copy link
Contributor

Fixes #7251.

This cannot be merged until .NET 10 support is added for AWS Lambda functions in December; https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-future.

Using ILogger results in an error when running the lambda function:
Exception: System.InvalidOperationException: Unable to resolve service for type 'Microsoft.Extensions.Logging.ILogger`1[TriggerMessageHandler]' while attempting to activate 'TriggerMessageHandler'.
@jasontaylordev jasontaylordev self-assigned this Jul 30, 2025
@jasontaylordev
Copy link
Contributor Author

For samples SQSLambda_3 and 4, I reverted to using the static logger in TriggerMessageHandler. Using ILogger, the following exception is thrown;

Exception: System.InvalidOperationException: Unable to resolve service for type 'Microsoft.Extensions.Logging.ILogger`1[TriggerMessageHandler]' while attempting to activate 'TriggerMessageHandler'.

I tried wiring up logging using a Startup class - but no luck. For reference, my code:

    [LambdaStartup]
    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddLogging();
        }
    }

It would be worth investigating this issue further.

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Pull request has had no activity for 30 days. label Aug 29, 2025
@jasontaylordev
Copy link
Contributor Author

Blocked pending AWS Lambda support for .NET 10

@github-actions github-actions bot removed the stale Pull request has had no activity for 30 days. label Sep 1, 2025
@github-actions
Copy link

github-actions bot commented Oct 1, 2025

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Pull request has had no activity for 30 days. label Oct 1, 2025
@jasontaylordev
Copy link
Contributor Author

Pending .NET 10 support for AWS Lambda

@github-actions github-actions bot removed the stale Pull request has had no activity for 30 days. label Oct 3, 2025
@github-actions
Copy link

github-actions bot commented Nov 2, 2025

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Pull request has had no activity for 30 days. label Nov 2, 2025
@jasontaylordev
Copy link
Contributor Author

Pending .NET 10 support for AWS Lambda

@github-actions github-actions bot removed the stale Pull request has had no activity for 30 days. label Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Sample: aws/lambda-sqs

2 participants