Visual Studio "need to establish a connection"

I get a strange error from Visual Studio after a fresh install on a clean system.

Today my computer was becoming awkward, so I decided to reinstall the computer (Win10), this is exactly what I did

1) Backup using a batch program that I wrote, which compresses the draggable directory using 7zip and renames it β€œfolder name (dd / mm @hh: mm)”, creates 2 txt files with data for ftp commands, opens ftp- connection to my web server, downloads the zip code, then uploads it in the same zip code to my nas and then to my SD card, the package removes the zip from temp and text files, everything says that it works fine.

2) I went to reset my pc and reset everything and deleted all the files

3) After reinstallation, I downloaded 7zip and visual studio with all the additions in the checkmark list at the beginning of the installation, except that this time I have Windows Phone emulators at the moment.

4) unzipped my work from SDHC

5) Opened in VS, VS asked me to log in, so I did everything loaded normally

6) Connected In my phone (Lumia 930 WP10) I clicked the "Debug Launch" button

and i got this popup

A PIN is required to establish a connection with the remote device. Please enter the PIN to pair the Device 

I have never seen this error, and as far as I can tell, no one knows why I wrote in detail what I did to get it, the only message I can find is that it is in the debugging properties, so that install it without authorization, but this is for raspberries pi using VS, and this parameter is missing or anywhere inside VS

the phone does not have a pin, or I can find one setting anywhere on the phone or in VS.

However, I came across a setting in the phone that allows you to connect to your phone in a browser on a computer through your ip and remotely control the phone and access all data through a browser

The error I get in VS

Remote phone from the browser (if anyone is interested)

UPDATE *** no matter what I do, I can run any of the Windows Phone 10 emulators, but VS CANNOT detect any emulators except 8.1 emulators.

+8
c # visual-studio-2015
source share
5 answers

SOLUTION **

I went to the programs and functions, clicked on the visual studio community edition link and clicked on repair, after he finished, he said that there was a problem installing the Windows 10 SDK (v XX.XX.XX), so I went to

https://dev.windows.com/en-US/downloads/windows-10-sdk

I noticed that the version number on the website is higher, so I installed the SDK manually using the download link and it works :)

+2
source share

Same problem then I found this answer:

stack overflow

The solution is really helpful to me.

You can simply do this from the admin command line:

 reg add HKLM\SYSTEM\CurrentControlSet\Control\SirepClient /v DisableProtocol3 /t REG_DWORD /d 1 
+3
source share

I had this problem when running Visual Studio on a virtual machine on both VM Ware Workstation 12 on a Windows host and VMWare Fusion 8 on a MAC host.

The solution was to edit the virtual machine settings and change the USB compatibility settings from version 3.0 to 2.0.

+1
source share

I did this to work with the following steps:

  • Disable developer mode on the phone and switch to "Only install applications from the store"
  • Disconnect the phone from the USB connection.
  • Reboot the phone.
  • Reboot the computer.
  • Launch Visual Studio
  • Connect the phone to the USB port
  • Try debugging the application on your phone if Visual Studio says nothing about β€œyou must put the phone in Sideload mode” (or simular), start from step 1.
  • Put the phone in side load mode (not developer mode) and try debugging again, now the same message should appear, as in step 7.
  • Switching the phone to developer mode

Now the deployment process should work without any problems. If you do not repeat the steps (possibly with some options). I don't know where the problem is, but these steps worked for me. I do not know if all the steps are needed, let me know if you can leave it. This solution does not help constantly, sometimes the problem arises again. I think that do not disconnect the phone during debugging, helping to solve the problem infrequently.

0
source share

You just need to carry the phone to unlock it (also enter the PIN code, if any). Since the phone is locked, you cannot deploy it.

-2
source share

All Articles