.NET Core app targeting full framework - Stopped working in IISTargeting Multiple Runtimes When Publishing a .NET Core AppPublish to IIS. Omit installing .NET Core Windows Server Hosting bundle on the server.NET CORE self contained application deployment. Why RID needs to be Known when .NET Core is cross platformIIS .net core with .net 4.5 sub appsRun .NET Core on IIS.NET Core app unable to start in IIS due to ErrorCode = '0x80004005 : 80008083.NET Core Hosting BundleRun .Net Core Web App on Apache without Core RuntimeASP.NET Core 2.0 app targeting .NET 4.6.1 fails to host on IIS.NET Core - Self Contained Deployment not working
What is a "soap"?
RAII wrapper for SQLite transactions
How to gracefully leave a company you helped start?
Would the USA be eligible to join the European Union?
When did Bilbo and Frodo learn that Gandalf was a Maia?
Does writing regular diary entries count as writing practice?
How does the Moon's gravity affect Earth's oceans despite Earth's stronger gravitational pull?
What is the fastest way to level past 95 in Diablo II?
Airline power sockets shut down when I plug my computer in. How can I avoid that?
Good way to stop electrolyte tabs from turning into powder?
What is the question mark?
How do I ask for 2-3 days per week remote work in a job interview?
Sums of binomial coefficients weighted by incomplete gamma
When does The Truman Show take place?
How would armour (and combat) change if the fighter didn't need to actually wear it?
Deciphering Lunacy Asylum case notes about administering Brandy and Milk
Did Pope Urban II issue the papal bull "terra nullius" in 1095?
Will some rockets really collapse under their own weight?
Are there liquid fueled rocket boosters having coaxial fuel/oxidizer tanks?
Does the Haste spell's hasted action allow you to make multiple unarmed strikes? Or none at all?
How can I have a custom module checked for deprecated functions?
Quick destruction of a helium filled airship?
Some pads on a PCB are marked in clusters and I can't understand which one is which
Is this bar slide trick shown on Cheers real or a visual effect?
.NET Core app targeting full framework - Stopped working in IIS
Targeting Multiple Runtimes When Publishing a .NET Core AppPublish to IIS. Omit installing .NET Core Windows Server Hosting bundle on the server.NET CORE self contained application deployment. Why RID needs to be Known when .NET Core is cross platformIIS .net core with .net 4.5 sub appsRun .NET Core on IIS.NET Core app unable to start in IIS due to ErrorCode = '0x80004005 : 80008083.NET Core Hosting BundleRun .Net Core Web App on Apache without Core RuntimeASP.NET Core 2.0 app targeting .NET 4.6.1 fails to host on IIS.NET Core - Self Contained Deployment not working
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
We have a ASP.NET Core MVC application that targets net461 due to requiring Entity Framework for Oracle.
Up until recently, this application has been working fine on both our DEV and QA servers.
We are deploying it as a self-contained app, but also have .NET Core runtime and the ASP.NET Core IIS hosting bundle installed on the servers.
Recently, we started running into issues after deployment where the application will not start up. In the browser, we get 502.5 Process Failure.
On the server, the only error we can find is in the Windows event logs: Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE/<appname>' with physical root 'D:path' created process with commandline 'D:path<appname>.exe ' but failed to listen on the given port '<randomport>'.
Various SO posts and articles I have found say this is usually due to a different runtime version installed on the server vs. the client.
This is self-contained so the runtime is bundled, so I'm not sure that is the issue.
We have not changed what is installed on our development PCs OR on the servers, but have tried uninstalling and re-installing the runtime on the servers.
Since this targets the full framework
net461does it even matter the .NET Core version? Or does only the .NET version matter?
We have some people thinking the issue is with it obtaining a port to listen on. I have tried adding .UseUrls() in Program.cs and adding in Kestrel ports in appSettings.json but nothing makes any difference and we still get the same error.
To make matters more confusing, our current build runs fine on the QA server now but fails to start in DEV. Sometimes we try to publish and it works in one environment but not the other, and sometimes it fails in both. We are following the same deployment steps and the only differences are config files.
We have tried <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest> and without.
We have tried publishing from VS and from dotnet publish.
We have tried net stop was /y net start w3svc.
We even had the server restored to an earlier point before these issues started.
As of now, we can't find any pattern to when/why some deployments will run and some will fail. Is there anyone who can provide some input on this?
.net iis asp.net-core port
|
show 5 more comments
We have a ASP.NET Core MVC application that targets net461 due to requiring Entity Framework for Oracle.
Up until recently, this application has been working fine on both our DEV and QA servers.
We are deploying it as a self-contained app, but also have .NET Core runtime and the ASP.NET Core IIS hosting bundle installed on the servers.
Recently, we started running into issues after deployment where the application will not start up. In the browser, we get 502.5 Process Failure.
On the server, the only error we can find is in the Windows event logs: Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE/<appname>' with physical root 'D:path' created process with commandline 'D:path<appname>.exe ' but failed to listen on the given port '<randomport>'.
Various SO posts and articles I have found say this is usually due to a different runtime version installed on the server vs. the client.
This is self-contained so the runtime is bundled, so I'm not sure that is the issue.
We have not changed what is installed on our development PCs OR on the servers, but have tried uninstalling and re-installing the runtime on the servers.
Since this targets the full framework
net461does it even matter the .NET Core version? Or does only the .NET version matter?
We have some people thinking the issue is with it obtaining a port to listen on. I have tried adding .UseUrls() in Program.cs and adding in Kestrel ports in appSettings.json but nothing makes any difference and we still get the same error.
To make matters more confusing, our current build runs fine on the QA server now but fails to start in DEV. Sometimes we try to publish and it works in one environment but not the other, and sometimes it fails in both. We are following the same deployment steps and the only differences are config files.
We have tried <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest> and without.
We have tried publishing from VS and from dotnet publish.
We have tried net stop was /y net start w3svc.
We even had the server restored to an earlier point before these issues started.
As of now, we can't find any pattern to when/why some deployments will run and some will fail. Is there anyone who can provide some input on this?
.net iis asp.net-core port
It sounds like the app is throwing an exception during startup. Try opening a command prompt to the published app directory and runningdotnet MyApp.dll. If you see any exceptions logged to the console window, please update your question with those, along with the stack traces.
– Chris Pratt
Mar 27 at 12:38
It is an .exe file, so there is no .dll. If I try this locally, it takes a minute but eventually starts up. If I try it on the server, it just hangs and nothing shows in the console window.
– neilsimp1
Mar 27 at 12:39
Sorry. I read that, but it didn't sink in. Running the exe has the same effect of what I was looking for though. If it's hanging, you might be timing out on a connection or something. You might need to add some more extensive logging around yourStartupclass.
– Chris Pratt
Mar 27 at 12:50
That's not a bad idea. If I setstdoutLogEnabled="true" stdoutLogFile=".logsstdout"in my web.config, log files are created there but are never written to. I'll manually try someFile.WriteAllText()s and see if I can't get anything that way.
– neilsimp1
Mar 27 at 12:53
ILoggerFactoryis a hosting service, so it can be injected intoStartup(as well as more specific logging interfaces such asILogger<Startup>). In short, you can add anILogger<Startup>param to yourStartupconstructor, save it to an ivar and then utilize it inConfigureServicesandConfigure. That should make your logging efforts much easier.
– Chris Pratt
Mar 27 at 13:14
|
show 5 more comments
We have a ASP.NET Core MVC application that targets net461 due to requiring Entity Framework for Oracle.
Up until recently, this application has been working fine on both our DEV and QA servers.
We are deploying it as a self-contained app, but also have .NET Core runtime and the ASP.NET Core IIS hosting bundle installed on the servers.
Recently, we started running into issues after deployment where the application will not start up. In the browser, we get 502.5 Process Failure.
On the server, the only error we can find is in the Windows event logs: Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE/<appname>' with physical root 'D:path' created process with commandline 'D:path<appname>.exe ' but failed to listen on the given port '<randomport>'.
Various SO posts and articles I have found say this is usually due to a different runtime version installed on the server vs. the client.
This is self-contained so the runtime is bundled, so I'm not sure that is the issue.
We have not changed what is installed on our development PCs OR on the servers, but have tried uninstalling and re-installing the runtime on the servers.
Since this targets the full framework
net461does it even matter the .NET Core version? Or does only the .NET version matter?
We have some people thinking the issue is with it obtaining a port to listen on. I have tried adding .UseUrls() in Program.cs and adding in Kestrel ports in appSettings.json but nothing makes any difference and we still get the same error.
To make matters more confusing, our current build runs fine on the QA server now but fails to start in DEV. Sometimes we try to publish and it works in one environment but not the other, and sometimes it fails in both. We are following the same deployment steps and the only differences are config files.
We have tried <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest> and without.
We have tried publishing from VS and from dotnet publish.
We have tried net stop was /y net start w3svc.
We even had the server restored to an earlier point before these issues started.
As of now, we can't find any pattern to when/why some deployments will run and some will fail. Is there anyone who can provide some input on this?
.net iis asp.net-core port
We have a ASP.NET Core MVC application that targets net461 due to requiring Entity Framework for Oracle.
Up until recently, this application has been working fine on both our DEV and QA servers.
We are deploying it as a self-contained app, but also have .NET Core runtime and the ASP.NET Core IIS hosting bundle installed on the servers.
Recently, we started running into issues after deployment where the application will not start up. In the browser, we get 502.5 Process Failure.
On the server, the only error we can find is in the Windows event logs: Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE/<appname>' with physical root 'D:path' created process with commandline 'D:path<appname>.exe ' but failed to listen on the given port '<randomport>'.
Various SO posts and articles I have found say this is usually due to a different runtime version installed on the server vs. the client.
This is self-contained so the runtime is bundled, so I'm not sure that is the issue.
We have not changed what is installed on our development PCs OR on the servers, but have tried uninstalling and re-installing the runtime on the servers.
Since this targets the full framework
net461does it even matter the .NET Core version? Or does only the .NET version matter?
We have some people thinking the issue is with it obtaining a port to listen on. I have tried adding .UseUrls() in Program.cs and adding in Kestrel ports in appSettings.json but nothing makes any difference and we still get the same error.
To make matters more confusing, our current build runs fine on the QA server now but fails to start in DEV. Sometimes we try to publish and it works in one environment but not the other, and sometimes it fails in both. We are following the same deployment steps and the only differences are config files.
We have tried <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest> and without.
We have tried publishing from VS and from dotnet publish.
We have tried net stop was /y net start w3svc.
We even had the server restored to an earlier point before these issues started.
As of now, we can't find any pattern to when/why some deployments will run and some will fail. Is there anyone who can provide some input on this?
.net iis asp.net-core port
.net iis asp.net-core port
asked Mar 27 at 12:24
neilsimp1neilsimp1
7201 gold badge6 silver badges23 bronze badges
7201 gold badge6 silver badges23 bronze badges
It sounds like the app is throwing an exception during startup. Try opening a command prompt to the published app directory and runningdotnet MyApp.dll. If you see any exceptions logged to the console window, please update your question with those, along with the stack traces.
– Chris Pratt
Mar 27 at 12:38
It is an .exe file, so there is no .dll. If I try this locally, it takes a minute but eventually starts up. If I try it on the server, it just hangs and nothing shows in the console window.
– neilsimp1
Mar 27 at 12:39
Sorry. I read that, but it didn't sink in. Running the exe has the same effect of what I was looking for though. If it's hanging, you might be timing out on a connection or something. You might need to add some more extensive logging around yourStartupclass.
– Chris Pratt
Mar 27 at 12:50
That's not a bad idea. If I setstdoutLogEnabled="true" stdoutLogFile=".logsstdout"in my web.config, log files are created there but are never written to. I'll manually try someFile.WriteAllText()s and see if I can't get anything that way.
– neilsimp1
Mar 27 at 12:53
ILoggerFactoryis a hosting service, so it can be injected intoStartup(as well as more specific logging interfaces such asILogger<Startup>). In short, you can add anILogger<Startup>param to yourStartupconstructor, save it to an ivar and then utilize it inConfigureServicesandConfigure. That should make your logging efforts much easier.
– Chris Pratt
Mar 27 at 13:14
|
show 5 more comments
It sounds like the app is throwing an exception during startup. Try opening a command prompt to the published app directory and runningdotnet MyApp.dll. If you see any exceptions logged to the console window, please update your question with those, along with the stack traces.
– Chris Pratt
Mar 27 at 12:38
It is an .exe file, so there is no .dll. If I try this locally, it takes a minute but eventually starts up. If I try it on the server, it just hangs and nothing shows in the console window.
– neilsimp1
Mar 27 at 12:39
Sorry. I read that, but it didn't sink in. Running the exe has the same effect of what I was looking for though. If it's hanging, you might be timing out on a connection or something. You might need to add some more extensive logging around yourStartupclass.
– Chris Pratt
Mar 27 at 12:50
That's not a bad idea. If I setstdoutLogEnabled="true" stdoutLogFile=".logsstdout"in my web.config, log files are created there but are never written to. I'll manually try someFile.WriteAllText()s and see if I can't get anything that way.
– neilsimp1
Mar 27 at 12:53
ILoggerFactoryis a hosting service, so it can be injected intoStartup(as well as more specific logging interfaces such asILogger<Startup>). In short, you can add anILogger<Startup>param to yourStartupconstructor, save it to an ivar and then utilize it inConfigureServicesandConfigure. That should make your logging efforts much easier.
– Chris Pratt
Mar 27 at 13:14
It sounds like the app is throwing an exception during startup. Try opening a command prompt to the published app directory and running
dotnet MyApp.dll. If you see any exceptions logged to the console window, please update your question with those, along with the stack traces.– Chris Pratt
Mar 27 at 12:38
It sounds like the app is throwing an exception during startup. Try opening a command prompt to the published app directory and running
dotnet MyApp.dll. If you see any exceptions logged to the console window, please update your question with those, along with the stack traces.– Chris Pratt
Mar 27 at 12:38
It is an .exe file, so there is no .dll. If I try this locally, it takes a minute but eventually starts up. If I try it on the server, it just hangs and nothing shows in the console window.
– neilsimp1
Mar 27 at 12:39
It is an .exe file, so there is no .dll. If I try this locally, it takes a minute but eventually starts up. If I try it on the server, it just hangs and nothing shows in the console window.
– neilsimp1
Mar 27 at 12:39
Sorry. I read that, but it didn't sink in. Running the exe has the same effect of what I was looking for though. If it's hanging, you might be timing out on a connection or something. You might need to add some more extensive logging around your
Startup class.– Chris Pratt
Mar 27 at 12:50
Sorry. I read that, but it didn't sink in. Running the exe has the same effect of what I was looking for though. If it's hanging, you might be timing out on a connection or something. You might need to add some more extensive logging around your
Startup class.– Chris Pratt
Mar 27 at 12:50
That's not a bad idea. If I set
stdoutLogEnabled="true" stdoutLogFile=".logsstdout" in my web.config, log files are created there but are never written to. I'll manually try some File.WriteAllText()s and see if I can't get anything that way.– neilsimp1
Mar 27 at 12:53
That's not a bad idea. If I set
stdoutLogEnabled="true" stdoutLogFile=".logsstdout" in my web.config, log files are created there but are never written to. I'll manually try some File.WriteAllText()s and see if I can't get anything that way.– neilsimp1
Mar 27 at 12:53
ILoggerFactory is a hosting service, so it can be injected into Startup (as well as more specific logging interfaces such as ILogger<Startup>). In short, you can add an ILogger<Startup> param to your Startup constructor, save it to an ivar and then utilize it in ConfigureServices and Configure. That should make your logging efforts much easier.– Chris Pratt
Mar 27 at 13:14
ILoggerFactory is a hosting service, so it can be injected into Startup (as well as more specific logging interfaces such as ILogger<Startup>). In short, you can add an ILogger<Startup> param to your Startup constructor, save it to an ivar and then utilize it in ConfigureServices and Configure. That should make your logging efforts much easier.– Chris Pratt
Mar 27 at 13:14
|
show 5 more comments
1 Answer
1
active
oldest
votes
On application startup, we are scheduling some things using FluentScheduler. On had a start/end time that must be confusing the library. It causes it to freeze up entirely without throwing an exception. Removing/changing the time fixed or issue!
I have a very similar problem. How do you solved it
– Crying Freeman
Mar 27 at 21:49
1
Log statements. Put them everywhere in Program.cs and Startup.cs and log things to file. From there we just looked at what did and didn't log to narrow down where it was stopping.
– neilsimp1
Mar 27 at 21:52
But I’m not using that’s library that you mentioned. I will try with the logs
– Crying Freeman
Mar 27 at 21:53
could this be a problem ? services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1) and then in the server with IIS where deployed my app i have installed the latest version of .NET Core 2.2 Runtime & Hosting Bundle for Windows (v2.2.3)
– Crying Freeman
Mar 28 at 13:22
I don't think so, but I'm really not sure. You may want to search around and see if someone has asked a similar question, or ask your own question if you can't find it. To the best of my knowledge though, what you are describing should still work. Again though, I am no expert here.
– neilsimp1
Mar 28 at 13:51
|
show 1 more 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%2f55377143%2fnet-core-app-targeting-full-framework-stopped-working-in-iis%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
On application startup, we are scheduling some things using FluentScheduler. On had a start/end time that must be confusing the library. It causes it to freeze up entirely without throwing an exception. Removing/changing the time fixed or issue!
I have a very similar problem. How do you solved it
– Crying Freeman
Mar 27 at 21:49
1
Log statements. Put them everywhere in Program.cs and Startup.cs and log things to file. From there we just looked at what did and didn't log to narrow down where it was stopping.
– neilsimp1
Mar 27 at 21:52
But I’m not using that’s library that you mentioned. I will try with the logs
– Crying Freeman
Mar 27 at 21:53
could this be a problem ? services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1) and then in the server with IIS where deployed my app i have installed the latest version of .NET Core 2.2 Runtime & Hosting Bundle for Windows (v2.2.3)
– Crying Freeman
Mar 28 at 13:22
I don't think so, but I'm really not sure. You may want to search around and see if someone has asked a similar question, or ask your own question if you can't find it. To the best of my knowledge though, what you are describing should still work. Again though, I am no expert here.
– neilsimp1
Mar 28 at 13:51
|
show 1 more comment
On application startup, we are scheduling some things using FluentScheduler. On had a start/end time that must be confusing the library. It causes it to freeze up entirely without throwing an exception. Removing/changing the time fixed or issue!
I have a very similar problem. How do you solved it
– Crying Freeman
Mar 27 at 21:49
1
Log statements. Put them everywhere in Program.cs and Startup.cs and log things to file. From there we just looked at what did and didn't log to narrow down where it was stopping.
– neilsimp1
Mar 27 at 21:52
But I’m not using that’s library that you mentioned. I will try with the logs
– Crying Freeman
Mar 27 at 21:53
could this be a problem ? services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1) and then in the server with IIS where deployed my app i have installed the latest version of .NET Core 2.2 Runtime & Hosting Bundle for Windows (v2.2.3)
– Crying Freeman
Mar 28 at 13:22
I don't think so, but I'm really not sure. You may want to search around and see if someone has asked a similar question, or ask your own question if you can't find it. To the best of my knowledge though, what you are describing should still work. Again though, I am no expert here.
– neilsimp1
Mar 28 at 13:51
|
show 1 more comment
On application startup, we are scheduling some things using FluentScheduler. On had a start/end time that must be confusing the library. It causes it to freeze up entirely without throwing an exception. Removing/changing the time fixed or issue!
On application startup, we are scheduling some things using FluentScheduler. On had a start/end time that must be confusing the library. It causes it to freeze up entirely without throwing an exception. Removing/changing the time fixed or issue!
answered Mar 27 at 16:52
neilsimp1neilsimp1
7201 gold badge6 silver badges23 bronze badges
7201 gold badge6 silver badges23 bronze badges
I have a very similar problem. How do you solved it
– Crying Freeman
Mar 27 at 21:49
1
Log statements. Put them everywhere in Program.cs and Startup.cs and log things to file. From there we just looked at what did and didn't log to narrow down where it was stopping.
– neilsimp1
Mar 27 at 21:52
But I’m not using that’s library that you mentioned. I will try with the logs
– Crying Freeman
Mar 27 at 21:53
could this be a problem ? services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1) and then in the server with IIS where deployed my app i have installed the latest version of .NET Core 2.2 Runtime & Hosting Bundle for Windows (v2.2.3)
– Crying Freeman
Mar 28 at 13:22
I don't think so, but I'm really not sure. You may want to search around and see if someone has asked a similar question, or ask your own question if you can't find it. To the best of my knowledge though, what you are describing should still work. Again though, I am no expert here.
– neilsimp1
Mar 28 at 13:51
|
show 1 more comment
I have a very similar problem. How do you solved it
– Crying Freeman
Mar 27 at 21:49
1
Log statements. Put them everywhere in Program.cs and Startup.cs and log things to file. From there we just looked at what did and didn't log to narrow down where it was stopping.
– neilsimp1
Mar 27 at 21:52
But I’m not using that’s library that you mentioned. I will try with the logs
– Crying Freeman
Mar 27 at 21:53
could this be a problem ? services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1) and then in the server with IIS where deployed my app i have installed the latest version of .NET Core 2.2 Runtime & Hosting Bundle for Windows (v2.2.3)
– Crying Freeman
Mar 28 at 13:22
I don't think so, but I'm really not sure. You may want to search around and see if someone has asked a similar question, or ask your own question if you can't find it. To the best of my knowledge though, what you are describing should still work. Again though, I am no expert here.
– neilsimp1
Mar 28 at 13:51
I have a very similar problem. How do you solved it
– Crying Freeman
Mar 27 at 21:49
I have a very similar problem. How do you solved it
– Crying Freeman
Mar 27 at 21:49
1
1
Log statements. Put them everywhere in Program.cs and Startup.cs and log things to file. From there we just looked at what did and didn't log to narrow down where it was stopping.
– neilsimp1
Mar 27 at 21:52
Log statements. Put them everywhere in Program.cs and Startup.cs and log things to file. From there we just looked at what did and didn't log to narrow down where it was stopping.
– neilsimp1
Mar 27 at 21:52
But I’m not using that’s library that you mentioned. I will try with the logs
– Crying Freeman
Mar 27 at 21:53
But I’m not using that’s library that you mentioned. I will try with the logs
– Crying Freeman
Mar 27 at 21:53
could this be a problem ? services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1) and then in the server with IIS where deployed my app i have installed the latest version of .NET Core 2.2 Runtime & Hosting Bundle for Windows (v2.2.3)
– Crying Freeman
Mar 28 at 13:22
could this be a problem ? services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1) and then in the server with IIS where deployed my app i have installed the latest version of .NET Core 2.2 Runtime & Hosting Bundle for Windows (v2.2.3)
– Crying Freeman
Mar 28 at 13:22
I don't think so, but I'm really not sure. You may want to search around and see if someone has asked a similar question, or ask your own question if you can't find it. To the best of my knowledge though, what you are describing should still work. Again though, I am no expert here.
– neilsimp1
Mar 28 at 13:51
I don't think so, but I'm really not sure. You may want to search around and see if someone has asked a similar question, or ask your own question if you can't find it. To the best of my knowledge though, what you are describing should still work. Again though, I am no expert here.
– neilsimp1
Mar 28 at 13:51
|
show 1 more comment
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
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%2f55377143%2fnet-core-app-targeting-full-framework-stopped-working-in-iis%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
It sounds like the app is throwing an exception during startup. Try opening a command prompt to the published app directory and running
dotnet MyApp.dll. If you see any exceptions logged to the console window, please update your question with those, along with the stack traces.– Chris Pratt
Mar 27 at 12:38
It is an .exe file, so there is no .dll. If I try this locally, it takes a minute but eventually starts up. If I try it on the server, it just hangs and nothing shows in the console window.
– neilsimp1
Mar 27 at 12:39
Sorry. I read that, but it didn't sink in. Running the exe has the same effect of what I was looking for though. If it's hanging, you might be timing out on a connection or something. You might need to add some more extensive logging around your
Startupclass.– Chris Pratt
Mar 27 at 12:50
That's not a bad idea. If I set
stdoutLogEnabled="true" stdoutLogFile=".logsstdout"in my web.config, log files are created there but are never written to. I'll manually try someFile.WriteAllText()s and see if I can't get anything that way.– neilsimp1
Mar 27 at 12:53
ILoggerFactoryis a hosting service, so it can be injected intoStartup(as well as more specific logging interfaces such asILogger<Startup>). In short, you can add anILogger<Startup>param to yourStartupconstructor, save it to an ivar and then utilize it inConfigureServicesandConfigure. That should make your logging efforts much easier.– Chris Pratt
Mar 27 at 13:14