Windows Phone Emulator not working - windows-phone-8-emulator

When I try to start debugging my windows phone 8 app in Emulator WVGA 512MB the following error message is showing
The Windows Phone Emulator wasn't able to connect to the Windows Phone operating system:
The emulator couldn't determine the host IP address, which is used to communicate with the guest virtual machine.
Some functionality may be disabled.
and the emulator is always showing The Windows Phone OS is starting...
Can't understand what's the problem. Please advice.

This worked for me (found here):
follow the following steps to solve this problem
1.go to network and sharing center
2.go to change adapter setting
3.go to v Ethernet (internal Ethernet port windows phone emulator internal switch)
4.right click it and enable it(if already enabled then disable and enable it again).

At last the problem is solved.
Open Hyper V Manager
Delete all installed Virtual Machines
Delete all Virtual Switches
Restart system
Rerun visual studio
Thanks to Shiv Kumar Ganesh

I had the same problem. After a long investigation and checking the event log, learned that windows firewall is blocking the emulator connecting to the virtual machine. With that information it is simple to fix the problem.
Yes! Just navigate to Control Panel -> System and Security -> Windows Firewall -> Allow app or feature through Windows Firewall. And click on Add another app button and browse the emulator's path (typically "C:\Program Files (x86)\Microsoft XDE\8.0\XDE.exe" but may vary based on your installation location). Choose the appropriate network type that you want and add the new item.
Now go back to VS and run your application (close any emulator instance that you have opened already), everything should work fine now!

the solution that worked for me :
open Hyper V
Select ur VM and go to Virtual Switch Manager.
Select Windows Phone Emulator Internal
if your connection is Internal then , check the Enable VLAN Identification option
press F5 from VS .
good luck!

Just reboot
No magic needed. Just reboot your development machine after installing Windows Phone SDK.

what your describing is usually due to a Firewall of a third party Anti-virus.
If your using Symantec follow this procedure https://stackoverflow.com/a/26326528/4446346
If your using Windows Firewall follow this procedure https://stackoverflow.com/a/27685167/4446346
and If you'r using AVG do the following procedure:
open AVG and go to-->Options-->Firewall Settings-->Expert mode-->Advanced Settings.
Check the "Allow any traffic from/to virtual machines supported by firewall"
and click "OK".
One more thing you must do is go to the "Windows Phone Emulator Internal Switch" and uncheck "AVG network filter driver"
open Network and Sharing Center-->Change Adapter Settings-->Properties
Uncheck "AVG network filter driver"

If you are loading the emulator for the first time, it behaves just like the phone (on first boot) where it will install the initial set of apps and configure them. Which is why the first start will take a long time. You can actually open Hyper-V manager and connect to the VM you had selected at the time of initiating debug - to see the actual progress of what is happening.
Hope this helps.

You can disable Hyper-V from Program and Features and reboot your machine twice. Everything will be default. Enable Hyper-V and reboot twice and everything should be working again.

Also you can check if your vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch) in Network and Sharing Center is enabled (mine was not, and I got same error like you).

Check that you have enough free space in your hard drive.

If you have a computer with a touch-screen and get this error, it can be because Hyper-V is trying to port over the touchscreen-fx to the virtual device.
This is (when found) easily corrected:
Shut down all attempt at launching virtual devices.
Go to: Hyper-V Manager->Hyper-V-settings->Physical GPU:s // Uncheck box "use this GPU with RemoteFX"

Try uninstalling vmware player 12 if you have ,I have tried several ways but nothing works until I remove it.
Hope it could help you.

Related

I accidently disabled virtualbox host-only network for Genymotion

I accidentally disabled my virtualbox host-only network in Network and sharing folder and it disappeared, and now I cannot do anything in Genymotion due to a network error. How do I find the network to enable it or get Genymotion to work again?
Genymobile soft is supposed to recreate the apropriate network on the fly when needed.
Make sure you use the last version and it should be fine.

Sonicwall Global VPN not working

I was using SonicWall Global VPN for a long time and it was working perfectly. But I am having trouble in connecting it for last few days. I have tried the following, but nothing helped.
Uninstalled Hamachi VPN
Uninstalled and re-installed SonicWall
Turned-off firewall.
Turned off anti-viruses
But it is working fine in my friend's machine, it is working fine.
Not sure what is the problem with my machine.
Can anyone suggest any ideas ?
Sometimes sonic VPN is not working because ISAKMP packet sent option is not enable. We need to mark it restrict first packets.
steps:
1. Go to File menu
2. Select properties
3. Click to Restrict the size of the first ISAKMP packet sent.
What error are you getting while connecting ? If it's stuck in connecting , it would be the OS version and GVC versions are not compatible !
Windows 7 : GVC version 4.7
Windows 8 and above : 4.9.9

How do I get the Emulator on the same network as my PC?

