Fresh install of Visual Studio 2022 results in a StreamJsonRpc.RemoteInvocationException exception...
Checked the log under C:\Users[myId]\AppData\Local\Temp\servicehub\logs..
Below is the content of the log, Please help...
01/03/2022 20:37:53 Pacific Standard Time : Error : Creating an account
IsPersonalization account 'False'
Checking if the account is an MSA account. 'False'
Setting properties.
Checking if we are windows platform to determine if we want to get the profile or not.
We are on the windows platform. Getting profile information.
Failed to get VSO Profile during account Creation because of 'System.MissingMethodException: Method not found: 'Void Newtonsoft.Json.Serialization.JsonDictionaryContract.set_DictionaryKeyResolver(System.Func`2<System.String,System.String>)'.
at JsonDictionaryContract Microsoft.VisualStudio.Services.WebApi.VssCamelCasePropertyNamesContractResolver.CreateDictionaryContract(Type type)
at JsonContract Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
at JsonContract Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver.ResolveContract(Type type)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, string id)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at bool Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, object target)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, string id)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, bool checkAdditionalContent)
at object Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at object System.Net.Http.Formatting.BaseJsonMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, Encoding effectiveEncoding, IFormatterLogger formatterLogger)
at object System.Net.Http.Formatting.JsonMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, Encoding effectiveEncoding, IFormatterLogger formatterLogger)
at object System.Net.Http.Formatting.BaseJsonMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)
at Task<object> System.Net.Http.Formatting.BaseJsonMediaTypeFormatter.ReadFromStreamAsync(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)
at async Task<T> System.Net.Http.HttpContentExtensions.ReadAsAsyncCore<T>(HttpContent content, Type type, IFormatterLogger formatterLogger, MediaTypeFormatter formatter, CancellationToken cancellationToken)
at async Task<T> Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.ReadJsonContentAsync<T>(HttpResponseMessage response, CancellationToken cancellationToken)
at async Task<T> Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.ReadContentAsAsync<T>(HttpResponseMessage response, CancellationToken cancellationToken)
at async Task<T> Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync<T>(HttpRequestMessage message, object userState, CancellationToken cancellationToken)
at async Task<ConnectionData> Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, long lastChangeId, CancellationToken cancellationToken, object userState)
at async Task<ConnectionData> Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, int lastChangeId, CancellationToken cancellationToken)
at async Task Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
at async Task<VssConnection> Microsoft.Developer.IdentityService.AccountProvider.AadAccountProviderNetworkServicesBase.GetVssConnectionAsync(VssAadCredential aadCredential, CancellationToken cancellationToken)
at async Task<(string displayName, byte[] userThumbnail, Guid vsid)> Microsoft.Developer.IdentityService.AccountProvider.AadAccountProviderNetworkServicesBase.GetVSOProfileDetailsAsync(AuthenticationInfo authInfo, bool promptIfNeeded, string queryParameters, AuthenticationFlowType authenticationFlowType, Dictionary<string, string> additionalAuthProperties, string displayName, byte[] userThumbnail, CancellationToken cancellationToken)
at async Task<IProfileInformation> Microsoft.Developer.IdentityService.AccountProvider.AadAccountProviderNetworkServicesBase.GetProfileInfoAsync(AuthenticationInfo authInfo, bool promptIfNeeded, string queryParameters, AuthenticationFlowType authenticationFlowType, Dictionary<string, string> additionalAuthProperties, CancellationToken cancellationToken)
at async Task<Account> Microsoft.Developer.IdentityService.AccountProvider.AadAccountProviderService.CreateAccountFromAadAsync(Account account, ImmutableArray<ScopeInfo> scopes, List<Exception> errors, AuthenticationInfo authInfo, bool promptIfNeeded, bool clearMfaResource, bool clearMfaFlag, string queryParameters, AuthenticationFlowType authenticationFlowType, Dictionary<string, string> additionalAuthProperties, CancellationToken cancellationToken)'
Getting tenant and scope info.
Setting more properties.
Checking if the id token is null or empty.
Id Token found. Parsing the token.
Getting the images
Tenant sanity check before instantiating the account.
HomeTenantId:'46c98d88-e344-4ed4-8496-4ed7712e255d' Number of tenants:'1' Tenant details:'[{"UniqueId":"5bd28cc0-fe26-42f7-aff5-75a01912b364.46c98d88-e344-4ed4-8496-4ed7712e255d","TenantId":"46c98d88-e344-4ed4-8496-4ed7712e255d","FriendlyName":"Intel Corporation","IsOwned":true}]'
Instantiating the new account.
Returning the new account.