The requested content appears to be script and therefore will not be served by the static file handler.

When deploying a website in iis7, I encountered the following problems:

The following error occurred:
The requested content appears to be script and therefore will not be processed by the static file handler.
Requests are matched against wildcard mime mappings. Requests are mapped to static file handlers. If there are different prerequisites. The request will be mapped to another handler, as shown in the figure:

 

 

The solution is as follows:
Site - Advanced Settings - Application Pool - (set the corresponding version of net), as shown in the figure:

 

Guess you like

Origin blog.csdn.net/jjzaihaozhe/article/details/128713103