Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to use the ASP.NET for the .NET Framework 2.0 validation controls with an ISA Server 2006 reverse proxy


View products that this article applies to.

Introduction

A Microsoft ASP.NET for the Microsoft .NET Framework 2.0 Web site uses client-side validation. When you use Microsoft Internet Security and Acceleration (ISA) Server 2006 in reverse proxy mode on the Web site, the reverse proxy service fails. The WebUtilValidation.js file creates a full path and a relative path that fails with the reverse proxy lookup.

↑ Back to the top


More information

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:
  1. Open the Web page on which you experience this problem.
  2. Right-click the Web page, and then click View Source.
  3. In the source code, locate the two script tags that resemble the following:
    <script src="/<ProjectName>/WebResource.axd?d=M-2H4F_TWkJsT5eDfHO7vg2&amp;t=632963187870317500" type="text/javascript"></script>
    
    <script src="/<ProjectName>/WebResource.axd?d=5NdnwDKzh5YVQcqyFYF0E1F2bsUbbX6WmPenkWcH-1Y1&amp;t=632963187870317500" type="text/javascript"></script>
    <script type="text/javascript">
    
    Note <ProjectName> represents the name of the project.
  4. 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&amp;t=632963187870317500
  5. In the File Download dialog box, click Save.
  6. 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.
  7. 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&amp;t=632963187870317500
  8. In the File Download dialog box, click Save.
  9. 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.
  10. Locate the following folder on the computer that is running ISA Server 2006:
    WindowsDirectory\Microsoft.NET\Framework\v2.0.50272\CONFIG\
  11. In Notepad, open the Web.config file.
  12. Locate the following line of code in the Web.config file:
    <webControls clientScriptsLocation="/aspnet_client/{0}/{1}/" />
  13. 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.
  14. On the File menu, click Save.
  15. On the File menu, click Exit.

↑ Back to the top


Keywords: KB931762, kbhowto

↑ Back to the top

Article Info
Article ID : 931762
Revision : 3
Created on : 12/3/2007
Published on : 12/3/2007
Exists online : False
Views : 564