Development, Gaming, and Hacking
Brought to you by:
Matrix Tools
(3 / 62 Articles)
View Categories
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: [0]

Comments: [0]






(if you'd like us to reply and/or show your gravatar image)

COMING SOON! Hit the Heart Button if you want me to finish this blog next!


how to setup debug messges dotnet core production error page etc usually missing .well-known doesnt get deployed?, link to the other blog how can i fix this? add stdout in the webconfig

// 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")

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]






(if you'd like us to reply and/or show your gravatar image)

Microsoft: The Best Tools and Resources


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]






(if you'd like us to reply and/or show your gravatar image)