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;
}
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
|
show 4 more comments
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
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
|
show 4 more comments
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
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
c# .net asp.net-identity
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
|
show 4 more comments
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
|
show 4 more comments
1 Answer
1
active
oldest
votes
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" />
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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" />
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
add a comment |
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" />
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
add a comment |
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" />
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" />
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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