How to develop Windows Phone applications without SLAT - windows-phone-8

I decided to start developing for Windows Phone, downloaded Visual Studio 2013 with Windows Phone SDK and in finishing window installer said that I can`t use emulator because of not SLAT-compatible computer. What should I do?
I found Windows Phone 8 Emulator on non-SLAT Machines and now I ask Is it really a solution:
It works, but not on Windows 8. Windows 2012 server uses hyper-V version without requirement of SLAT.
So:
Windows Server 2012 trial (i use Developer version).
Installed on physical device - not on VM.
Install slat-less feature Hyper-V. Standard WP8SDK.
And voila. It worked like a charm. And it's kinda fast. First emulator on list in VS loads about 30 sec. More advanced take longer but not much. Deploying is instant. Give it a try if youre not to buy phone or new computer :)

Yes it's possible to develop apps on a machine without SLAT. It is not, however possible to run the emulator (in any kind of supported manner) on such machines.
It is possible to develop without an emulator though. You'll just need an actual device to test on.
This shouldn't be a barrier though because even if you have an emulator you should always test on a physical device. It's just a little bit more awkward to use a physical device sometimes.
On the plus side a physical device will let you test some things that the emulator can't. e.g. proximity
But on the downside the emulator makes it easier to test other things, like location changes or how the app will look on different resolution devices.

Related

Windows Phone 8.1 device registration error code 0x64

I wanted to get started with app development for windows phone 8.1. I own an up-to-date Lumia 630 device with Windows Phone 8.1 which I wanted to use as test device. Now, the problem is that i can't register this device as a test device. The registration tool which came with the sdk 8.1 always give me the 0x64 error code. I googled this problem but none of the solutions (including the ones here on stackoverflow) solved the problem for me. My phone has internet connection through wi-fi and is unlocked and up-to-date (tryed restarting and not using wi-fi). Also the windows background service is running (also tryed restarting it). An up-to-date windows 10 is running on the laptop with which I want to develop.
My microsoft account is not a developer account but from my understanding, i should still be able to use at least one device as test device without having to pay.
I also posted this question in the microsoft forum.
I appreciate any help.
I think your account must be associated with dev account.
Not sure what changed, but it appears this is now fixed. I am able to register multiple devices to my developer account again.

Windows (phone) emulator 8.1/10 stuck at loading the OS

I've been trying to get the emulator to work for days. Previously I tried the Windows Phone 8.1 Emulator as well as the Windows 8.1 Simulator and both were stuck at loading the OS.
Earlier today I installed the new Windows 10 Tools and thought I should give it another try with the new Windows 10 Emulator... And no, still the same result.
What's strange is that, the Hyper-V Manager seems to be doing OK. I can see the app displays correctly on the little Preview window (see the box on the left side of the picture below).
Also, breakpoints are hit, the project seems to be running OK.
As many answers have already suggested, I tried letting it running for an hour, but still nothing came up.
Things that I've also tried include uninstalling all the Virtual Machines as well as repairing the WP 8.1 Emulator, nothing has worked so far.
Please help, this has driven me completely insane. :(
Update
Not sure if this would help, but if I change the Windows Phone Emulator Internal Switch to use Private network instead of Internal, I will get a couple of warnings saying Unable to determine the Host IP address and then the Emulator will show up with the Emergency Call screen. Not much I can do from there as the three buttons on the bottom are not functioning at all.
I understand that changing the connection type is not the right way to do it, but this at least tells me that the Emulator can work, it's just a matter of how.
I believe you have two Windows Phone Internal Switch connections and one seems to be unplugged while the other is running. Disable the one that is unplugged and leave the latter. This worked for me after 2days of tinkering. God speed.
Try the following.
Open the Hyper-V Manager
In the Actions pane, click Hyper-V Settings
In the Server pane, select Physical GPUs
Uncheck, Use this GPU with RemoteFX
Click OK to save/close.
Attempt to start the Windows Phone emulator VM from within Hyper-V Manager or Visual Studio.
I solved this problem by simply adding XDE.EXE as an exception to my Windows Firewall.
Just today
Many times it is not stuck. It just does take too long to start. I have an 8 core processor and it took like 5 minutes to launch, I tought it was stuck but it did launch.
Not sure if this would help, but if I change the Windows Phone
Emulator Internal Switch to use Private network instead of Internal, I
will get a couple of warnings saying Unable to determine the Host IP
address and then the Emulator will show up with the Emergency Call
screen. Not much I can do from there as the three buttons on the
bottom are not functioning at all.
when you set it to private network, Windows can't interact with your WP Emulator. Open Network Adapter, and try disable and try start emulator again, then enable again this adapter if it is not work *
I contacted the Visual Studio Team a couple of weeks ago and looks like they have fixed this issue in the latest update. And here is how I finally got it all working.
Update your Windows 10 TP to the latest version (currently 10074).
Install the latest Visual Studio 2015 (currently RC).
Install Windows 10 developer tools preview from here (I got
some weird errors with Error code: -2147023294. Ignore them, go
straight to the next step).
Install the standalone Windows SDK for Windows 10 Insider
Preview from here.
Install the Pre-release Microsoft Emulator for Windows 10 Mobile
from here.
That's all! After all these are done, both my Simulator and Emulator are loading up fine.
In my case, deleting the internal switch from Hyper-V virtual switch manager helps, whenever you run your app using emulator as the target, it'll add a new internal switch by itself and the emulator will run normally (no longer stuck on loading screen)
The problem is, I have to do it every single time I restart my PC
The workaround steps to install the Windows SDK and Emulator are no longer needed.
We have released a fix as of 7PM PDT 30 April 2015 for the setup error
Windows 10 SDK 10.0.10069 : The installer failed.
User cancelled installation. Error code: -2147023294"
New setups should no longer encounter this issue.
For existing installations, and for more information, see this forum post:
https://social.msdn.microsoft.com/Forums/en-US/17bc9d5e-2ea7-4149-bb75-23997db8bd25/
This worked for me:
Go to Windows Defender.
Add exclusion following path: "C:\Users\UserName\AppData\Local\Microsoft\XDE\YourEmulatorVersion"
YourEmulatorVersion - for example 10.0.14393.9
2 days, tried all that is posted here but nothing worked! Finally, since it is a lot easier nowadays to (re)install windows without loosing your files (3 hours including updates), I just resorted to that. Same thing happened, but then I saw the alert that I had not yet activated my VS to run in developer mode :) Did that, and voila, the emulator now works.
If this might be helpful: my problem started when I installed Android Studio and disabled Hyper-V from Android. Enabling it back for VS just couldn't get me to run it again. But I hear there is a way to run both Android & VS emulators using VS emulator for Android. I will try to see how that works later...
I know the question is old, but none of the above answers worked for me so I write down my two cents:
Go to Hyper-V console and remove all emulators
Go to Devices Management, under network adapters tree node, delete all virtual switches
Run an emulator from Visual Studio and see the magic happen

Anyways of running app without requiring Windows 8 Pro version

I have been using Windows 8.1 for creating Windows Store apps. Below is output of winver command.
I have installed necessary updates to start developing universal Windows Store app using JavaScript. When I try to launch app on Windows Phone emulator, I am getting following error.
Unable to start windows phone emulator
It also suggesting to use Windows 8 pro version. Is there anyway of running this without requiring to throw more money on getting Windows 8 Pro version?
Windows Phone Emulator requires Hyper-V which needs Windows Pro version. That's probably why you aren't able to start your Emulator.
As I've posted in comment, I've heard about VirtualBox and an ability to run WP Emulator on it. Some helpful links: other question on SO, VirtualBox forum, video. I'm not sure how it will work (and if) as I haven't tried this.
IMO I would follow WiredPrairie's comment - upgrade or buy inextensive phone.

Windows 8 emulator : alternative way to run emulator

i have search on Google that to run windows 8 emulator,CPU must be supporting SLAT. and my PC does not support it. so i am not able to run emulator. now in this case is there any other way to run emulator because purchasing windows mobile or new processor is not good idea. i dont have money for this.
processor core 2 duo
RAM 4 GB DDR2
While SLAT isn't required on Windows Server 2012 to enable HyperV, it is required for Windows 8+ to enable a rich graphical experience.
There are some details here.
If you're developing a WP8 application, I'd highly recommend you acquire a physical device anyway for the best overall development and testing experience. Depending on your location, there are some very inexpensive devices.
There are no work arounds.

Install Win 8.1 and VS 2013 on virtual machine for Win mobile development

On my laptop I have installed Win 7 and VS 2012.But I need to get ready for the Microsoft exam for the "windows store apps using HTML 5, css and javascript". So my idea is to install Win 8.1 and VS 2013 trial versions for get hands on practice for above exams.So my question is can I install Win 8.1 and VS 2013 trial versions on my Laptop without removing the current Win 7 and VS 2012 (Maybe a virtual machine or something like that)?If you know how to achieve above goal please let me know.
In short my whole idea is to get practice for developing Win 8 apps for mobile. If you have other suggestions without installing the above software, please let me know also.
Windows Phone App Development requires Hyper-V & SLAT to run the emulator. That requires your host OS to be at least Windows 8 or better. On a virtual machine you will be able to develop apps, but you won't be able to run them on the emulator.
You can run Visual Studio 2012 and 2013 side by side, but then you would have to upgrade the host machine to Windows 8 Pro.
When both your laptop and your virtualization software support the required CPU features, it is also possible to run the emulator on top of Windows 7.
For more information see this link on the Nokia Developer Portal (Thanks for adding that GSerg!)
General answer (jessehouwing's answer is more accurate):
If your notebook has enough main memory, CPU power, etc. and the CPU ideally supports certain virtualization features, then you should be able to install Windows 8 inside a virtual machine.
To give you an idea how simple this could be, here's an example:
install VirtualBox
start it and set up a virtual machine with the proper CPU and OS settings
define a virtual hard disk that's large enough (this will end up being a file inside your current OS, no need to repartition your real hard disk drive)
get your Windows installation medium ready (a CD or ISO file will do)
point your VM's virtual CD drive to that installation medium
start the virtual machine and install Windows inside it