Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio "Pin is required to establish a connection"

I'm getting a weird error from Visual Studio after a fresh install on a clean system.

Today my computer was getting groggy so I decided to reinstall the computer (Win10) this is exactly what I did

1) Backed up using a batch program I wrote which compresses the dragged on directory using 7zip and renames it "folders name( dd/mm @ hh:mm)", creates 2 txt files with data for ftp commands, opens an ftp connection to my webserver, uploads the zip, then uploads to same zip to my nas and then to my sd card, the batch deletes the zip from temp and the text files, everything said it performed normally.

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

3) After Reinstalling I downloaded 7zip and visual studio with all the addons in the tick box list at the beginning of the installation, except I noticed it has windows phone 10 emulators this time.

4) unzipped my work from the SDHC

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

6) Plugged In my phone (Lumia 930 WP10) clicked start debugging

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 else has, that's why I have written in detail what I did to get it, the only post I can find says it is in the debugging properties so to set it to no authorisation but that is for a raspberry pi using VS and that option is not there or anywhere within VS

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

I did however come across a setting in the phone that allows you to connect to your phone in the browser on a computer via its ip and remotely control the phone and access all the data via the browser

The Error I Get in VS

The Phone Remote from a browser (If anyone is curious)

UPDATE*** no matter what I do, I CAN run any of the windows phone 10 emulators, but VS CANNOT detect any emulators other than 8.1 emulators

like image 597
Billie Gallagher Avatar asked Dec 06 '15 05:12

Billie Gallagher


3 Answers

Same problem, then I found this answer:

https://stackoverflow.com/a/33667162

The solution is really helpful for me.

Simply, you can do this from an admin command prompt:

reg add HKLM\SYSTEM\CurrentControlSet\Control\SirepClient /v DisableProtocol3 /t REG_DWORD /d 1
like image 81
Koi Avatar answered Nov 09 '22 16:11

Koi


PROBLEM SOLVED**

I went to programs & features, clicked visual studio community edition, and clicked repair, after it finished it said 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 the version number on the website to be higher, so I installed the SDK manually using the download link and presto it works :)

like image 32
Billie Gallagher Avatar answered Nov 09 '22 17:11

Billie Gallagher


I had this issue when running Visual Studio in a virtual machine under 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.

like image 1
Paul Hickman Avatar answered Nov 09 '22 17:11

Paul Hickman