title: same ScriptResource,axd loaded twice
body: <p>Good Morning,</p>
  
  <p>We have an existing application that is stable and error free on a <strong>Windows Server 2008R2</strong> with IIS 7.5 / .NET 4.5. </p>
  
  <p>We are planning a <strong>move to Windows Server 2012R2</strong> with IIS 8.5 / .NET 4.5 and are now encountered the problem that the application (<strong>identical binaries / configuration</strong>) are indeed injected <strong>two ScriptResource.axd</strong> files, but both contain the <strong>same content</strong> (different URLs). </p>
  
  <p>Because of this, the MicrosoftAjaxWebforms.js, which provides "Sys.WebForms" is missing and i'm getting the Error </p>
  
  <p><code>Unable to get property 'PageRequestManager' of undefined or null reference</code></p>
  
  <p>The problem is <strong>browser Independent</strong> on <strong>two independent virtual machines</strong>. </p>
  
  <p>The application runs in classic mode, the web.config does not contain the &lt; xhtmlConformance > tag. 
  There are all the latest server updates.
  All other functionalities of the application are working properly.</p>
  
  <p>I hope some of you encountered the same Problem and know the solution.</p>
  
  <p>Greetings, Verni</p>
  
  <p>EDITH:</p>
  
  <p>Snippet of web.config (system.web section)</p>
  
  <pre><code>&lt;system.web&gt;
  &lt;httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters="" targetFramework="4.5" enableVersionHeader="false" /&gt;
  &lt;sessionState timeout="30" mode="StateServer" stateConnectionString="tcpip=...:42424" /&gt;
  &lt;httpModules&gt;
    &lt;add name="LinkPartnerModule" type="....LinkPartnerModule, ..." /&gt;
    &lt;add name="RedirectModule" type="....RedirectModule, ..." /&gt;
    &lt;add name="ScriptCompressorModule" type="ScriptCompressorModule, ..." /&gt;
  &lt;/httpModules&gt;
  &lt;httpHandlers&gt;
    &lt;remove verb="*" path="scriptresource.axd"/&gt; // added from StackOverflow
    &lt;add verb="*" path="*js.axd" type="ScriptCompressorHandler" /&gt;
  &lt;/httpHandlers&gt;
  &lt;compilation debug="false" defaultLanguage="c#" targetFramework="4.5"&gt;
    &lt;assemblies&gt;
      &lt;add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
      &lt;add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
      &lt;add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
      &lt;add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
      &lt;add assembly="System.Data.Services.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
      &lt;add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
      &lt;add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /&gt;
      &lt;add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
    &lt;/assemblies&gt;
  &lt;/compilation&gt;
  &lt;globalization culture="de-DE" enableClientBasedCulture="true" fileEncoding="utf-8" uiCulture="de" /&gt;
  &lt;pages compilationMode="Auto" styleSheetTheme="*" validateRequest="false" enableEventValidation="false" controlRenderingCompatibilityVersion="3.5" enableViewState="true" clientIDMode="AutoID"&gt;
  &lt;/system.web&gt;
  &lt;system.web.extensions&gt;
    &lt;scripting&gt;
      &lt;scriptResourceHandler enableCompression="true" enableCaching="true" /&gt;
    &lt;/scripting&gt;
  &lt;/system.web.extensions&gt;
  </code></pre>