Coding and Gaming
Development Blog Categories (3 Articles)
This article will walk through upgrading to .NET Core 3.0.
Overall, it was pretty smooth, but I did run into 3 big things...
  1. Newtonsoft is depreciated.
    First, have a plan ready for replacing Newtonsoft as it's been replaced. The new recommendation is System.Text.Json.
  2. Second, if you want to continue to use MVC routing you need to add this to the Startup.cs => ConfigureServices function.
    services.AddMvc(option => option.EnableEndpointRouting = false);
  3. Webconfig => hostingModel="inprocess"
    <aspNetCore processPath="dotnet" arguments=".\Website.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    Finally, I lost a lot of time on this good one. After building and deploying, I was having issues on my production server. For some reason, this inprocess hosting model was added and seemed to screw everything up, I still want to see why that isn't working, but for now I've switched it using a setting in the csproj file:
    <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>

Permanent Link
If this article helped you, or you have any thoughts on how to do this better, please click the Like button and/or leave a comment below.

Likes: [1]

Comments: [0]






(this is only to show your gravatar icon)



COMING SOON: how to setup debug messges production error page etc
// Debug // Error Messages!!! env.EnvironmentName = EnvironmentName.Development; //if (env.IsDevelopment()) //{ app.UseDeveloperExceptionPage(); app.UseBrowserLink(); //} //else //{ // app.UseExceptionHandler("/Error"); //}
// Debug // Error Messages!!! var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseSetting("detailedErrors", "true")
usually missing .well-known doesnt get deployed?, link to the other blog how can i fix this? add stdout in the webconfig (does this blog need a title change? maybe: "how to debug production issues with dotnet core") What problems are you having today??
Maybe I can help.

Permanent Link
If this article helped you, or you have any thoughts on how to do this better, please click the Like button and/or leave a comment below.

Likes: [0]

Comments: [0]






(this is only to show your gravatar icon)



My Favorite Microsoft Links and Tools


Category
Website Development
Sub Category
.NET
Last Updated
1/26/2019

Reasons I Love Microsoft:

Windows / Azure / .NET Core / C# / Visual Studio / GitHub / SQL Server



The Best Microsoft Development Websites



What sites are your favorite?


Permanent Link
If this article helped you, or you have any thoughts on how to do this better, please click the Like button and/or leave a comment below.

Likes: [0]

Comments: [0]






(this is only to show your gravatar icon)