Microsoft KB Archive/931762

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

Article ID: 931762

Article Last Modified on 12/3/2007

-

APPLIES TO

 Microsoft .NET Framework 2.0, when used with:  Microsoft Internet Security and Acceleration Server 2006 Enterprise Edition

 Microsoft Internet Security and Acceleration Server 2006 Standard Edition 

-



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.



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:  Open the Web page on which you experience this problem.</li> Right-click the Web page, and then click View Source.</li>  In the source code, locate the two script tags that resemble the following: <script src=&quot;/<ProjectName>/WebResource.axd?d=M-2H4F_TWkJsT5eDfHO7vg2&amp;t=632963187870317500&quot; type=&quot;text/javascript&quot;>

<script src=&quot;/<ProjectName>/WebResource.axd?d=5NdnwDKzh5YVQcqyFYF0E1F2bsUbbX6WmPenkWcH-1Y1&amp;t=632963187870317500&quot; type=&quot;text/javascript&quot;> <script type=&quot;text/javascript&quot;> Note  represents the name of the project. </li> 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:// / /WebResource.axd?d=M-2H4F_TWkJsT5eDfHO7vg2&amp;t=632963187870317500

</li> In the File Download dialog box, click Save.</li> In the File name box, type WebUIValidation.js, locate the :\Inetpub\Wwwroot\Aspnet_client folder on the computer that is running ISA Server 2006, and then click Save.</li> 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:// / /WebResource.axd?d=5NdnwDKzh5YVQcqyFYF0E1F2bsUbbX6WmPenkWcH-1Y1&amp;t=632963187870317500

</li> In the File Download dialog box, click Save.</li> In the File name box, type WebForms.js, locate the :\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.</li> Locate the following folder on the computer that is running ISA Server 2006:

\Microsoft.NET\Framework\v2.0.50272\CONFIG\

</li> In Notepad, open the Web.config file.</li>  Locate the following line of code in the Web.config file: <webControls clientScriptsLocation=&quot;/aspnet_client/{0}/{1}/&quot; /> </li>  Replace the line code that you located in step 12 with the following line of code: <webControls clientScriptsLocation=&quot;/aspnet_client/&quot; /> Note Make sure that this line of code specifies the location of the client files that you saved in steps 6 and 9. Replace &quot;/aspnet_client/&quot; with the folder in which the client files reside. </li> On the File menu, click Save.</li> On the File menu, click Exit.</li></ol>

Additional query words: ISA WebControls VS 2005

Keywords: kbhowto kbpubtypekc kbmsccsearch KB931762

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.