title: Access control Service and Azure Websites Could not load System.IdentityModel.Services
body: <p>I've created an ASP.NET MVC 4 app using visual studio 2012 RC on Windows 8 release preview. I downloaded and installed the WIF toolkit and used the "Identity and Access" option in the solution menu to add my Access Control Service metadata endpoint. Tested locally and all is well. When I deployed to my free azure website however I get the yellow screen saying</p>
  
  <blockquote>
    <p>"Could not load file or assembly 'System.IdentityModel.Services,
    Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or
    one of its dependencies. The system cannot find the file specified."</p>
  </blockquote>
  
  <p>These assemblies aren't referenced in the project, so I added them, sent to output to the bin folder and redeployed. I then got a message about the assembly probably being tampered with. Does anyone know how to overcome this?</p>
  
  <p>EDIT
  Adding local causes this error</p>
  
  <blockquote>
    <p>Could not load file or assembly 'System.IdentityModel.Services' or one
    of its dependencies. Strong name signature could not be verified.  The
    assembly may have been tampered with, or it was delay signed but not
    fully signed with the correct private key. (Exception from HRESULT:
    0x80131045)</p>
  </blockquote>
  
  <p>In the web config the module is deinfed as</p>
  
  <pre><code>&lt;system.webServer&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
      &lt;modules&gt;
        &lt;add name="WSFederationAuthenticationModule" type="System.IdentityModel.Services.WSFederationAuthenticationModule, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler" /&gt;
        &lt;add name="SessionAuthenticationModule" type="System.IdentityModel.Services.SessionAuthenticationModule, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler" /&gt;
      &lt;/modules&gt;
    &lt;/system.webServer&gt;
  </code></pre>
  
  <p>Thanks</p>