I've created some Web API methods in .NET 4 / Visual Studio 2010 (and have now ported it to VS 2013 RC).
I want to consume them from a Windows CE / Compact Framework app using RestSharp.
Regardless of how I call these methods, though, I need to know the IP Address to use for the app running the Web API methods. I can access it from a browser using "localhost" and the port number Visual Studio displays when running the View for the Web API project in the browser (works fine, returns XML in Chrome).
But: how can I call it from my Windows CE / Compact Framework app? The emulator in which I run it doesn't believe that it and localhost are really on the same machine, so I can't use that, nor the machine's actual IP address as, again, it is delusional about who/where it is.
So: what is the workaround? How can I test this?
More details about this can be seen here: RFC on HttpWebRequest vs RESTSharp from Windows CE / Compact Framework 3.5
UPDATE
Vasily, my guess was that you meant for me to do this:
...but that led to this:
Note: I get the same when I choose the other option from the dropdown asociated with the "Enable NE2000 PCMCIA network adapter and bind to:" czechbox, namely "Intel(R) 82579LM Gigabit Network Connection".
And trying to install http://go.microsoft.com/fwlink/?linkid=46859 (both the 64-bit and the 32-bit flavors) slapped me with:
So tell me, I implore: Is there balm in Gilead, so that there may be joy in Mudville tonight?
UPDATE 2
In step 6 (bullet 6), I did this:
...which got me first a message that the software didn't install correctly, with the option to retry or assert that, no, everything is really fine (I chose the latter), but then this:
...IOW, I don't make it to step/bullet point 7
Then again, this Peek cat did warn, "Note that this is very much a “works on my machine” experience. If it burns your house down, don’t hold me responsible."
My house didn't burn down (I don't think - I'm not there right now), but the process to extract the file did fail ignominiously.
You can use workstation network card by the emulator. Todo it you have to select "Use installed network card" checkbox and select the card from the list. after that you can use the workstation ip.
This was helpful for me:
Windows Virtual PC and the Microsoft Device Emulator
I've had to use it more than a couple of times.
I saved the file as a PDF to my network folder, so it took me a while to find the link.

How to run automated GUI tests on a remote headless ESXi Virtual Machine?

I'm trying to setup automated GUI tests in ESXi Virtual Machines using TestComplete. The problem, as I understand it, is that when no remote desktop connection is made to the ESXi virtual machine, then it is impossible for TestComplete to perform screen captures and therefore automate the GUI testing. As far as I understand it, this is due to the fact that Windows does not generate any user interface when nobody is viewing it.
I'm sure other have experienced this problem. How did you solve it ? Are you using a third party computer which automatically launch remote desktop connections prior to running the tests ?
Would it be possible to launch a remote desktop from a head-less virtual machine to another to fake somebody viewing ?
Any other smarter solutions I haven't thought about ?
You should be able to log in to Windows on the VM's console using the vSphere client, then close vSphere, and Windows will still believe the user is viewing the console. Simple as that. :)
So there shouldn't be a need to involve remote desktop in the mix.
As long as your tests then run as that logged-in Windows user, you should be fine.
This technique has always worked like a charm for me with certain Watir, Selenium, and MS UI Automation tests that depend on having an interactive desktop.
If you need to reboot the VM automatically before/during the test, instead of logging in manually in the vSphere client, you can make Windows log in as an arbitrary user automatically - check the "control userpasswords2" command, or you can use the Sysinternals app "Autologin":
http://technet.microsoft.com/en-us/sysinternals/bb963905
Only catch with this technique is that you need to be able to launch your tests while not viewing the console on the VM, but it sounds like you've already taken care of that?
If you need a solution for launching your tests remotely, I highly recommend using Jenkins or Hudson to kick off tests/collect results from the VM. Jenkins has changed my life in this regard.
You may consider using the Network Suites functionality of TestComplete:
http://smartbear.com/support/viewarticle/16849/
It can open Remote Desktop connections on its own, control tests on remote PCs, and pull the logs back to the "master" project. This feature is designed to be used for distributed tests, and looks like it's just what you need.
As for opening RDP to a head-less VM, it should not be a problem - it's up to Windows to "think" about this. You just open RDP and it works even if there is no monitor attached to the remote PC/VM.
I hope this helps,
Alex
You can always use VNC with checking the option "Do nothing" when disconnecting viewer. This way you'll trick windows to generate the image.

Sysinternals' Portmon: Error 2

