{"action":"created","issue":{"url":"https://api.github.com/repos/Daniel-Svensson/test/issues/98","repository_url":"https://api.github.com/repos/Daniel-Svensson/test","labels_url":"https://api.github.com/repos/Daniel-Svensson/test/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/Daniel-Svensson/test/issues/98/comments","events_url":"https://api.github.com/repos/Daniel-Svensson/test/issues/98/events","html_url":"https://github.com/Daniel-Svensson/test/issues/98","id":272335502,"number":98,"title":"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","user":{"login":"Daniel-Svensson","id":3167509,"avatar_url":"https://avatars1.githubusercontent.com/u/3167509?v=4","gravatar_id":"","url":"https://api.github.com/users/Daniel-Svensson","html_url":"https://github.com/Daniel-Svensson","followers_url":"https://api.github.com/users/Daniel-Svensson/followers","following_url":"https://api.github.com/users/Daniel-Svensson/following{/other_user}","gists_url":"https://api.github.com/users/Daniel-Svensson/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel-Svensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel-Svensson/subscriptions","organizations_url":"https://api.github.com/users/Daniel-Svensson/orgs","repos_url":"https://api.github.com/users/Daniel-Svensson/repos","events_url":"https://api.github.com/users/Daniel-Svensson/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel-Svensson/received_events","type":"User","site_admin":false},"labels":[{"id":744692282,"url":"https://api.github.com/repos/Daniel-Svensson/test/labels/4.5.0.1","name":"4.5.0.1","color":"ededed","default":false},{"id":743491989,"url":"https://api.github.com/repos/Daniel-Svensson/test/labels/bug","name":"bug","color":"ee0701","default":true},{"id":743525045,"url":"https://api.github.com/repos/Daniel-Svensson/test/labels/Client","name":"Client","color":"ededed","default":false},{"id":743498427,"url":"https://api.github.com/repos/Daniel-Svensson/test/labels/CodePlexMigrationInitiated","name":"CodePlexMigrationInitiated","color":"ededed","default":false},{"id":743499928,"url":"https://api.github.com/repos/Daniel-Svensson/test/labels/Impact:%20High","name":"Impact: High","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-08T20:19:45Z","updated_at":"2017-11-08T20:19:47Z","closed_at":null,"author_association":"OWNER","body":"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:\r\n\nOpenRiaServices.DomainServices.Client.Data.DefaultDomainClientFactory:\n    /// <summary>\n    /// Initializes a new instance of the <see cref=\"DefaultDomainClientFactory\"/> class.\n    /// </summary>\n    public DefaultDomainClientFactory()\n    {\n        // Look for the WebDomainClient in an assembly with the same version and with same signing key as this assembly\n        var webDomainClientName = \"OpenRiaServices.DomainServices.Client.WebDomainClient`1, \"\n                                + TypeUtility.GetAssembly(typeof(DomainClient)).FullName.Replace(\"OpenRiaServices.DomainServices.Client\", \"OpenRiaServices.DomainServices.Client.Web\");\n        _webDomainClientType = Type.GetType(webDomainClientName); // Exception here\n    }\n\n\nThe full stack trace is in here:\r\n\nUnhandled exception at line 58, column 13 in http://localhost:20172/\r\n\r\n0x800a139e - JavaScript runtime error: Unhandled Error in Silverlight Application \r\n\r\nCode: 4004    \r\n\r\nCategory: ManagedRuntimeError       \r\n\r\nMessage: Microsoft.Practices.ServiceLocation.ActivationException: Activation error occurred while trying to get instance of type ILoggingManager, key \"\" ---> Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = \"VTS.Core.Logging.ILoggingManager\", name = \"(none)\".\r\n\nException occurred while: Calling constructor VTS.Core.Web.Services.LoggingContext().\nException 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)\nAt the time of the exception, the container was:\r\n\n\n\n  Resolving VTS.Core.Logging.LoggingManager,(none) (mapped from VTS.Core.Logging.ILoggingManager, (none))\r\n\n  Resolving parameter \"loggingContext\" of constructor VTS.Core.Logging.LoggingManager(VTS.Core.Services.ILoggingContext loggingContext, VTS.Core.Mvvm.IDialogService dialogService)\nResolving VTS.Core.Web.Services.LoggingContext,(none) (mapped from VTS.Core.Services.ILoggingContext, (none))\n\nCalling constructor VTS.Core.Web.Services.LoggingContext()\n\n\n---> 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)\r\n\n   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)\r\n\n   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)\r\n\n   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)\r\n\n   at System.Type.GetType(String typeName)\r\n\n   at OpenRiaServices.DomainServices.Client.DomainContext.CreateDomainClientFactory()\r\n\n   at OpenRiaServices.DomainServices.Client.DomainContext.get_DomainClientFactory()\r\n\n   at OpenRiaServices.DomainServices.Client.DomainContext.CreateDomainClient(Type serviceContract, Uri serviceUri, Boolean usesHttps)\r\n\n   at VTS.Core.Web.Services.LoggingContext..ctor(Uri serviceUri)\r\n\n   at VTS.Core.Web.Services.LoggingContext..ctor()\r\n\n   at BuildUp_VTS.Core.Web.Services.LoggingContext(IBuilderContext )\r\n\n   at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context)\r\n\n   at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)\r\n\n   at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)\r\n\n   at Microsoft.Practices.ObjectBuilder2.BuilderContext.NewBuildUp(NamedTypeBuildKey newBuildKey)\r\n\n   at Microsoft.Practices.Unity.ObjectBuilder.NamedTypeDependencyResolverPolicy.Resolve(IBuilderContext context)\r\n\n   at BuildUp_VTS.Core.Logging.LoggingManager(IBuilderContext )\r\n\n   at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context)\r\n\n   at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)\r\n\n   at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)\r\n\n   at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable1 resolverOverrides)\r\r   --- End of inner exception stack trace ---\r\r   at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable1 resolverOverrides)\r\n\n   at Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides)\r\n\n   at Microsoft.Practices.Unity.UnityServiceLocator.DoGetInstance(Type serviceType, String key)\r\n\n   at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)\r\n\n   --- End of inner exception stack trace ---\r\n\n   at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)\r\n\n   at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstanceTService\r\n\n   at VTS.AM.App.Application_UnhandledException(Object sender, ApplicationUnhandledExceptionEventArgs e)\r\n\n   at MS.Internal.Error.CallApplicationUEHandler(Exception e)\r\n\n   at MS.Internal.Error.GetXresultForUserException(Exception ex)   \n\n\r\n\r\n#### This work item was migrated from CodePlex\r\nCodePlex work item ID: '98'\r\nAssigned to: 'danneesset'\r\nVote count: '1'\r\n"},"comment":{"url":"https://api.github.com/repos/Daniel-Svensson/test/issues/comments/342946635","html_url":"https://github.com/Daniel-Svensson/test/issues/98#issuecomment-342946635","issue_url":"https://api.github.com/repos/Daniel-Svensson/test/issues/98","id":342946635,"user":{"login":"Daniel-Svensson","id":3167509,"avatar_url":"https://avatars1.githubusercontent.com/u/3167509?v=4","gravatar_id":"","url":"https://api.github.com/users/Daniel-Svensson","html_url":"https://github.com/Daniel-Svensson","followers_url":"https://api.github.com/users/Daniel-Svensson/followers","following_url":"https://api.github.com/users/Daniel-Svensson/following{/other_user}","gists_url":"https://api.github.com/users/Daniel-Svensson/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel-Svensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel-Svensson/subscriptions","organizations_url":"https://api.github.com/users/Daniel-Svensson/orgs","repos_url":"https://api.github.com/users/Daniel-Svensson/repos","events_url":"https://api.github.com/users/Daniel-Svensson/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel-Svensson/received_events","type":"User","site_admin":false},"created_at":"2017-11-08T20:19:47Z","updated_at":"2017-11-08T20:19:47Z","author_association":"OWNER","body":"[danneesset@2017-02-03]\r\nThank you for reporting the Issue, I will update the version of the Silverlight web assembly in order to fix the issue.\r\n\r\nYou can find the latest non-released code from https://ci.appveyor.com/project/Daniel-Svensson/openriaserviecs/branch/master/job/ojqnyexfc1ot4lxf  if you want to test it. It should be possible to just replace the web assembly with the latest build until the next release on nuget\r\n\r\n"}}
{"actor":{"display_login":"Daniel-Svensson"}}