Skip to content
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

Cannot load type when .NET Core targeting .NET Framework #36

Open
phillip-haydon opened this issue Jun 8, 2019 · 1 comment
Open

Cannot load type when .NET Core targeting .NET Framework #36

phillip-haydon opened this issue Jun 8, 2019 · 1 comment

Comments

@phillip-haydon
Copy link

Could not load type 'Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.2.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

Been using your project for a couple of personal ASP.NET Core projects, thought I would test it out at work trying to migrate a .NET 4.7.2 project to ASP.NET Core targeting .NET Framework, but I receive the above error.

I tried it out on an empty project and the same thing happened.

Will try and debug it during the week and see if I can figure out the exact cause.

@qstarin
Copy link

qstarin commented Nov 8, 2019

Could not load type 'Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.2.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

Been using your project for a couple of personal ASP.NET Core projects, thought I would test it out at work trying to migrate a .NET 4.7.2 project to ASP.NET Core targeting .NET Framework, but I receive the above error.

I tried it out on an empty project and the same thing happened.

Is your project targeting v4.7.2? I'm experiencing the same exception on an ASP.Net Core 2.2 app that targets .Net Framework v4.7.2

If I simply copy this project code into my own, it does work, so it appears to be a referencing issue, but I haven't sorted out what exactly yet.

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

No branches or pull requests

2 participants