When I try to connect to local ports, Computer -> Connect local, using Portmon v. 3.02, I'm getting an error message, Error 2, in a small error dialog box:
I run the tool as an administrator (if not, I get error 6).
By the way this is a Windows 7 x64. On 32-bit, in Windows 7 x86, it works fine. How can I fix this problem?
Sysinternals' Portmon works only on 32-bit versions of Windows. It does not support 64-bit (probably its driver is not signed).
From the Portmon homepage:
Runs on:
Client: Windows XP (32-bit) and higher (32-bit).
Server: Windows Server 2003 (32-bit) and higher (32-bit).
In Windows Explorer, right click on portmon.exe --> select Properties --> click the Compatibility tab, and Run in Windows XP compatibility mode. It works fine like that in Windows 7 64-bit.
"Error 2" is "Cannot find the file specified", that is, cannot find a required DLL file.
Originally, you got this error when you tried to run Portmon from a network location: that broke the security trust, causing Portmon to be untrusted (or perhaps just messing up the search path somehow).
On my copy of Windows 7 64 bit, Microsoft Dependency Walker (depends.exe) tells me that PORTMSYS.SYS (the file created/loaded by Portmon.exe), has unresolved dependencies on ci.dll, clfs.sys, hal.dll and kdcom.dll.
Those are the
code integrity
common log file system
hardware abstraction layer
kernel debugger com
libraries, and they aren't actually missing: if they were, Windows wouldn't boot. However, I don't see a copy of those files in SysWow64. This suggests to me that the problem is not with portman.sys: the problem is with the win32 compatibility layer in Windows 7/64 bit: It doesn't support debug properly.
It is now 2018. There is no 64-bit version of Portmon. Serial ports are a legacy standard. The Windows 7 problem was fixed by the release of Windows 8.1. However, there is a faint chance that some Visual Studio utility or security update back-ported to Windows 7 will fix the problem. Perhaps someone who is familiar with SysWow and debugging will comment.
Instead of portmon for Windows x64, you can use an emulator of a pair of virtual COM ports and a simple program that will connect the physical port and one of the virtual ones, as well as perform the logging function.
To create a pair of virtual COM ports you can use:
com0com (preferably version "com0com-2.2.2.0-x64-fre-signed", because it contains signed x64 driver)
Virtual Serial Ports Emulator (VSPE), every time it starts on x64 it asks to purchase a driver, but it works even if you refuse.
Simple mapping and logging program can be found e.g. here or you can write it yourself, it is simple.
The sequence of actions is follows:
Сreate a pair of virtual COM ports using emulator (for example, COM28 and COM29)
Let the external device be connected to the computer COM1 port. In the program, whose exchange with external device we want to listen to, we set up a port COM28 (instead of СОМ1) for communication.
In the mapping program, we set up that we want to bind and log ports COM1 and COM29 (don't forget to set the port baud rate).
I haven't tried it yet, but this question mentions com0com. It creates two virtual serial ports and emulates a null modem cable between them. It claims to be able to run on 64 bit Windows. I'm not sure whether it comes with software that lets you just pipe input from a real port into one of the virtual ports. One of the FAQ's says that you can turn on logging.
I guess in the worst case, you could write your own small program that pipes data from a real port to one of the virtual ports and logs it all.
There's also this question on open-source alternatives that mentions a couple of projects.
I've used AccessPort
http://sudt.com/en/ap/download.htm and it works great. Very similar to Portmon
Don't start Portmon from a network drive/path or something else.
Copy on to the hard disk drive, e.g. on the desktop, restart and try again!
If you run Portmon in compatibility mode, it will work.
Check Make older programs run in this version of Windows.
It says:
To run the Program Compatibility troubleshooter:
Open the Program Compatibility troubleshooter by clicking the Start button Picture of the Start button, and then clicking Control Panel. In the search box, type troubleshooter, and then click Troubleshooting. Under Programs, click Run programs made for previous versions of Windows.
Follow the instructions in the troubleshooter.
The above is a public explanation from Microsoft for a common situation when running older applications in Windows.
But, I can say it briefly;
Right click on portmon.exe
Select menu about "troubleshooting compatibility problem" or something like that (I'm using a foreign version of Windows, so I don't see correct name of that menu in English.)
Select automatic mode
It will detect the problem and recommend Windows XP (SP2) mode
Select it and execute Portmon again.
I hope it works!
Instead of Portmon you can also use the IO Ninja program with the "Serial Monitor" plugin.
It gives a little less information than Portmon, but in a more understandable form. The main thing is, just like a Portmon, it allows you to see the data that is transmitted between a third-party application and an external device via a serial port. The program works under modern versions of Windows (I tried it myself on Windows 10 x64). The aforementioned plugin "Serial Monitor" is paid (but has an evaluation period).
Note: the port that you want to monitor must first be connected to the "IO Ninja" program, and then opened in a third-party application whose exchange with an external device you want to track.
Just to test that the hardware is working, you could perhaps boot a Linux live CD and run the statserial and/or minicom program to verify that it works. The Knoppix distribution seems to contain both those programs.
Serial ports on Linux are named /dev/ttyS0 for COM1, /dev/ttyS1 for COM2, etc.

Resources