Visual Studio Windows Phone emulator under Azure VM - visual-studio

I am trying to run the Visual Studio Windows Phone Emulator but I get those errors :
Severity Code Description Project File Line
Error Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device '8BDF218D-FDBB-4A97-90F9-3AA33B559A92'.':
NullReferenceException - Invalid pointer App1
Severity Code Description Project File Line
Error Error : DEP6200 : Bootstrapping 'Mobile Emulator 10.0.10240.0 WVGA 4 inch 512MB' failed. Device cannot be found. App1
And the Emulator fails to run.

You cannot run an emulator on a Azure VM. Hyper-V cannot be nested, which is what you would need.
Right now the best approach is to run the emulator locally (Win8/10) or download the files and install on a Windows Phone.
Are you running Windows or a Mac/Linux?

Related

Unable to run Laragon on Windows 10

When starting the app with "Run as Administrator" or without it
I am trying to run Laragon on Windows 10, but I'm receiving this error
"Exception EAccessViolation in module laragon.exe at 00154645"
Please and advise on how to have it up and running?!

DEP6720: Failed to deploy package 'Native Debugger'

After updating the OS of the Hololens, I got the following error for all applications (built with Unity)
DEP6720 Failed to deploy package 'native Debugger'
DEP6859 Error
removing the file from the remote device DiagnosticsHubMsg.ddl not
found HRESULT exception 0x800700002
I googled and could not find any reference to this problem. I wonder if I have to update visual studio? (the latest seems to be 15.7.5)
EDIT:
I updated visual studio to 15.7.5 hoping to solve the problem. Now it is worse
I got the error but also these other errors
DEP6721 Failed to deploy optional package 'XAML UI Debugger
2'DEP6950: Error transferring the file to the remote device
XamlDiagnostics DEP6721: Failed to deploy optional package 'XAML UI
Debugger Dependency' DEP6950: Error transferring the file to the
remote device: XamlDiagnostics.dll. Remote Device Disconnected'.
DEP6721: Failed to deploy optional package 'Standard Collector
Bridge'DEP6950: Error transferring the file to the remote
device:DiagnosticsHub.StandardCollector.Bridge.dll. Remote Device
Disconnected'. DEP6720: Failed to deploy package 'Windows 10 Remote
Tools' DEP6950: Error transferring the file to the remote
device:TailoredDeploy.exe. Remote Device Disconnected'. DEP6720:
Failed to deploy package 'Core CLR' DEP6950: Error transferring the
file to the remote device: clrcompression.dll. Remote Device
Disconnected'.
I am lost at what to do
I could finally got to deploy on the hololens.
After following different advice that did not work, in the end I repaired my installation of Visual Studio.
After the repair, VS was set again to the language of Windows. The colors of the editor also changed. I could deploy to the hololens there. (it took a lot of time the first time)
However -and for some strange reason- I could not change my settings back to english. If I do that, the same problem reappears. So even though I am more confortable with english, now I have to use visual studio in the same language of the operation system

Visual Studio 2017 - Android Emulator not working

I've updated Xamarin on Visual Studio 2017 and when I go to build an new Android App I created, it has the following error:
Starting runtime checks
Starting emulator Android_Accelerated_Nougat ...
1>------ Build started: Project: Phoneworld, Configuration: Debug Any CPU ------
C:\Program Files (x86)\Android\android-sdk\tools\emulator.EXE -partition-size 512 -no-boot-anim -avd Android_Accelerated_Nougat -prop monodroid.avdname=Android_Accelerated_Nougat
Could not launch 'C:\Program Files (x86)\Android\android-sdk\emulator/qemu/windows-x86_64/qemu-system-x86_64.exe': No such file or directory
The selected emulator couldn't be started. This can be caused by the process not having enough permissions. Please try to start VS as administrator, which can help to avoid it.
Emulator Android_Accelerated_Nougat cannot be started.
Runtime checks failed
To run an emulator in normal account that was created as administrator.
2 Steps:
Move 1 folder and 1 .ini file
Change paths values in 2 config files
First, move your emulator's .ini file and folder from admin's account.
Source - C:\Users\{admin account}.android\avd
Destination - C:\Users\{YOUR account}.android\avd
Second, change the emulator paths in 2 config files
Config file 1 - {emulator name}.ini
(1 key-value)
path
Config file 2 - {emulator folder}\hardware-qemu.ini
(4 key-value)
hw.sdCard.path
disk.cachePartition.path
disk.dataPartition.path
disk.encryptionKeyPartition.path
I suggest going doing the following in VS.
Navigate to: Tools > Android > Android SDK Manager and check that you have the correct tools installed for the Nougat android emulator you want to run.
I would say install the following under Android 7.0 - Nougat if not already installed.
Google APIs Intel x86 Atom System Image
Google APIs Intel x86 Atom _64 System Image
Once you have those installed, navigate to: Tools > Android > Android Device Manager.
Select the emulator in question and check what CPU/ABI you target and update it to use the new ones you installed in the previous step.
You should also try running your VS as Administrator, it could also help.

Deployment on IoT device remotely from VS 2015 failed with unexpected error: 'Wrong format: Unrecognized date-time format

Deployment of Windows IoT background application from my Visual studio on remote IoT (Raspberry pi 3) device is failing.
Error from the output log of visual studio does not provide any insight into the actual issue.
Error which I am getting in Visual Studio -
Error : DEP6701 : Bootstrapping failed with unexpected error: 'Wrong format: Unrecognized date-time format.'.
Here are my device setup details:
visual studio 2015 on my Hyper-V virtual Windows 10 machine.
Remote device - Raspberry Pi3 running Windows 10. (10.0.14393.67)
Created IoT background application using the template (without any
code changes).
It is building successfully but while deployment it is throwing an error -
How to fix this deployment related error?
Thanks,
/vikas

Visual Studio 2015 Docker Integration wont attach for debuging

I created a Default .net Core RC2 MVC app using VS 2015. I added Docker Support so I could run and debug it in docker.
When I run the project it builds the docker container and starts it. Running the command "docker ps" shows the container running with the correct ports mapped. However I get the following error:
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use NETStandard [version ...] or newer. This might be expected if the target process did not run.
Also trying to access the web page returns the following error:
[Fiddler] The connection to '10.0.75.2' failed.
Error: ConnectionRefused (0x274d).
System.Net.Sockets.SocketException No connection could be made because the target machine actively refused it 10.0.75.2:80
Turns out the problem is related to the docker for windows beta I am running. By default it does not let you map volumes.
To enable open the docker for window settings:
And select Manage shared drives.
Select the C drive or drive you have the .Net code stored on and rebuild and deploy the project:

Resources