[Solved] Error in load assembly ‘System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1’

You can add the following statement to App.config

Just add it directly under the configuration node. 

This will allow you to use the latest 5.0.0.0 version.

<runtime> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
       <dependentAssembly> 
          <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" 
                            publicKeyToken="b03f5f7f11d50a3a" 
                            culture="neutral" /> 
          <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" 
                           newVersion="5.0.0.0"/> 
       </dependentAssembly> 
    </assemblyBinding> 
 </runtime>

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *