Microsoft KB Archive/931762: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - "&" to "&")
 
(2 intermediate revisions by the same user not shown)
Line 58: Line 58:
<li>Right-click the Web page, and then click '''View Source'''.</li>
<li>Right-click the Web page, and then click '''View Source'''.</li>
<li><p>In the source code, locate the two script tags that resemble the following:</p>
<li><p>In the source code, locate the two script tags that resemble the following:</p>
<pre class="codesample">&lt;script src=&quot;/&lt;ProjectName&gt;/WebResource.axd?d=M-2H4F_TWkJsT5eDfHO7vg2&amp;amp;t=632963187870317500&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
<pre class="codesample"><script src=&quot;/<ProjectName>/WebResource.axd?d=M-2H4F_TWkJsT5eDfHO7vg2&amp;t=632963187870317500&quot; type=&quot;text/javascript&quot;></script>


&lt;script src=&quot;/&lt;ProjectName&gt;/WebResource.axd?d=5NdnwDKzh5YVQcqyFYF0E1F2bsUbbX6WmPenkWcH-1Y1&amp;amp;t=632963187870317500&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
<script src=&quot;/<ProjectName>/WebResource.axd?d=5NdnwDKzh5YVQcqyFYF0E1F2bsUbbX6WmPenkWcH-1Y1&amp;t=632963187870317500&quot; type=&quot;text/javascript&quot;></script>
&lt;script type=&quot;text/javascript&quot;&gt;</pre>
<script type=&quot;text/javascript&quot;></pre>
<p>'''Note''' <code>&lt;ProjectName&gt;</code> represents the name of the project.</p></li>
<p>'''Note''' <code><ProjectName></code> represents the name of the project.</p></li>
<li>Paste the URL from the first script tag in step 3 into the Address bar in Windows Internet Explorer, and then press ENTER.<br />
<li>Paste the URL from the first script tag in step 3 into the Address bar in Windows Internet Explorer, and then press ENTER.<br />
<br />
<br />
Line 68: Line 68:
<div class="indent">
<div class="indent">


<p>http://<code>ServerName</code>/<code>ProjectName</code>/WebResource.axd?d=M-2H4F_TWkJsT5eDfHO7vg2&amp;amp;t=632963187870317500</p>
<p>http://<code>ServerName</code>/<code>ProjectName</code>/WebResource.axd?d=M-2H4F_TWkJsT5eDfHO7vg2&amp;t=632963187870317500</p>


</div></li>
</div></li>
Line 78: Line 78:
<div class="indent">
<div class="indent">


<p>http://<code>ServerName</code>/<code>ProjectName</code>/WebResource.axd?d=5NdnwDKzh5YVQcqyFYF0E1F2bsUbbX6WmPenkWcH-1Y1&amp;amp;t=632963187870317500</p>
<p>http://<code>ServerName</code>/<code>ProjectName</code>/WebResource.axd?d=5NdnwDKzh5YVQcqyFYF0E1F2bsUbbX6WmPenkWcH-1Y1&amp;t=632963187870317500</p>


</div></li>
</div></li>
Line 93: Line 93:
<li>In Notepad, open the Web.config file.</li>
<li>In Notepad, open the Web.config file.</li>
<li><p>Locate the following line of code in the Web.config file:</p>
<li><p>Locate the following line of code in the Web.config file:</p>
<pre class="codesample">&lt;webControls clientScriptsLocation=&quot;/aspnet_client/{0}/{1}/&quot; /&gt;</pre></li>
<pre class="codesample"><webControls clientScriptsLocation=&quot;/aspnet_client/{0}/{1}/&quot; /></pre></li>
<li><p>Replace the line code that you located in step 12 with the following line of code:</p>
<li><p>Replace the line code that you located in step 12 with the following line of code:</p>
<pre class="codesample">&lt;webControls clientScriptsLocation=&quot;/aspnet_client/&quot; /&gt;</pre>
<pre class="codesample"><webControls clientScriptsLocation=&quot;/aspnet_client/&quot; /></pre>
<p>'''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.</p></li>
<p>'''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.</p></li>
<li>On the '''File''' menu, click '''Save'''.</li>
<li>On the '''File''' menu, click '''Save'''.</li>

Latest revision as of 14:18, 21 July 2020

Knowledge Base


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:

  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&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.

  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&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&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.



Additional query words: ISA WebControls VS 2005

Keywords: kbhowto kbpubtypekc kbmsccsearch KB931762