To enable the ASP.NET for the .NET Framework 2.0 validation controls to work with a reverse proxy, you must change the value of the rendered script so the Web site name is no longer included in the script. To do this, follow these steps:
- Open the Web page on which you experience this problem.
- Right-click the Web page, and then click View Source.
- In the source code, locate the two script tags that resemble the following:
<script src="/<ProjectName>/WebResource.axd?d=M-2H4F_TWkJsT5eDfHO7vg2&t=632963187870317500" type="text/javascript"></script>
<script src="/<ProjectName>/WebResource.axd?d=5NdnwDKzh5YVQcqyFYF0E1F2bsUbbX6WmPenkWcH-1Y1&t=632963187870317500" type="text/javascript"></script>
<script type="text/javascript">
Note <ProjectName> represents the name of the project. - Paste the URL from the first script tag in step 3 into the Address bar in Windows Internet Explorer, and then press ENTER.
Note The link should resemble the following URL:http://ServerName/ProjectName/WebResource.axd?d=M-2H4F_TWkJsT5eDfHO7vg2&t=632963187870317500
- In the File Download dialog box, click Save.
- In the File name box, type WebUIValidation.js, locate the DriveLetter:\Inetpub\Wwwroot\Aspnet_client folder on the computer that is running ISA Server 2006, and then click Save.
- Paste the URL from the second script tag in step 3 into the Address bar in Internet Explorer, and then press ENTER.
Note The link should resemble the following URL:http://ServerName/ProjectName/WebResource.axd?d=5NdnwDKzh5YVQcqyFYF0E1F2bsUbbX6WmPenkWcH-1Y1&t=632963187870317500
- In the File Download dialog box, click Save.
- In the File name box, type WebForms.js, locate the DriveLetter:\Inetpub\Wwwroot\Aspnet_client folder on the computer that is running ISA Server 2006, and then click Save.
Note You can save these files anywhere that can be accessed through the proxy service. This procedure uses the Aspnet_client folder because this folder is one of the better choices for storing these files. - Locate the following folder on the computer that is running ISA Server 2006:
WindowsDirectory\Microsoft.NET\Framework\v2.0.50272\CONFIG\
- In Notepad, open the Web.config file.
- Locate the following line of code in the Web.config file:
<webControls clientScriptsLocation="/aspnet_client/{0}/{1}/" />
- Replace the line code that you located in step 12 with the following line of code:
<webControls clientScriptsLocation="/aspnet_client/" />
Note Make sure that this line of code specifies the location of the client files that you saved in steps 6 and 9. Replace "/aspnet_client/" with the folder in which the client files reside. - On the File menu, click Save.
- On the File menu, click Exit.