Skip to content

Getting System.FormatException when using Header Api Versioning with .NET Core 2.2 #467

@akshayshah2050

Description

@akshayshah2050

I created a brand new ASP.NET Core Empty Project
Installed the package: Microsoft.AspNetCore.Mvc.Versioning Version: 3.1.2
Configured the Startup.cs file to use ApiVersioning (refer screenshot)
Create a test web api controller and run the project

Getting error: System.FormatException: The specified API version status "0" is invalid
apiversioningerror

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions