@manhng

Welcome to my blog!

DotNet Core 3.1

February 14, 2020 15:11

DotNet Core 3.1 (edit)

Microsoft Windows 10 + Microsoft Visual Studio Enterprise 2019 16.4.5

https://dotnet.microsoft.com/download/dotnet-core/3.1

Windows Folder: %systemroot% | %windir%

SDK Folder: C:\Program Files\dotnet\sdk\3.1.101

IIS Express Folder: C:\Program Files (x86)\IIS Express\IISExpress.exe

IIS Log Folder: %SystemDrive%\inetpub\logs\LogFiles\

Windows Hosting:

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.1

IIS Logging:

https://docs.microsoft.com/en-us/iis/manage/provisioning-and-managing-iis/configure-logging-in-iis

%SystemDrive%\inetpub\logs\LogFiles\

As a best practice, store log files, such as failed request trace logs, in a directory other than %systemroot%.

IIS and Azure Errors:

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/azure-iis-errors-reference?view=aspnetcore-3.1

Mixcore CMS 

https://github.com/mixcore/mix.core

EF Core

https://github.com/mixcore/mix.heart

ASP.NET Core File Logger

https://nblumhardt.com/2016/10/aspnet-core-file-logger/

HTTP Status Code

200 OK — Response was successful
201 Created — The entity submitted in the request body was created (synchronously)
202 Accepted — The entity submitted in the request body will be created (asynchronously)
204 No Content — No need to update the view
205 Reset Content — Client should reset the view
206 Partial Content —Partial content returned (e.g. ranged or paginated content)
400 Bad Request — The request was malformed
401 Unauthorized — The client is not authenticated with the server
403 Forbidden — The client is authenticated with the server, but not authorized to perform the requested operation on the requested resource
405 Method Not Allowed — The HTTP method used is not allowed on the requested URL
409 Conflict — There was a conflict when performing the operation, for example, the request attempted to update a resource that had already changed
500 Internal Server Error — An error on the server occurred and was not handled
501 Not Implemented —The HTTP method is not currently implemented for the requested resource
503 Service Unavailable — The server or one of it’s dependencies (such as a database) is unable to respond due to overload, outages, etc.

HTTP Error 500.30 - ANCM In-Process Start Failure

http://www.learnmsnet.com/post/HTTP-Error-50030-ANCM-In-Process-Start-Failure

https://stackoverflow.com/questions/54248138/http-error-500-30-ancm-in-process-start-failure-error-in-asp-net-core-2-2

In the Actions sidebar of IIS Manager > Application Pools, select Set Application Pool Defaults or Advanced Settings. Locate Enable 32-Bit Applications and set the value to False.

Install the .NET Core Hosting Bundle

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.1#install-the-net-core-hosting-bundle

Change AspNetCoreModule -> AspNetCoreModuleV2 in Web.config

  • AspNetCoreModule
  • AspNetCoreModuleV2

Web.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\Mix.Cms.Web.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>

HTTP Error 502.5 - Process Failure

Setting up IIS to run .NET Core Applications

http://www.learnmsnet.com/post/Setting-up-IIS-to-run-NET-Core-Applications

https://docs.microsoft.com/en-us/aspnet/core/test/troubleshoot-azure-iis?view=aspnetcore-3.1

Categories

Recent posts