Swashbuckle.AspNetCore
Swashbuckle.AspNetCore copied to clipboard
Error 500.30 at runtime (publish time) on version 6.4.0
hi I recently updated to version 6.4.0, but the runtime gives an error of 500.30 in the publish?! Windows server specifications: windows server 2016 microsoft net core runtime v6.0.10 microsoft net core sdk v6.0.402
I can't possible help with such little information. Please provide clear repro steps as per the issue guidelines
We also had this after upgrading to .NET 7, this resulted in:
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Swashbuckle.AspNetCore.Annotations, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
The stack trace indicates that this happens at time of calling AddControllers in our code.
We had trimming on <PublishTrimmed>true</PublishTrimmed> with copyused mode <TrimMode>copyused</TrimMode>.
And these 2 packages:
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.4.0" />
After turning trimming off, things worked fine again. For some reason this was not an issue in .NET 6 with the same package versions.
I believe this is fixed in DotSwashbuckle
Duplicate of #2550