Monday, July 11, 2011

Error-‘unable to find script library '/aspnet_client/system_web/1_1_4322/WebUIValidation.js’

Error-‘unable to find script library '/aspnet_client/system_web/1_1_4322/WebUIValidation.js’
We were getting following error in of our Asp.net(.net framework 1.5) website

‘unable to find script library '/aspnet_client/system_web/1_1_4322/WebUIValidation.js’

This error mostly occur if you are using validation controls in your website

The aspnet_client folder contains the WebUIValidation.js which is required to handle the asp.net validation controls.

After googling on web I did find following which you may also find useful:


If the aspnet_client folder is missing in the IIS virtual directory listing you may encounter the above error. to resolve this, you may need to run the following from command prompt

%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -c

This will install the aspnet_client folder to the default virtual directory website.

Further, if you are using a sub-virtual directory you need to have this aspnet_client folder in your root directory as well.



if you are still having this issue try following:

a) IIS Manager-->Web Sites-->Default Website-->aspnet_client

Properties-->Directory Security-->

Edit IP Address and Domain Name Restrictions

Make sure, by default, all computers will be granted permission.

b) Another potential cause of this error is that your default website is set to .NET Framework 2.0, and you're trying to debug a .NET Framework 1.1 application. In this case, you can change the setting on the ASP.NET tab of the Default Web Site's properties

c)Check if the script files directory(/aspnet_client/system_web/1_1_4322/) in IIS manager to see whether it has been granted read access.

No comments:

Post a Comment

Open default email app in .NET MAUI

Sample Code:  if (Email.Default.IsComposeSupported) {     string subject = "Hello!";     string body = "Excellent!";    ...