Skip to content

ApiExplorer ApiDescription error: The invoked member is not supported before the type is created. #463

Closed
@dmore234

Description

@dmore234

Using WebApi and oData v4. Getting exception in MultipleVersion block for EF models having navigation property. Do I have add IncludeNavigationPropery in Swagger Config file or exclude controllers having navigation property? Please advise!

The invoked member is not supported before the type is created.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NotSupportedException: The invoked member is not supported before the type is created.

foreach (var group in apiExplorer.ApiDescriptions)....................Line 152:

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions