'ASP 0201' Invalid Default Script Language

This is a pretty common ASP error that could due to number of reasons; before we go into various ways to fix this error, let’s take a look at the error itself. So what’s the complete error message? Well, I got the following when simulating one of the possible cause of this. Typically, you will see this:

Active Server Pages error 'ASP 0201'
Invalid Default Script Language
The default script language specified for this application is invalid.

Or similar error message as highlighted in this KB - ASP0201: Invalid Default Script Language. As indicated in the article, the error is caused by non-supported scripting languages that IIS is unable to recognize. Now how to fix this? Try the following:

1) Make sure proper scripting language is defined in IIS. As per the above article, make sure the Default ASP Language is set to VBScript (by default), or JScript if you preferred Java Scripting.
2) Take note that your code will override the first setup if you have <% Language=”language” %> defined at the beginning of your script. So, double checks to ensure you don’t have spelling or typo error. It should be <% Language=”VBScript” %>
3) From time to time, this may due to incomplete DLL registration for those scripting engine and to get the scripting engine up to date, please get the latest scripting engine here. At the time of this writing, the latest version is 5.6.
4) Now, I have seen issue when installing the Scripting engine, e.g. unable to register certain DLLs, etc. What you can try next is to register the following DLLs:
regsvr32 %windir%\system32\VBscript.dll
regsvr32 %windir%\system32\JScript.dll
regsvr32 %windir%\system32\Inetsrv\Asp.dll
5) Moving on, if you reach this step, it is likely due to permission issue. E.g. iusr_computername account for anonymous access does not has READ permission over the related DLLs, you then try grant NTFS read permission to the DLLs in step 4 for your request account.
6) Next, following step 5 – if you still facing the same problem, you could take another step to ensure that all relevant permissions are in place, refer the following KBs:
IIS 4 - Required NTFS permissions and user rights for IIS 4.0
IIS 5 - How to set required NTFS permissions and user rights for an IIS 5.0 Web server
IIS 6 - Default permissions and user rights for IIS 6.0
7) Typically, if you have followed all the previous steps you should no longer see the same error message. Just in case, you missed some of the configurations in earlier steps, you can then temporary make the iusr_computername or your defined request user account to the local administrators group. Take note, this is just for troubleshooting purpose! You should NOT grant the default anonymous account with local administrative rights, and make sure after the troubleshooting you remove the account for the administrators group.

The idea behind this is to check if adding the user to this administrators group fixes the error, if yes, it is confirmed that there are yet permission issues that not being addressed or overlooked in previous steps. After removing the account from the administrators group, you can then get Filemon and Regmon from sysinternals.com to trace the permission issue.

Published Mon, Apr 3 2006 14:28 by qbernard
Filed under:

Comments

# re: 'ASP 0201' Invalid Default Script Language

Well, it is nice of you to help. Yet, it would be more hlepful if you can add info on how to do it all from step 5 - for people like me. thanks anyway. i was able to do untill step 4/ when i reach step 5 i don't know how to proceed further. I still have that damn error. krs kristtee@mail.com

Sunday, October 08, 2006 11:22 PM by Krish

# re: 'ASP 0201' Invalid Default Script Language

Oh for step5 is actually related to step6 :) it is about NTFS permissions. so for example to manipulate in XP you can refer to this kb.

How to set, view, change, or remove file and folder permissions in Windows XP

http://support.microsoft.com/?id=308418

Monday, October 09, 2006 9:31 AM by qbernard

# re: 'ASP 0201' Invalid Default Script Language

晕。。。还是不行

Thursday, November 09, 2006 3:22 AM by PCPPC

# re: 'ASP 0201' Invalid Default Script Language

什么不行? 所有步骤都试了吗?什么错误信息?

Sunday, November 12, 2006 9:06 PM by qbernard

# re: 'ASP 0201' Invalid Default Script Language

I tried all of the above, including adding the IUSER account to Administrators, and I *still* get the 0201 error.  Any more ideas?

Monday, November 13, 2006 4:35 AM by Marc Wilson

# re: 'ASP 0201' Invalid Default Script Language

Mmm.. this is weird. when you register those dll, any error msgs?

Tuesday, November 14, 2006 9:07 PM by qbernard

# re: 'ASP 0201' Invalid Default Script Language

It's a bug.

Wednesday, November 22, 2006 9:11 PM by Jake

# Errore con IIS - MasterDrive.it - Information Technology Developers Community

Pingback from  Errore con IIS - MasterDrive.it - Information Technology Developers Community