From my experience, the two errors you get are related to two components of the Windows Phone virtual machine.
For the first error, I don’t know exactly what failed, but it looks like the virtual machine image is not working as VS expects, one thing you can do for this is to simply open the Hyper-V manager and delete the virtual machine when you will start debugging again from VS, it will again create a virtual machine image in accordance with the characteristics of the device that you are emulating.
But pay attention to the second error:
I have had this error many times, but it is mainly presented even if the virtual machine is running VS successfully, but there is a problem associated with it through the virtual switch created for it, and which can be controlled in Hyper -V under virtual switches.
In this case, again, you can solve this problem by deleting the virtual switch in Hyper-V Manager, and VS will recreate it when debugging again.
I'm sorry that I do not have a definitive answer for you with detailed steps, but removing virtual switches and virtual machines works most of the time, since VS does all the configuration for you when you try again, but if that fails, check this guide on MSDN . I hope that you earn it, it is a serious pain to deal with these problems for a while when you are just trying to test your applications.
MKS
source share