Microsoft.Owin.Host.SystemWeb results in Could not load file or assembly 'System.Runtime





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I have a .Net Framework 4.7.1 web application project.



When I add the NuGet package Microsoft.Owin.Host.SystemWeb, my project fails to start, giving me the following error:



Could not load file or assembly 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.


It happens right after I add the above-mentioned package. Without it everything works perfectly fine.



Any ideas?



I have Visual Studio 2017 15.5.5. Maybe it's some version conflict problem? I also have Microsoft.AspNet.Identity.Core and Microsogt.AspNet.Identity.EntityFramework packages installed.










share|improve this question























  • What kind of project are you using?

    – Roy Sanchez
    Jan 29 '18 at 18:53











  • It's a regular web application project. There're 2 other class libraries in the solution. Targeted framework - 4.7.1.

    – Andrey Korneyev
    Jan 29 '18 at 19:03











  • What I'll like to know if it is using the asp.net project with global.asax or the startup class one? If I remember correctly the point of Owin.Host.SystemWeb is to run Owin projects on top of IIS, do you have an startup class?

    – Roy Sanchez
    Jan 29 '18 at 19:09













  • It has a Global.asax class in it. I tried adding an Owin startup class into the App_Code folder as well, still getting the error. It was marked with "[assembly: OwinStartup(typeof(EMG.YubiPromo.WebSite.Startup))]" attribute.

    – Andrey Korneyev
    Jan 29 '18 at 19:27











  • The startup class should be on the root of the project, at the same level as the global.asax file, try to follow this guide docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/…

    – Roy Sanchez
    Jan 29 '18 at 19:32


















0















I have a .Net Framework 4.7.1 web application project.



When I add the NuGet package Microsoft.Owin.Host.SystemWeb, my project fails to start, giving me the following error:



Could not load file or assembly 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.


It happens right after I add the above-mentioned package. Without it everything works perfectly fine.



Any ideas?



I have Visual Studio 2017 15.5.5. Maybe it's some version conflict problem? I also have Microsoft.AspNet.Identity.Core and Microsogt.AspNet.Identity.EntityFramework packages installed.










share|improve this question























  • What kind of project are you using?

    – Roy Sanchez
    Jan 29 '18 at 18:53











  • It's a regular web application project. There're 2 other class libraries in the solution. Targeted framework - 4.7.1.

    – Andrey Korneyev
    Jan 29 '18 at 19:03











  • What I'll like to know if it is using the asp.net project with global.asax or the startup class one? If I remember correctly the point of Owin.Host.SystemWeb is to run Owin projects on top of IIS, do you have an startup class?

    – Roy Sanchez
    Jan 29 '18 at 19:09













  • It has a Global.asax class in it. I tried adding an Owin startup class into the App_Code folder as well, still getting the error. It was marked with "[assembly: OwinStartup(typeof(EMG.YubiPromo.WebSite.Startup))]" attribute.

    – Andrey Korneyev
    Jan 29 '18 at 19:27











  • The startup class should be on the root of the project, at the same level as the global.asax file, try to follow this guide docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/…

    – Roy Sanchez
    Jan 29 '18 at 19:32














0












0








0


0






I have a .Net Framework 4.7.1 web application project.



When I add the NuGet package Microsoft.Owin.Host.SystemWeb, my project fails to start, giving me the following error:



Could not load file or assembly 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.


It happens right after I add the above-mentioned package. Without it everything works perfectly fine.



Any ideas?



I have Visual Studio 2017 15.5.5. Maybe it's some version conflict problem? I also have Microsoft.AspNet.Identity.Core and Microsogt.AspNet.Identity.EntityFramework packages installed.










share|improve this question














I have a .Net Framework 4.7.1 web application project.



When I add the NuGet package Microsoft.Owin.Host.SystemWeb, my project fails to start, giving me the following error:



Could not load file or assembly 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.


It happens right after I add the above-mentioned package. Without it everything works perfectly fine.



Any ideas?



