-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MissingMethodException Document.Build(Assembly, Newtonsoft.Json.Serialization.NamingStrategy) #58
Comments
Hi, @rychlym Is it still issue with |
From |
Hi @justinyoo,
and going to try the 1.7.0 ... |
hm, it still not working even with the 1.7.0 - the same error |
As I can see the SPO related NuGet packages, I assume that you're using AzFunc v1, right? In this case, you can't change the Newtonsoft.Json version. The error you see is because of the version change. Here are many discussions around: I'm sorry to say that this is out of my control. However, there are possible solutions you might like to consider:
|
Hi, The v1 is used , because PnPCore library is still not compatible with the .NET Core. Then I trided to upgrade to your extensions 1.5.4 and since that it stopped to work. Is your extensions since 1.5.4 dependant on a specific version of the Newtonsoft.JSON? Anyway I guess, the 3rd option you posted might be interesting, I wonder if it is possible to use several versions of the one assebly and how to setup it... |
It's really strange...
The OpenApi extension has a dependency on the Function SDK v1.0.28 - which uses Newtonsoft.Json 9.0.1. I've got sample function apps V1IoC and V1Static with Newtonsoft.Json 9.0.1 and there's no issue. All I can tell you now is that "stick with 9.0.1".
Well, it keeps improving its feature sets. I'm not sure why it worked on 1.5.2, but not after that. |
Hello,
after just upgrading the NuGet package Aliencube.AzureFunctions.Extensions.OpenApi 1.5.4 from 1.5.2 (which was ok) I encountered following exception
requesting any of aliencube API (e.g. http://localhost:7071/api/openapi/v2.json)
MissingMethodException : Method not found: 'Aliencube.AzureFunctions.Extensions.OpenApi.Abstractions.IDocument Aliencube.AzureFunctions.Extensions.OpenApi.Abstractions.IDocument.Build(System.Reflection.Assembly, Newtonsoft.Json.Serialization.NamingStrategy)'
Note, that because of other project libs I needed to enforce Newtonsoft.Json version 11.0.1.
there is my NuGet packages spec in csproj
As I have mentioned, the Aliencube.AzureFunctions.Extensions.OpenApi version 1.5.2 does not produce such an exception. So it is not critical for me - I just would like to inform you about it...
The text was updated successfully, but these errors were encountered: