There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?

1

Closed

FileLoadException - Could not load file or assembly 'OpenRiaServices.DomainServices.Client.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies

description

The commit: ddcb0ea2 made by danneesset
daniel.svensson@hotmail.seat 8/12/2016 12:54:52 PM introduced FileLoadException in Silverlight version of OpenRiaServices.DomainServices.Client.
The root cause is the change of AssemblyVersion to 4.0.0.0 (from 2.0.5.0). In the effect most probably the following code fails:

/// <summary>
/// Initializes a new instance of the <see cref="DefaultDomainClientFactory"/> class.
/// </summary>
public DefaultDomainClientFactory()
{
// Look for the WebDomainClient in an assembly with the same version and with same signing key as this assembly
var webDomainClientName = "OpenRiaServices.DomainServices.Client.WebDomainClient`1, "
+ TypeUtility.GetAssembly(typeof(DomainClient)).FullName.Replace("OpenRiaServices.DomainServices.Client", "OpenRiaServices.DomainServices.Client.Web");
_webDomainClientType = Type.GetType(webDomainClientName); // Exception here
}

Exception is: FileLoadException - Could not load file or assembly 'OpenRiaServices.DomainServices.Client.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The requested assembly version conflicts with what is already
bound in the app domain or specified in the manifest. (Exception from HRESULT: 0x80131053)

---> System.IO.FileLoadException: Could not load file or assembly 'OpenRiaServices.DomainServices.Client.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The requested assembly version conflicts with what is already
bound in the app domain or specified in the manifest. (Exception from HRESULT: 0x80131053)