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.

ASP.NET Core TypeLoadException with Lst<A>

See original GitHub issue

Hi,

First of all, thanks for your library; it’s great to write functional code with C#! Thing is, now that I’ve finished implementing the back-end of my controller, I’m starting to connect the front-end to it and it causes me some issues. I don’t wanrt to avoid using this NuGet because it looks really great, but I’d have no choice if I get resolve this! Do you have any idea of what to do here?

An unhandled exception occurred while processing the request. TypeLoadException: Could not load type ‘LanguageExt.Lst`1’ from assembly ‘LanguageExt.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=cb8021e93c7abc03’.

Raw exception details:

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.

Could not load type ‘LanguageExt.Lst`1’ from assembly ‘LanguageExt.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=cb8021e93c7abc03’.

Could not load type ‘LanguageExt.Lst`1’ from assembly ‘LanguageExt.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=cb8021e93c7abc03’.

Could not load type ‘LanguageExt.Lst`1’ from assembly ‘LanguageExt.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=cb8021e93c7abc03’.

at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)

at System.Reflection.RuntimeAssembly.get_DefinedTypes()

at Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPart.get_Types()

at Microsoft.AspNetCore.Mvc.Controllers.ControllerFeatureProvider.PopulateFeature(IEnumerable`1 parts, ControllerFeature feature)

at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature)

at Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.GetControllerTypes()

at Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.BuildModel()

at Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.GetDescriptors()

at Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context)

at Microsoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.UpdateCollection()

at Microsoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.get_ActionDescriptors()

at Microsoft.AspNetCore.Mvc.Internal.AttributeRoute.GetTreeRouter()

at Microsoft.AspNetCore.Mvc.Internal.AttributeRoute.RouteAsync(RouteContext context)

at Microsoft.AspNetCore.Routing.RouteCollection.RouteAsync(RouteContext context)

at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)

at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)

at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)

at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)

at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)

at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

System.TypeLoadException: Could not load type ‘LanguageExt.Lst`1’ from assembly ‘LanguageExt.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=cb8021e93c7abc03’.

System.TypeLoadException: Could not load type ‘LanguageExt.Lst`1’ from assembly ‘LanguageExt.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=cb8021e93c7abc03’.

System.TypeLoadException: Could not load type ‘LanguageExt.Lst`1’ from assembly ‘LanguageExt.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=cb8021e93c7abc03’.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
louthycommented, Apr 12, 2019

v3.1.18 deployed now. Should deal with this issue.

2reactions
louthycommented, Apr 12, 2019

Yep, looks like I screwed up. Working on a fix now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve System.TypeLoadException in .NET Core 3.1?
I am converting a project in .NET Core 3.1. But for some reason the System.TypeLoadException exception is being raised in my code:
Read more >
TypeLoadException Class (System)
TypeLoadException is thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type.
Read more >
Could not load type 'Microsoft.AspNetCore.Http. ...
I am having an Issue with a System.TypeLoadException when I try to open the Swagger page, but I cannot figure out what is...
Read more >
asp.net core performance profile error
i got following error when running .net core app using ants performance profiler v9 i ... TypeLoadException: Could not load type 'System.
Read more >
System.TypeLoadException - elmah.io
TypeLoadException happens when a type could not be loaded by the CLR. This can be caused by several different issues, but here's a...
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