{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/orleans/issues/2866","repository_url":"https://api.github.com/repos/dotnet/orleans","labels_url":"https://api.github.com/repos/dotnet/orleans/issues/2866/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/orleans/issues/2866/comments","events_url":"https://api.github.com/repos/dotnet/orleans/issues/2866/events","html_url":"https://github.com/dotnet/orleans/issues/2866","id":215349621,"number":2866,"title":"PSUtils - Silo cannot find System.Reflection.Metadata 1.2.0.0 assembly","user":{"login":"selimser","id":16270624,"avatar_url":"https://avatars2.githubusercontent.com/u/16270624?v=3","gravatar_id":"","url":"https://api.github.com/users/selimser","html_url":"https://github.com/selimser","followers_url":"https://api.github.com/users/selimser/followers","following_url":"https://api.github.com/users/selimser/following{/other_user}","gists_url":"https://api.github.com/users/selimser/gists{/gist_id}","starred_url":"https://api.github.com/users/selimser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selimser/subscriptions","organizations_url":"https://api.github.com/users/selimser/orgs","repos_url":"https://api.github.com/users/selimser/repos","events_url":"https://api.github.com/users/selimser/events{/privacy}","received_events_url":"https://api.github.com/users/selimser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotnet/orleans/milestones/17","html_url":"https://github.com/dotnet/orleans/milestone/17","labels_url":"https://api.github.com/repos/dotnet/orleans/milestones/17/labels","id":2111063,"number":17,"title":"Triage","description":"","creator":{"login":"sergeybykov","id":8248806,"avatar_url":"https://avatars2.githubusercontent.com/u/8248806?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeybykov","html_url":"https://github.com/sergeybykov","followers_url":"https://api.github.com/users/sergeybykov/followers","following_url":"https://api.github.com/users/sergeybykov/following{/other_user}","gists_url":"https://api.github.com/users/sergeybykov/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeybykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeybykov/subscriptions","organizations_url":"https://api.github.com/users/sergeybykov/orgs","repos_url":"https://api.github.com/users/sergeybykov/repos","events_url":"https://api.github.com/users/sergeybykov/events{/privacy}","received_events_url":"https://api.github.com/users/sergeybykov/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":93,"state":"open","created_at":"2016-11-03T00:53:47Z","updated_at":"2017-03-22T03:53:18Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-03-20T07:58:38Z","updated_at":"2017-03-22T11:58:05Z","closed_at":null,"body":"We are using a Powershell script to invoke a method in the Silo when the silo is activated. I've updated Orleans binaries to use 1.4.0. Whenever I execute the PS script, I get the error \"System.IO.FileNotFoundException: Could not load file or assembly 'System.Reflection.Metadata, Version=1.2.0.0\" on the PS output. System.Reflection.Metadata version is 1.3.0.0 in the Silo, which comes with the nuget packages. \r\n\r\nHowever I've checked the PSUtils project in Orleans solution and it was pointing to 1.2.0.0 reflection package so I've updated this to get 1.3.0.0 as well. I'm now using PSUtils dll's with Reflection.Metadata 1.3.0.0 in my Silo but whenever I execute the Powershell script, I am still getting \"could not load reflection 1.2.0.0 error\" so the script fails."},"comment":{"url":"https://api.github.com/repos/dotnet/orleans/issues/comments/288377222","html_url":"https://github.com/dotnet/orleans/issues/2866#issuecomment-288377222","issue_url":"https://api.github.com/repos/dotnet/orleans/issues/2866","id":288377222,"user":{"login":"selimser","id":16270624,"avatar_url":"https://avatars2.githubusercontent.com/u/16270624?v=3","gravatar_id":"","url":"https://api.github.com/users/selimser","html_url":"https://github.com/selimser","followers_url":"https://api.github.com/users/selimser/followers","following_url":"https://api.github.com/users/selimser/following{/other_user}","gists_url":"https://api.github.com/users/selimser/gists{/gist_id}","starred_url":"https://api.github.com/users/selimser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selimser/subscriptions","organizations_url":"https://api.github.com/users/selimser/orgs","repos_url":"https://api.github.com/users/selimser/repos","events_url":"https://api.github.com/users/selimser/events{/privacy}","received_events_url":"https://api.github.com/users/selimser/received_events","type":"User","site_admin":false},"created_at":"2017-03-22T11:58:05Z","updated_at":"2017-03-22T11:58:05Z","body":"If I actually get the Reflection.Metadata 1.2.0 and swap the DLL in my silo's bin folder with that one, the powershell script works just fine. The grain client works without any errors or warnings. But when I launch my silo while that reflection 1.2.0 dll is there, it naturally fails because the silo is expecting System.Reflection.Metadata 1.3.0 (and obviously that's what I get with the Orleans nuget packages).\r\n\r\nThe thing is, I've tried updating the Orleans and OrleansPSUtils project's System.Reflection.Metadata and built the Orleans solution like that. After building it, I've moved the Orleans.dll and OrleansPSUtils.dll into my bin folder - so in theory, after this, it should be looking for System.Reflection.Metadata 1.3.0.0 right? But it is still printing warnings and errors for version 1.2.0.\r\n\r\nTo see more details, I've modified the code where Orleans handles exception for assembly loading in TypeUtils.GetDefinedTypes(). I am now printing every exception for typeLoadException.LoaderExceptions but it's not giving me anything different.\r\n\r\n```\r\nforeach (var excSelim in typeLoadException.LoaderExceptions)\r\n{\r\n   logger.Error(ErrorCode.SiloShutdownEventReceived, \"Selim Exception!\", excSelim);\r\n}\r\n```\r\n\r\nAny further ideas?\r\nthanks.\r\n"}}
{"actor":{"display_login":"selimser"}}