{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4785","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4785/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4785/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4785/events","html_url":"https://github.com/aspnet/EntityFramework/issues/4785","id":140612720,"number":4785,"title":"The Visual Studio component cache is out of date","user":{"login":"jaoord","id":6464609,"avatar_url":"https://avatars.githubusercontent.com/u/6464609?v=3","gravatar_id":"","url":"https://api.github.com/users/jaoord","html_url":"https://github.com/jaoord","followers_url":"https://api.github.com/users/jaoord/followers","following_url":"https://api.github.com/users/jaoord/following{/other_user}","gists_url":"https://api.github.com/users/jaoord/gists{/gist_id}","starred_url":"https://api.github.com/users/jaoord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaoord/subscriptions","organizations_url":"https://api.github.com/users/jaoord/orgs","repos_url":"https://api.github.com/users/jaoord/repos","events_url":"https://api.github.com/users/jaoord/events{/privacy}","received_events_url":"https://api.github.com/users/jaoord/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-14T08:55:23Z","updated_at":"2016-03-25T17:41:11Z","closed_at":null,"body":"This happens every time I try to update my database (update-database)\r\n\r\nThese are the errors I get:\r\n\r\nException calling \"GetService\" with \"1\" argument(s): \"Exception calling \"Invoke\" with \"2\" argument(s): \"The Visual Studio component cache is out of date. Please restart Visual Studio. The Visual Studio component cache is out of date. Please restart Visual Studio.\"\"\r\nAt D:\\Dev\\Project\\packages\\EntityFramework.6.1.3\\tools\\EntityFramework.psm1:1004 char:5\r\n+     $packageInstallerServices = $componentModel.GetService([NuGet.Vis ...\r\n+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\n    + FullyQualifiedErrorId : ScriptMethodRuntimeException\r\n \r\nYou cannot call a method on a null-valued expression.\r\nAt D:\\Dev\\Project\\packages\\EntityFramework.6.1.3\\tools\\EntityFramework.psm1:1006 char:5\r\n+     $vsPackage = $packageInstallerServices.GetInstalledPackages() | ? ...\r\n+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException\r\n    + FullyQualifiedErrorId : InvokeMethodOnNull\r\n \r\nJoin-Path : Cannot bind argument to parameter 'Path' because it is null.\r\nAt D:\\Dev\\Project\\packages\\EntityFramework.6.1.3\\tools\\EntityFramework.psm1:713 char:28\r\n+     $toolsPath = Join-Path $installPath tools\r\n+                            ~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException\r\n    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand\r\n \r\nJoin-Path : Cannot bind argument to parameter 'Path' because it is null.\r\nAt D:\\Dev\\Project\\packages\\EntityFramework.6.1.3\\tools\\EntityFramework.psm1:780 char:74\r\n+ ...  [System.Reflection.Assembly]::LoadFrom((Join-Path $ToolsPath EntityF ...\r\n+                                                        ~~~~~~~~~~\r\n    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException\r\n    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand\r\n \r\nYou cannot call a method on a null-valued expression.\r\nAt D:\\Dev\\Project\\packages\\EntityFramework.6.1.3\\tools\\EntityFramework.psm1:781 char:5\r\n+     $dispatcher = $utilityAssembly.CreateInstance(\r\n+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException\r\n    + FullyQualifiedErrorId : InvokeMethodOnNull\r\n \r\nJoin-Path : Cannot bind argument to parameter 'Path' because it is null.\r\nAt D:\\Dev\\Project\\packages\\EntityFramework.6.1.3\\tools\\EntityFramework.psm1:810 char:20\r\n+         (Join-Path $runner.ToolsPath EntityFramework.PowerShell.dll),\r\n+                    ~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException\r\n    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/201382225","html_url":"https://github.com/aspnet/EntityFramework/issues/4785#issuecomment-201382225","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4785","id":201382225,"user":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T17:41:11Z","updated_at":"2016-03-25T17:41:11Z","body":"@jaoord are you able to provide details of where this occurs so that we can look at reproducing and debugging the issue? We are not able to reproduce the error, so there isn't a lot we can do without info on how to produce it."}}