-
Notifications
You must be signed in to change notification settings - Fork 677
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 #1041
Comments
Set Newtonsoft.Json package to version 9.0.1 and the error will go. Just a temp fix for now. |
also dealt with same issue after updating Newtonsoft to 10.x.x, since they removed Obsolete PropertyNameResolver |
I know that the focus is on the .Net core version of Swashbuckle but is there any possibility to correct this? It is really critical for me and probably for a lot of more people since I can't revert to version 9 of Newtonsoft. |
I've added a pull request for fixing this issue: #1063 |
Great! But I think it's #1062 I'm looking for. Is it possible to have a release of this? |
Possible? sure it is! |
this is reaallly becoming more and more of a problem as time goes.. reverting to v9 is starting to look impossible here now. |
@eatfrog But if you want to contribute your time, answer the call for maintainers: #1053 |
Newtonsoft.Json package updated to v7.0.1, issue #1041 fixed.
Hi! |
Sorry for the +1 post, but really hoping this gets some visibility. We depend on Swashbuckle and this bug is causing major problems. |
I'm working on my own fork that uses the latest and greatest, anyone intrested can get from: And here is a demo: |
@lakario - if you hang tight I'll try push out a new release this evening |
@heldersepu - any chance you could use a different name for your myget package? It's going to be confusing to have different packages with the same name. Plus it means you can publish yours to Nuget also. |
@domaindrivendev |
It would make things clearer.. |
@domaindrivendev Just tested 5.6.0, looks good. Thanks! |
I'm getting the following exception when before everything was working fine:
500 : {"ClassName":"System.MissingMethodException","Message":"Method not found: \"System.Func
2<System.String,System.String> Newtonsoft.Json.Serialization.JsonDictionaryContract.get_PropertyNameResolver()".","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" bei Swashbuckle.Swagger.SchemaRegistry.<>c__DisplayClass18.b__14(String name)\r\n bei System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func
2 keySelector, Func2 elementSelector, IEqualityComparer
1 comparer)\r\n bei Swashbuckle.Swagger.SchemaRegistry.CreateDictionarySchema(JsonDictionaryContract dictionaryContract)\r\n bei Swashbuckle.Swagger.SchemaRegistry.CreateInlineSchema(Type type)\r\n bei Swashbuckle.Swagger.SchemaRegistry.b__1f(JsonProperty prop)\r\n bei System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func
2 keySelector, Func2 elementSelector, IEqualityComparer
1 comparer)\r\n bei Swashbuckle.Swagger.SchemaRegistry.CreateObjectSchema(JsonObjectContract jsonContract)\r\n bei Swashbuckle.Swagger.SchemaRegistry.CreateDefinitionSchema(Type type)\r\n bei Swashbuckle.Swagger.SchemaRegistry.GetOrRegister(Type type)\r\n bei Swashbuckle.Swagger.Annotations.ApplySwaggerResponseAttributes.Apply(Operation operation, SchemaRegistry schemaRegistry, ApiDescription apiDescription)\r\n bei Swashbuckle.Swagger.SwaggerGenerator.CreateOperation(ApiDescription apiDesc, SchemaRegistry schemaRegistry)\r\n bei Swashbuckle.Swagger.SwaggerGenerator.CreatePathItem(IEnumerable1 apiDescriptions, SchemaRegistry schemaRegistry)\r\n bei System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable
1 source, Func2 keySelector, Func
2 elementSelector, IEqualityComparer1 comparer)\r\n bei Swashbuckle.Swagger.SwaggerGenerator.GetSwagger(String rootUrl, String apiVersion)\r\n bei System.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd(TKey key, Func2 valueFactory)\r\n bei AboServer.API.Config.SwaggerCachingProvider.GetSwagger(String rootUrl, String apiVersion)\r\n bei Swashbuckle.Application.SwaggerDocsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n bei System.Net.Http.HttpMessageInvoker.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n bei System.Web.Http.Dispatcher.HttpRoutingDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n bei System.Net.Http.DelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n bei AboServer.API.Handlers.SessionHandler.<SendAsync>d__1.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\n<CreateDictionarySchema>b__14\nSwashbuckle.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd1bb07a5ac7c7bc\nSwashbuckle.Swagger.SchemaRegistry+<>c__DisplayClass18\nSystem.String <CreateDictionarySchema>b__14(System.String)","HResult":-2146233069,"Source":"Swashbuckle.Core","WatsonBuckets":null,"MMClassName":null,"MMMemberName":null,"MMSignature":null} http://myserver:80/myapp/swagger/docs/v1
The text was updated successfully, but these errors were encountered: