Comments (3)
Which version of the OData package are you using? I'm guessing you are upgrading a project or creating a new project which is using 6.0.0. There were some pretty significant changes to API and runtime behaviors in 6.0 (see OData 6.x Features for more details). There were a few places where I had to beat the OData APIs into submission, which required nasty, but unavoidable Reflection use. I suspect you are either encountering an incompatible binding redirect from the changes in the APIs or some internal piece of Reflection code is now broken.
Assuming this is your case, then my suggestion would be to use a previous release of the OData package - for now. All of the examples in this project are written against 5.9.1, but I suspect things will work all the way back to at least 5.6 (untested). That should unblock you.
If you can indeed confirm you are using 6.0, then I'll also file a bug that the library is incompatible with 6.0. I haven't dug deep into the changes for 6.0 yet, so I'm not sure how much work it will be; presumably minor. Until I've had some time to look into it, I can't say whether the fix will take a few days or a few weeks. Regardless, I'll start taking a look and get a fix out as soon as possible.
Thanks for reporting the issue. Apologies for the inconvenience.
from aspnet-api-versioning.
Thanks, I appreciate the quick response. I can confirm that I've been using version 6.0.0 of the package. I was planning to try starting fresh with an earlier version of the package to see if that made a difference, but I got hung up in meetings and hadn't had the time to try it yet. Thanks for your help.
from aspnet-api-versioning.
Changing this to an enhancement rather than a bug, since the latest, published API versioning package for OData now indicates that it's not compatible with the OData 6.0.0+ package.
from aspnet-api-versioning.
Related Issues (20)
- only the 5.1.0 version of Microsoft.AspNetCore.Mvc.Versioning is deprecated HOT 3
- Problem with describing reponse codes in minimal api HOT 3
- Cannot run APIs with different controller names with same ControllerName attribute after migration HOT 6
- Different options in `ApiVersioningOptions.cs` between .NET Framework and .NET Core packages HOT 2
- WithOpenApi() ignore Api versioning readers HOT 4
- .net 8 support HOT 7
- Breaking changes when migrating to OData8 + new versioning HOT 10
- odata/$metadata returns 404 when all controllers are decorated with ApiVersionNeutralAttribute HOT 3
- AddVersionedApiExplorer not working in Asp.Versioning HOT 5
- VersionedApiDescriptionProvider does not set the correct SunsetPolicy to ApiDescription instances HOT 1
- Using ApiExplorerSettingsAttribute together with ApiVersionAttribute produces unexpected number of ApiVersionDescriptions HOT 5
- Asp.Net Core WebApi - AWS ECS Cluster Authentication failure HOT 2
- [Versioned Clients][API Notifications] Fails to read new versions when available HOT 2
- Swashbuckle documentation inconsistent with examples HOT 2
- AssumeDefaultVersionWhenUnspecified does not work correctly if ApiVersionNeutral is used in the controller HOT 2
- swagger.json file not found after update HOT 9
- My API is not displaying all the versions. HOT 4
- Improve docs for HeaderApiVersionReader
- Add synonym to `AddMvc` method. HOT 7
- CurrentImplementationApiVersionSelector behaves differently based on whether an operation still exists on latest API version HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnet-api-versioning.