I have Visual Studio 2017 15.5.5. Maybe it's some version conflict problem? I also have Microsoft.AspNet.Identity.Core and Microsogt.AspNet.Identity.EntityFramework packages installed.







c# .net asp.net-identity






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 29 '18 at 18:46









Andrey KorneyevAndrey Korneyev

100111




100111













  • What kind of project are you using?

    – Roy Sanchez
    Jan 29 '18 at 18:53











  • It's a regular web application project. There're 2 other class libraries in the solution. Targeted framework - 4.7.1.

    – Andrey Korneyev
    Jan 29 '18 at 19:03











  • What I'll like to know if it is using the asp.net project with global.asax or the startup class one? If I remember correctly the point of Owin.Host.SystemWeb is to run Owin projects on top of IIS, do you have an startup class?

    – Roy Sanchez
    Jan 29 '18 at 19:09













  • It has a Global.asax class in it. I tried adding an Owin startup class into the App_Code folder as well, still getting the error. It was marked with "[assembly: OwinStartup(typeof(EMG.YubiPromo.WebSite.Startup))]" attribute.

    – Andrey Korneyev
    Jan 29 '18 at 19:27











  • The startup class should be on the root of the project, at the same level as the global.asax file, try to follow this guide docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/…

    – Roy Sanchez
    Jan 29 '18 at 19:32



















  • What kind of project are you using?

    – Roy Sanchez
    Jan 29 '18 at 18:53











  • It's a regular web application project. There're 2 other class libraries in the solution. Targeted framework - 4.7.1.

    – Andrey Korneyev
    Jan 29 '18 at 19:03











  • What I'll like to know if it is using the asp.net project with global.asax or the startup class one? If I remember correctly the point of Owin.Host.SystemWeb is to run Owin projects on top of IIS, do you have an startup class?

    – Roy Sanchez
    Jan 29 '18 at 19:09













  • It has a Global.asax class in it. I tried adding an Owin startup class into the App_Code folder as well, still getting the error. It was marked with "[assembly: OwinStartup(typeof(EMG.YubiPromo.WebSite.Startup))]" attribute.

    – Andrey Korneyev
    Jan 29 '18 at 19:27











  • The startup class should be on the root of the project, at the same level as the global.asax file, try to follow this guide docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/…

    – Roy Sanchez
    Jan 29 '18 at 19:32

















What kind of project are you using?

– Roy Sanchez
Jan 29 '18 at 18:53





What kind of project are you using?

– Roy Sanchez
Jan 29 '18 at 18:53













It's a regular web application project. There're 2 other class libraries in the solution. Targeted framework - 4.7.1.

– Andrey Korneyev
Jan 29 '18 at 19:03





It's a regular web application project. There're 2 other class libraries in the solution. Targeted framework - 4.7.1.

– Andrey Korneyev
Jan 29 '18 at 19:03













What I'll like to know if it is using the asp.net project with global.asax or the startup class one? If I remember correctly the point of Owin.Host.SystemWeb is to run Owin projects on top of IIS, do you have an startup class?

– Roy Sanchez
Jan 29 '18 at 19:09







What I'll like to know if it is using the asp.net project with global.asax or the startup class one? If I remember correctly the point of Owin.Host.SystemWeb is to run Owin projects on top of IIS, do you have an startup class?

– Roy Sanchez
Jan 29 '18 at 19:09















It has a Global.asax class in it. I tried adding an Owin startup class into the App_Code folder as well, still getting the error. It was marked with "[assembly: OwinStartup(typeof(EMG.YubiPromo.WebSite.Startup))]" attribute.

– Andrey Korneyev
Jan 29 '18 at 19:27





It has a Global.asax class in it. I tried adding an Owin startup class into the App_Code folder as well, still getting the error. It was marked with "[assembly: OwinStartup(typeof(EMG.YubiPromo.WebSite.Startup))]" attribute.

– Andrey Korneyev
Jan 29 '18 at 19:27













The startup class should be on the root of the project, at the same level as the global.asax file, try to follow this guide docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/…

