Live-share: [VS] "Failed to create a collaboration session. Operation was cancelled..." when trying to share from an account not yet in the preview

Created on 24 Mar 2018  Â·  20Comments  Â·  Source: MicrosoftDocs/live-share

Product and Version [VS/VSCode]: Microsoft Visual Studio Community 2017 Preview (2) 15.7.0
OS Version [macOS/Windows]: Windows 8.1
Live Share Extension Version: 0.2.258.53898
Target Platform or Language [e.g. Node.js]:

Steps to Reproduce / Scenario:

  1. I click on the "Share" button
  2. An error message after click: "Failed to create a collaboration session. Operation was cancelled by the user. Show Output Retry"

  3. When I click on "Retry" this message coming from Live Share Output:
    [VSIX I] Acquired an access token for the VSO account ''
    [VSIX I] Proxy settings: and
    [VSIX I] User '' has signed in successfully (via SSO).
    [VSIX I] User '' has signed in successfully (via SSO).

  4. When i click "Show Output" (this message on the Output Panel from 'Live Share') :
    [VSIX I] User '' has signed in successfully (via SSO).
    [VSIX I] User '' has signed in successfully (via SSO).

My Options for Live Share:
Output Verbosity: Information
User account: My microsoft mail
Flag Visibility: Always
Connection Mode: Auto
Join Debug Session option: Automatic
Launch browser on debug: IfSpecifiedInProject
Share web app on debug: True

share and join bug vs

All 20 comments

Hey @cankatabaci, really appreciate the great details in this bug report! Would you mind sending us your logs? You can grab them from %TEMP%\VSFeedbackVSRTCLogs and either attach them here or shoot us a mail with them at [email protected]. We can take a look and see what might be going on.

I sent the files to the relevant mail address. Thank you for your attention

@cankatabaci Thanks for the logs! This is strange given it looks like you've been able to use VS Code without trouble. We'll need to take a look.

Install the Live Share VS Code plug-in, when I do user login(for live share) i received a message:

Ready to collaborate!
You are now signed in and ready to use Visual Studio Live Share. Close this window and go back to your editor.

Note: _You have not been accepted into the preview_ so you may only join collaboration sessions.

@Chuxel Could it be a problem to be rejected for preview?

When i was try sharing in VS Code i get this error message:

"You cannot share as you have not been accepted into the VS Live Share preview. If you haven't, sign up now to be considered for a future preview wave."

If i click "sign up" (bottom right of the error message) button, directing me to the registration page (but the information on this page is completed. Because I filled it before.)

@cankatabaci Ah, that's interesting, it's possible that there is a problem with the notification with the latest VS release. Let me get you added into the preview with the email you used to send the logs and we can see if that resolves the issue.

@cankatabaci Okay, we've added you to the preview with the email you used to send us the logs. Sign out and sign in again and see if you're now able to share.

