I have a unit test which calls a WCF service, using basicHttpsBinding (new in .NET 4.5). If I run the unit test with the built in test engine in Visual Studio 2013 all works fine, but trying to do the same with Resharper 8.2 gets the following exception:
A first chance exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Configuration.dll
Additional information: Configuration binding extension 'system.serviceModel/bindings/basicHttpsBinding' could not be found. Verify that this binding extension is properly registered in system.serviceModel/extensions/bindingExtensions and that it is spelled correctly.
I guess the reason is that Resharper starts up the test session running .NET 4.0 instead of 4.5. Am I right and can I do anything about it? Changing the framwork to CLR4 instead of Automatic doesn't change anything.
All assemblies are compiled for .NET 4.5. In the app.config file for the test project the bindings are declared:
<add binding="basicHttpsBinding" scheme="https" />
<binding name="BasicHttpsBinding_IVanService" ... >
<endpoint address="..." binding="basicHttpsBinding" contract="Hogia.Business.Common.Van.Facades.ServiceContracts.IVanService" name="BasicHttpsBinding_IVanService" />
Hogia Business Products, Sweden