– Roy Sanchez
Jan 29 '18 at 19:32





The startup class should be on the root of the project, at the same level as the global.asax file, try to follow this guide docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/…

– Roy Sanchez
Jan 29 '18 at 19:32












1 Answer
1






active

oldest

votes


















0














Though a delayed reply. Still posting if anyone else having same issue.



Add below key in appSettings section in web.config file



<add key="owin:appStartup" value="<<Namespace>>.Startup, <<Assembly>>" />


for e.g.



<add key="owin:appStartup" value="<<Namespace>>.Startup, <<Assembly>>" />


or, only Startup class with Namespace and without Assembly



<add key="owin:appStartup" value="<<Namespace>>.Startup" />





share|improve this answer


























  • This did not solve for me, do you have any other ideas possibly ? Quite stuck and can't find much on the issue

    – TheDream
    Dec 5 '18 at 16:03












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48507996%2fmicrosoft-owin-host-systemweb-results-in-could-not-load-file-or-assembly-system%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Though a delayed reply. Still posting if anyone else having same issue.



Add below key in appSettings section in web.config file



<add key="owin:appStartup" value="<<Namespace>>.Startup, <<Assembly>>" />


for e.g.



<add key="owin:appStartup" value="<<Namespace>>.Startup, <<Assembly>>" />


or, only Startup class with Namespace and without Assembly



<add key="owin:appStartup" value="<<Namespace>>.Startup" />





share|improve this answer


























  • This did not solve for me, do you have any other ideas possibly ? Quite stuck and can't find much on the issue

    – TheDream
    Dec 5 '18 at 16:03
















0














Though a delayed reply. Still posting if anyone else having same issue.



Add below key in appSettings section in web.config file



<add key="owin:appStartup" value="<<Namespace>>.Startup, <<Assembly>>" />


for e.g.



<add key="owin:appStartup" value="<<Namespace>>.Startup, <<Assembly>>" />


or, only Startup class with Namespace and without Assembly



<add key="owin:appStartup" value="<<Namespace>>.Startup" />





share|improve this answer


























  • This did not solve for me, do you have any other ideas possibly ? Quite stuck and can't find much on the issue

    – TheDream
    Dec 5 '18 at 16:03














0












0








0







Though a delayed reply. Still posting if anyone else having same issue.



Add below key in appSettings section in web.config file



<add key="owin:appStartup" value="<<Namespace>>.Startup, <<Assembly>>" />


for e.g.



<add key="owin:appStartup" value="<<Namespace>>.Startup, <<Assembly>>" />


or, only Startup class with Namespace and without Assembly



<add key="owin:appStartup" value="<<Namespace>>.Startup" />





share|improve this answer















Though a delayed reply. Still posting if anyone else having same issue.



Add below key in appSettings section in web.config file



<add key="owin:appStartup" value="<<Namespace>>.Startup, <<Assembly>>" />


for e.g.



<add key="owin:appStartup" value="<<Namespace>>.Startup, <<Assembly>>" />


or, only Startup class with Namespace and without Assembly



<add key="owin:appStartup" value="<<Namespace>>.Startup" />






share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 6 '18 at 14:33

























answered Nov 24 '18 at 9:13









Sonal BorkarSonal Borkar

4951412




4951412













  • This did not solve for me, do you have any other ideas possibly ? Quite stuck and can't find much on the issue

    – TheDream
    Dec 5 '18 at 16:03



















  • This did not solve for me, do you have any other ideas possibly ? Quite stuck and can't find much on the issue

    – TheDream
    Dec 5 '18 at 16:03

















This did not solve for me, do you have any other ideas possibly ? Quite stuck and can't find much on the issue

– TheDream
Dec 5 '18 at 16:03





This did not solve for me, do you have any other ideas possibly ? Quite stuck and can't find much on the issue

– TheDream
Dec 5 '18 at 16:03




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48507996%2fmicrosoft-owin-host-systemweb-results-in-could-not-load-file-or-assembly-system%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()