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

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

Closed
cankatabaci opened this issue Mar 24, 2018 · 20 comments

Comments

@cankatabaci
Copy link

cankatabaci commented Mar 24, 2018

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

@Chuxel
Copy link
Member

Chuxel commented Mar 24, 2018

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 vsls-feedback@microsoft.com. We can take a look and see what might be going on.

@cankatabaci
Copy link
Author

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

@Chuxel
Copy link
Member

Chuxel commented Mar 26, 2018

@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.

@cankatabaci
Copy link
Author

cankatabaci commented Mar 26, 2018

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.)

@Chuxel
Copy link
Member

Chuxel commented Mar 26, 2018

@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.

@Chuxel
Copy link
Member

Chuxel commented Mar 26, 2018

@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.

@cankatabaci
Copy link
Author

cankatabaci commented Mar 27, 2018

@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 😃 )

Thank you so much for your help.

@Chuxel Chuxel changed the title [VS] Failed to create a collaboration session [VS] "Failed to create a collaboration session. Operation was cancelled..." when trying to share from an account not yet in the preview Mar 27, 2018
@Chuxel
Copy link
Member

Chuxel commented Mar 27, 2018

@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!

@alperozcelik
Copy link

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

@Chuxel
Copy link
Member

Chuxel commented Mar 28, 2018

@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 vsls-feedback@microsoft.com with your email address and we can add you into the preview if you want to share.

@alperozcelik
Copy link

alperozcelik commented Mar 28, 2018 via email

@AnthonySteele
Copy link

AnthonySteele commented Mar 29, 2018

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.

@cankatabaci
Copy link
Author

@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)

@AnthonySteele
Copy link

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

@AnthonySteele
Copy link

AnthonySteele commented Mar 29, 2018

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.

@Chuxel
Copy link
Member

Chuxel commented Mar 29, 2018

@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 vsls-feedback@microsoft.com with the email address you are using to sign in so we can see what might be wrong? Thanks!

@AnthonySteele
Copy link

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

@Chuxel
Copy link
Member

Chuxel commented Mar 29, 2018

@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 vsls-feedback@microsoft.com?

Appreciate it!!

@developerTUNA
Copy link

I have same problems.
I'll be very glad for adding me.
"developertuna@gmail.com"

Thanks!

@Chuxel
Copy link
Member

Chuxel commented Apr 3, 2018

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.

@Chuxel Chuxel closed this as completed Apr 3, 2018
Chuxel pushed a commit that referenced this issue Oct 9, 2019
Confirm merge from repo_sync_working_branch to live to sync with https://github.com/microsoftdocs/live-share (branch master)
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

5 participants