Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Exception when using Nancy.Serialization.JsonNet after upgrading to Nancy 2.0.0 #72

Open
1 of 4 tasks
qusma opened this issue Jun 16, 2019 · 2 comments
Open
1 of 4 tasks

Comments

@qusma
Copy link

qusma commented Jun 16, 2019

Description

Method 'CanDeserialize' in type 'Nancy.Serialization.JsonNet.JsonNetBodyDeserializer' from assembly 'Nancy.Serialization.JsonNet, Version=1.4.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at Nancy.Extensions.AssemblyExtensions.SafeGetExportedTypes(Assembly assembly)
at Nancy.DefaultTypeCatalog.<>c.b__4_0(Assembly assembly)
at System.Linq.Enumerable.d__172.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Nancy.DefaultTypeCatalog.GetTypesAssignableTo(Type type) at Nancy.DefaultTypeCatalog.<>c__DisplayClass3_0.<GetTypesAssignableTo>b__0(Type t) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at Nancy.DefaultTypeCatalog.GetTypesAssignableTo(Type type, TypeResolveStrategy strategy) at Nancy.TypeCatalogExtensions.GetTypesAssignableTo[TType](ITypeCatalog typeCatalog) at Nancy.Bootstrapper.NancyInternalConfiguration.<>c.<get_Default>b__1_0(ITypeCatalog typeCatalog) at Nancy.Bootstrapper.NancyBootstrapperBase1.GetInitializedInternalConfiguration()
at Nancy.Bootstrapper.NancyBootstrapperBase`1.Initialise()
at Nancy.Hosting.Self.NancyHost..ctor(INancyBootstrapper bootstrapper, HostConfiguration configuration, Uri[] baseUris)
at Nancy.Hosting.Self.NancyHost..ctor(INancyBootstrapper bootstrapper, Uri[] baseUris)

Steps to Reproduce

Simply launch nancy with the json.net serializer.

System Configuration

.NET 4.7

  • Nancy version: 2.0.0
  • Nancy host
    • ASP.NET
    • OWIN
    • Self-Hosted
    • Other:
  • Other Nancy packages and versions:
  • Environment (Operating system, version and so on):
  • .NET Framework version:
  • Additional information:
@Gouar
Copy link

Gouar commented Jul 26, 2019

Hi,
I got the same exception today after upgrading to Nancy 2.0.0. I fixed it by upgrading Nancy.Serialization.JsonNet from 1.4.1 to 2.0.0-clinteastwood (check "Include prerelease").

@bmhoang
Copy link

bmhoang commented Sep 12, 2019

I got the same issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants