title: Could not load file or assembly 'Microsoft.IdentityModel
body: <p>I have developed a SharePoint provider hosted (MVC) app and hosted web application in iis of azure VM (WIN SERVER 2012).</p>
  
  <p>When we try to use application using an app, It throws below error.</p>
  
  <p><a href="https://i.stack.imgur.com/UbE5x.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UbE5x.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>Server Error in '/' Application.</p>
    
    <p>Could not load file or assembly 'Microsoft.IdentityModel,
    Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or
    one of its dependencies. The system cannot find the file specified.</p>
    
    <p>Description: An unhandled exception occurred during the execution of
    the current web request. Please review the stack trace for more
    information about the error and where it originated in the code. </p>
    
    <p>Exception Details: System.IO.FileNotFoundException: Could not load
    file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0,
    Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
    dependencies. The system cannot find the file specified.</p>
    
    <p>Source Error: </p>
    
    <p>An unhandled exception was generated during the execution of the
    current web request. Information regarding the origin and location of
    the exception can be identified using the exception stack trace below.</p>
    
    <p>Assembly Load Trace: The following information can be helpful to
    determine why the assembly 'Microsoft.IdentityModel, Version=3.5.0.0,
    Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.</p>
    
    <p>WRN: Assembly binding logging is turned OFF. To enable assembly bind
    failure logging, set the registry value
    [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There
    is some performance penalty associated with assembly bind failure
    logging. To turn this feature off, remove the registry value
    [HKLM\Software\Microsoft\Fusion!EnableLog].</p>
  </blockquote>
  
  <p>I have already installed dotNet 3.5 and 4.5 in the server. still having the same error. can anyone help me?</p>