There are many other solutions on the Internet, but I tried for several hours, but none of them solved the problem. Finally, I solved it through this method.
question:
1. When accessing the ASP page, the following error occurs:
Active Server Pages error 'ASP 0201'
Error invalid default script language
The application's default scripting language is invalid
2. Check HKEY_LOCAL_MACHINE/SOFTWARE/Classes and find that the permissions of this Classes have been changed to Everyone.
If the above error occurs on your ASP page and you see that the Classes branch permission on the registry only has one Everyone, congratulations on winning.
Solution:
Click the Classes permission dialog box, click the [Advanced] button below, in [Advanced Security Settings], in the [Permissions] tab, remove Allow parent permissions to propagate to. . . This check box, and then delete all the permission items, and then we will restore them.
Recovery item 1. User group users
Recovery item 2. User group Power Users
Recovery item 3. User group Administrators
Recovery item 4. User group CREATOR OWNER
Recovery item 5. User group SYSTEM
In [Advanced Security Settings], navigate to the [Permissions] tab, click Add--"Advanced--"Search Now, find those user groups, and add them one by one. When adding, be careful to select their permissions and completely Control (for security, you can also change it to inheritance later, just check the Allow the parent's permissions to propagate to... checkbox, that's what I did.), finally confirm it is complete, and close the registry.
Please restart your IIS. When you open the ASP page again, the error will no longer appear and the page will be normal.