Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find an instance of the Microsoft.Cascade.Contracts.WorkspaceSessionInfo: Required property correlationId not found #132

Closed
TheFellow opened this issue Mar 12, 2018 · 9 comments

Comments

@TheFellow
Copy link

Product and Version: VS
OS Version: Win7 x64 Build 6.1.7601
Live Share Extension Version: 0.2.208.46838
Target Platform or Language: ASP.NET MVC / C# / .NET 4.7.1

Steps to Reproduce / Scenario:

  1. Installed VS extension (as an admin)
  2. Launched sample project
  3. Click Share
  4. When acquiring an access token a property named correlationId is not present
  5. Receive exception (log below)

[2018-03-12 19:18:31.229 Client.Rpc.Workspace V] < #1 [5] workspace.shareWorkspace(<43:c2889570>)
[2018-03-12 19:18:41.560 VSIX V] > #1 telemetry.httpRequestComplete: <0:>
[2018-03-12 19:18:41.918 Client.Rpc E] Exception in telemetry.httpRequestComplete notification handler: Newtonsoft.Json.JsonSerializationException: Required property 'correlationId' not found in JSON. Path ''.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EndProcessProperty(Object newObject, JsonReader reader, JsonObjectContract contract, Int32 initialDepth, JsonProperty property, PropertyPresence presence, Boolean setDefaultValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContai...
[2018-03-12 19:18:41.919 Client.Rpc.Workspace V] > #1 [5] Result: <4:74234e98>
[2018-03-12 19:18:41.921 VSIX E] Failed to share a workspace. Cannot find an instance of the Microsoft.Cascade.Contracts.WorkspaceSessionInfo service.
[2018-03-12 19:18:42.025 VSIX E] Failed to create a collaboration session. Cannot find an instance of the Microsoft.Cascade.Contracts.WorkspaceSessionInfo service.
image

@legomushroom
Copy link
Member

Hi Ryan, thanks for filling out the issue.

Could you share the C:\Users\[username]\AppData\Local\Temp\VSFeedbackVSRTCLogs\201180312_195902_VS.log file with me for more insights? (olsolomk@microsoft.com)

Also, could you share the full VS version you are on now?

Thanks!

@TheFellow
Copy link
Author

Hi Oleg,

I've passed the log file along as requested.

The VS version I was using at the time was 15.6.0 Enterprise. I will, however, be updating to 15.6.2 now that it’s out.

Thanks,
Ryan

@Chuxel Chuxel added the bug label Mar 24, 2018
@BlakeWills
Copy link

I'm getting a very similar issue to this, just without the "Required property correlationId not found" error.

Live Share Output:

[VSIX I] Trace log: C:\Users\bwills\AppData\Local\Temp\VSFeedbackVSRTCLogs\20180327_090706_VS.log
[VSIX I] Acquired an access token for the VSO account '<xxxxxxx>'
[VSIX I] Connected to the agent.
[VSIX I] Proxy settings:  and 
[VSIX I] User '<xxxxxxxxxxxx>' has signed in successfully (via SSO).
[VSIX I] User '<xxxxxxxxxxxx>' has signed in successfully (via SSO).
[VSIX I] Acquired an access token for the VSO account '<xxxxxxxxx>'
[VSIX E] Failed to share a workspace. Cannot find an instance of the Microsoft.Cascade.Contracts.WorkspaceSessionInfo service.
[VSIX E] Failed to create a collaboration session. Cannot find an instance of the Microsoft.Cascade.Contracts.WorkspaceSessionInfo service.

The trace log seems to identify the issue:

[2018-03-27 09:10:16.607 Agent.Http E] > POST https://insiders.liveshare.vsengsaas.visualstudio.com/api/v0.2/workspace => An error occurred while sending the request.

I can send the full log if required.

I've tried updating Visual Studio to 15.6.4, but I still get the same issue.

@Chuxel
Copy link
Member

Chuxel commented Mar 27, 2018

@legomushroom, here's another example of this issue with the latest VSIX. Did we get to the bottom of this one?

@legomushroom
Copy link
Member

This issue was load balanced to @daytonellwanger.

@killnine
Copy link

I previously had an issue connecting through my corporate proxy. I went through some of the tips here:

https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/connectivity#proxies

That got me further but now I have this showing up. I am in Visual Studio 2017:

[VSIX I] Trace log: C:\Users<myusername>\AppData\Local\Temp\VSFeedbackVSRTCLogs\20180429_031810_VS.log
[VSIX I] Extension, IDE, Protocol, OS: VSLS/0.2.489.19956 VisualStudio/15.0.27428.2037 VSLS/2.2 Windows 10.0.14393.0
[VSIX E] Error enumerating projects in solution to get non-shared items: ArgumentException 'The path is not of a legal form.'
[VSIX I] Acquired an access token for the VSO account '<14:4c08fd52>'
[Agent.Rpc.Firewall V] > #1 [4] firewall.getFirewallStatus(<0:>)
[Agent.Firewall I] AgentApplicationName: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\PROFESSIONAL\COMMON7\IDE\EXTENSIONS\IOI4O41V.YEI\Agent\vsls-agent.exe
[Agent.Firewall I] Firewall vsls-agent rule protocol: 6
[Agent.Firewall I] Firewall vsls-agent rule action: NET_FW_ACTION_ALLOW
[Agent.Rpc.Firewall V] < #1 [4] Result: <5:7062f715>
[Telemetry V] > #1 [5] telemetry.getServiceUri(<0:>)
[Telemetry V] < #1 [5] Result: <54:db4fab2e>
[Agent.Rpc.Workspace V] > #1 [6] workspace.shareWorkspace(<0:>)
[Agent.Workspace V] Using local IP addresses: [<192.168.ac480df6.>, <10.8fc90c7d.>]
[Agent.Workspace I] Creating new workspace: D6103766A5FE753216C9 (DemandDrivenOrdering)
[Agent.Http V] < POST https://insiders.liveshare.vsengsaas.visualstudio.com/api/v0.2/workspace
[Agent.Http E] > POST https://insiders.liveshare.vsengsaas.visualstudio.com/api/v0.2/workspace => An error occurred while sending the request.
[Agent V] < #1 telemetry.genericOperation: <53:1c1d9fdb>
[Agent.Rpc.Workspace V] < #1 [6] Result: <4:d8e3fe96>
[VSIX E] Failed to share a workspace. Cannot find an instance of the Microsoft.Cascade.Contracts.WorkspaceSessionInfo service.
[VSIX E] Failed to create a collaboration session. Cannot find an instance of the Microsoft.Cascade.Contracts.WorkspaceSessionInfo service.

Any thoughts?

@Chuxel
Copy link
Member

Chuxel commented Apr 30, 2018

@killnine Really glad the proxy issue helped you get farther.

@daytonellwanger - Any updates on this one?

@daytonellwanger
Copy link
Collaborator

The original issue ('Required property correlationId' not found - a problem with JSON deserialization) was resolved about a month ago. The two later issues look unrelated (they look like MEF problems. Maybe try uninstalling and reinstalling the VSIX to force the cache to clear).

@lostintangent
Copy link
Member

@TheFellow @killnine @BlakeWills Are you still experiencing this issue? We haven't heard any reports of this bug in a while, so I'm going to resolve it. However, it would be great to hear if you're still blocked after updating to the latest Live Share extension version. If so, please feel free to re-open this bug. Thanks again!

Chuxel pushed a commit that referenced this issue Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants