I got a program to backup the database in SQL with C#.I want to backup SQL versions 2014 and above.
I have the following section in web.config:
<dependentAssembly>
<assemblyIdentity name="Microsoft.SqlServer.SqlClrProvider" publicKeyToken="89845dcd8080cc91" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.100.0.0" newVersion="13.100.0.0" />
</dependentAssembly>
In bin, I have the following DLL:
Previously, it worked without any problem, but now it gives the following message during the backup:
Could not load file or assembly ‘Microsoft.SqlServer.SqlClrProvider, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91′ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
How can my problem be solved?