Swashbuckle.AspNetCore icon indicating copy to clipboard operation
Swashbuckle.AspNetCore copied to clipboard

Error 500.30 at runtime (publish time) on version 6.4.0

Open amin720 opened this issue 3 years ago • 1 comments

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

amin720 avatar Oct 22 '22 09:10 amin720

I can't possible help with such little information. Please provide clear repro steps as per the issue guidelines

domaindrivendev avatar Nov 15 '22 23:11 domaindrivendev

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.

Rubenisme avatar Dec 06 '22 14:12 Rubenisme

I believe this is fixed in DotSwashbuckle

Havunen avatar Mar 05 '24 19:03 Havunen

Duplicate of #2550

martincostello avatar Apr 14 '24 11:04 martincostello