Win732 bit DotNetCore deploy IIS error logs

Deployment environment: Win7 Pro 32 database Mysql5.7.27-win32

1. First enable IIS features

2. Install Mysql5.7.27-win32, using the Extract Installation

   installation steps:

   New my.ini configuration file extract the root directory of mysql

 

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
 basedir = C:/IIS/mysql-5.7.27-win32
 datadir = C:/IIS/mysql-5.7.27-win32/data
 port = 3306
# server_id = .....


# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 

install service:

mysqld -install 

If the error: Computer lost MSVCR120.dll

Download and install vcredist_x86

Download: https://www.microsoft.com/en-us/download/details.aspx?id=40784

 After executing the command prompt:. Service successfully installed represents a successful installation

 

Mysql user initialization:

mysqld --initialize-insecure --user=mysql  

After executing the command will generate data directory under the MySQL installation directory and create root user.

 

Start the service:

net start mysql 

After starting MySQL, root user password is empty, set a password, the command is as follows:

mysqladmin -u root -p password new password  

Enter password: the old password

  

When VS release of choosing the right target environment

 

Publish the application pool is always stopped to IIS

 Module DLL C: \ Program Files (x86) \ IIS \ Asp.Net Core Module \ V2 \ aspnetcorev2.dll failed to load. The data returned an error message.

To download VC run:

Reference: https://q.cnblogs.com/q/111731/

1, dotnet hosting 2.2.0 need ++, 2015 C
2, C ++, 2015 https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=42334 need KB2919355
. 3, KB2919355 need KB2919442 https: //www.microsoft.com/en-us/download/details.aspx?id=42153

 

.net core 2.2 HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure

Then the error:

Failed to load the dll from [C:\Program Files\dotnet\host\fxr\1.0.1\hostfxr.dll

These two errors are caused due to missing patches win7:

You need to install the patch: KB2533623

https://www.cnblogs.com/yilezhu/p/10057789.html

Download the corresponding patch:

https://support.microsoft.com/en-us/help/2533623/microsoft-security-advisory-insecure-library-loading-could-allow-remot

Guess you like

Origin www.cnblogs.com/kennyliu/p/11310790.html