i'm trying to define a separate configuration file (lets say redirect.config). This separate config file contains assemblyBindings as follow:
<?xml version="1.0" encoding="utf-8" ?>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="NServiceBus.Core" publicKeyToken="9fc386479f8a226c" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="4.5.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
In the app.config I want to reference this redirect.config:
<runtime configSource="Redirects.config" />
Unfortunately it is not working at all. Copy to Output Directory is set to "copy always". Any ideas? Thanks in advance
Do this way add this to you web.config
Now in your C# code call it by