@Chuxel When sign out and sign in with the relevant email address(this is my Github account's mail address so i choose "Sign In with Github"), I received a new message unlike the previous one:

"Ready to collaborate!
You are now signed in and ready to use Visual Studio Live Share. Close this window and go back to your editor."

And when I got back VS, was a link ready to share. (I have not tried the connection yet but it works if the connection comes up i think :smiley: )

Thank you so much for your help.

@cankatabaci Thanks for verifying and glad you were unblocked! We'll have to take a look as to why the normal error message that should be appearing telling you that you need to be approved for the preview is causing this error. Apologies for the confusion!

I have same problem. Is there any permanent solution for this issue or do i need you to add me too?

@alperozcelik As described in the docs and extension install page, you'll need to be in the preview to share but not to join a collaboration session someone has shared with you.

There's supposed to be an error that appears here telling you this but for some reason some users are seeing this error instead. Email [email protected] with your email address and we can add you into the preview if you want to share.

I'll be very glad for adding me ([email protected]).. =)

wishes,
alper


From: Chuck Lantz notifications@github.com
Sent: Wednesday, March 28, 2018 11:06 PM
To: MicrosoftDocs/live-share
Cc: alperozcelik; Mention
Subject: Re: [MicrosoftDocs/live-share] [VS] "Failed to create a collaboration session. Operation was cancelled..." when trying to share from an account not yet in the preview (#160)

@alperozcelikhttps://github.com/alperozcelik As described in the docs and extension install page, you'll need to be in the preview to share but not to join a collaboration session someone has shared with you.

There's supposed to be an error that appears here telling you this but for some reason some users are seeing this error instead. Email [email protected]vsls-feedback@microsoft.com with your email address and we can add you into the preview if you want to share.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/live-share/issues/160#issuecomment-377018386, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA7ETMgUR54zJWkXrVjV7daMmXuI3zJOks5ti-0sgaJpZM4S5sPW.

I am getting the exact same issue, exact same error messages.

In Visual Studio, I am signed in, using the email address that received the email "Try out the Visual Studio Live Share preview!" This means that I am "in the preview", right? Or am I missing another box that needs to be checked somewhere.

@AnthonySteele When I make a successful signed in I saw this:
liveshare
Steps:

  • Click 'Share' in top right of the panel
  • Page opened in browser, There are two options: Sign in with Microsoft or Sign in with Github (i choose github because that mail address was registered)

For me, steps are:

  • Launch Visual Studio with a solution
  • Verify that I am signed in at top right, using an account via Microsoft and my employer's Active Directory
  • Click "share" at top right, just to left of the account widget.

Result:

vslive_fail

OK, here's a walkthrough of getting it working in my case. It was far from obvious:

  • Launch Visual Studio with a solution
  • Click "Sign out" at top right. Verify that I am not signed in.
  • Click "Share" just to left of that
  • Instead of error, this time an App-modal dialog comes up, "Live share account. Select user identity to authenticate to Live Share Services" There are two options: "Visual Studio Account (Microsoft) and "External account (GitHub, Microsoft)"
  • Select the second option (it's a guess - I mean do I choose "Microsoft" or "Microsoft"? Second because it's via employer's AD). A web page is launched. Sign in with Microsoft account,
  • New dialog in the web page is
    "Visual Studio Live Share (Insiders)
    Publisher's website: microsoft.onmicrosoft.com
    This app would like to:
    Sign in as you
    View your email address
    View your basic profile"
  • Accept

    • Windows system Firewall dialog comes up, accept that too.
  • Result is: "Ready to collaborate! You are now signed in and ready to use Visual Studio Live Share. Close this window and go back to your editor."

I'm connected to sharing, but still not signed into Visual Studio.

So it seems that

  • Getting the email is not "in the preview", there is another step above to accept.
  • It's not about being signed into Visual Studio. I could only set up live share when I was _signed out of VS_. But once it was set up I can sign back in and still use it.

@AnthonySteele No the email that tells you to try is in fact the one that means you are accepted into the preview. As a result, you repro is different than others that have reported this bug. They did not get the "try" email... just the first one.

We have a bug with the error message telling you that you need to be accepted to share. As the quick start states, you should sign into Visual Studio itself using the same email you used to sign up or you can go to Tools > Options > Live Share > User account to pick a different account. The steps you did in the second path should also work.

Given it sounds like you followed these steps correctly, something might be wrong with your account. Could you contact [email protected] with the email address you are using to sign in so we can see what might be wrong? Thanks!

@Chuxel The second path seems to result in a working setup. I gave the steps for reference, others might need the workaround info.

@AnthonySteele Apologies, I missed the fact the instructions said "workaround"! I apparently need to drink more coffee. 😴☕😀 I'm glad to hear you got unblocked, but this is super strange.

We'd love to see your logs to see what might be happening. Could you zip up the contents of %TEMP%\VSFeedbackVSRTCLogs and shoot them to [email protected]?

Appreciate it!!

I have same problems.
I'll be very glad for adding me.
"[email protected]"

Thanks!

This should be resolved in v0.2.306 just released for VS. You should now get the right error message based on the scenario. Also @developerTUNA - you should be able to sign out and in again to share.

Was this page helpful?
0 / 5 - 0 ratings