question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeCatalogueInstanceProvider throws first chance MissingMethodException trying to instantiate DefaultEnumerableValueFormatter

See original GitHub issue

A first chance exception is happening down in the bowels of FIE due to the TypeCatalogueInstanceProvider attempting to create an instance of DefaultEnumerableValueFormatter which does not have a no-arg constructor.

System.MissingMethodException: No parameterless constructor defined for type 'FakeItEasy.Core.ArgumentValueFormatter+DefaultEnumerableValueFormatter'.
   at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at FakeItEasy.Core.TypeCatalogueInstanceProvider.InstantiateAllOfType[T]() in C:\projects\fakeiteasy\src\FakeItEasy\Core\TypeCatalogueInstanceProvider.cs:line 35

Other cases of First Chance Exceptions have been corrected in the past.

FIE Version: 6.2.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
akrockcommented, Aug 31, 2020

@blairconrad Sounds good. I will take a stab at it.

0reactions
blairconradcommented, Sep 2, 2020

Thanks, @akrock. We appreciate your work! Look for your name in the release notes. 🥇

Read more comments on GitHub >

github_iconTop Results From Across the Web

FakeItEasy latest version - Awesome .NET - LibHunt
0️⃣ TypeCatalogueInstanceProvider throws first chance MissingMethodException trying to instantiate DefaultEnumerableValueFormatter (#1790) ...
Read more >
FakeItEasy/CHANGELOG and FakeItEasy Releases | LibHunt
0️⃣ TypeCatalogueInstanceProvider throws first chance MissingMethodException trying to instantiate DefaultEnumerableValueFormatter (#1790) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found