New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.InvalidOperationException for XmlCommentsParameterFilter #2747
Comments
I am also facing the same when I am publishing this on IIS. in local its working fine. |
It's not obvious to me at first glance why this wouldn't be working. The activation call comes from here: Lines 76 to 77 in 830c5a6
The constructor receives a single Line 11 in 830c5a6
Which is provided as the argument here: Line 433 in 830c5a6
It might be related to this breaking change in .NET 8. |
Having updated Swashbuckle to target Please provide a minimal reproducible example as a GitHub repository that demonstrates the issue you're experiencing so we can look into this further. |
I am having the following exception throw after upgrading to .Net8:
System.InvalidOperationException: A suitable constructor for type 'Swashbuckle.AspNetCore.SwaggerGen.XmlCommentsParameterFilter' could not be located. Ensure the type is concrete and all parameters of a public constructor are either registered as services or passed as arguments. Also ensure no extraneous arguments are provided.
Any initial thoughts or suggested fixes would be appreciated!
Using Swashbuckle.AspNetCore 6.5.0
Using Swashbuckle.AspNetCore.SwaggerUI 6.5.0
Using Swashbuckle.AspNetCore.SwaggerGen 6.5.0
Using Swashbuckle.AspNetCore.Swagger 6.5.0
The text was updated successfully, but these errors were encountered: