Resolves the parser error message: Unrecognized property "TargetFramework". Note that property names are case-sensitive. After the problem, another IIS issue is encountered, as follows
Server error in Application "Exportexcel" Internet Information Services 7.5 Error Digest HTTP error 500.21-internal server error handler " Pagehandlerfactory-integrated "There is an error module in its module list" Managedpipelinehandler " verbose error message module IIS WEB core Notification Executerequesthandler handler pagehandlerfactory-integrated error code 0x8007000d requested URL/ HTTP/ 192.168.0.100:80/exportexcel.aspx Physical Path F:\Project\ExportExcel\ExportExcel\ExportExcel.aspx Logon method Anonymous Logon user The most likely cause of anonymity is the use of managed handlers, but no installation or complete installation of ASP. There is a typographical error in the configuration of the handler module list. action to try: If you want to use a managed handler, install ASP. Make sure that the name of the handler module is specified correctly. The module name is case-sensitive and uses the modules= "Staticfilemodule,defaultdocumentmodule,directorylistingmodule" format. Links and more information the IIS kernel does not recognize this module. See more information»
Because it is a reload of Visual Studio, and it is installed in Visual Studio, then IIS is installed, so you need to register IIS in the native ASP.
Workaround:
1. Find the local Framework address, there is a aspnet_regiis.exe
2. Open the Run window (win + R) input cmd, enter, open the console, copy the Framework's local path, right-click Paste
(Paste before entering the CD, used to jump to the development directory) and then enter aspnet_regiis.exe-i .
The following prompt indicates successful registration. The project can then open successfully.
(-I is a parameter, you can enter aspnet_regiis.exe and then enter, you will see the parameter information)
HTTP Error 500.21-internal Server error handler "pagehandlerfactory-integrated" has an error module in its module list "Managedpipelinehandler"