After half an afternoon, I did not find a solution to the problem. I just solved the problem and shared it with others. I don't want to be confused like me.
How to solve the HTTP/1.1 500 server error when creating an ASP. NET Project
Step 1 (enable the MSDTC Service)
Open Control Panel → Administrative Tools → Services → find service Distributed Transaction Coordinator → right-click Properties → change Startup type to manual or automatic, then OK → right-click to start the service
Note: If the service does not exist or cannot be started, it means that your machine may not have installed the service. Start to run and enter the command
1. iisreset/stop
2. Net user ASPnet/delete
3. aspnet_regiis-I
4. MSDTC-install
5. Follow the steps above to start the service. If the service still cannot be found, restart the computer.
Step 2
Start → run → cmd
Enter cd % WINDIR %/system32/inetsrv and press Enter.
Enter rundll32 wamreg. dll, createiispackage, and press Enter.
Enter regsvr32 asptxn. dll and press Enter.
Step 3
Start running input iisreset/start