Let my Windows Phone use my PC internet connection - windows-phone-8

I am creating a Windows Phone 8 app for the 1st time.
I am using VS2013. My app talks to my server and acquires an image. Is there a way for my Phone to use my internet connection at all?
I use to be able to do this with Windows Mobile Compact CF. I cannot see how to do this in my ide?
What I need is to run my app via my IDE/Debugger and for my mobile device to use my PCs internet connection as my GPRS connectivity is poor where I am.
Thanks

When uses Windows Phone 7.x with Zune, you can.
But when Windows Phone 8 comes, you cannot.
You can use the Windows Phone Emulator, it will use your PC's internet connection, or you might be able to share your PC's internet connection via wireless or Bluetooth (with some hardware on your PC).

Related

Developer unlock Windows Phone 8 : Error Code 0x64

We need to unlock a Windows Phone 8 device in order to deploy our app that still supports this specific platform.
The process was working some months ago without any problem but now, Windows Phone Developer Registration Tool, available with SDK 8.0, returns the following error:
We have already tried with different devices (with the date set correctly: UTC +1 Rome)
HTC 8S
Lumia 720
Nokia 625
all with the same result.
We have tried to unlock our devices for an entire week, so it does not seem a temporary problem.
The devices and the pc have both a working Internet Connection and aren't running behind any firewall/proxy at all.
We have no problem at all, unlocking WP 8.1 devices with the proper Windows Phone Developer Registration Tool for WP 8.1
Do you know if there's any technical problem on the Microsoft side?
Is the Windows Phone WP 8.0 unlocking process still supported by Microsoft?
As of May 13, 2015, you can no longer developer unlock Windows Phone 8.0 devices. You have to upgrade them to Windows Phone 8.1. I don't have an article to point to, just an email I received from MS to the email address associated with my developer account:
If you have a Windows Phone 8.0 device that you use to test your apps,
please read this mail.
The Windows Phone 8.0 certificate that validates developer unlocks
will expire today May 13, 7pm, Pacific Daylight time.
We recommend that you re-unlock your Windows Phone 8.0 test devices
prior to today 7pm, to continue testing for another 24 months.
After today, no Windows Phone 8.0 device will be able to be developer
unlocked, and you will have three options to continue testing Windows
Phone 8.0 packages: – Update the phone to Windows Phone 8.1 and
unlock it for developer testing – Submit apps as beta through the
Windows Dev Center and test with Windows Phone 8.0 devices – Test
Windows Phone 8.0 apps via the Windows Phone emulator
Any Windows Phone 8.0 device currently unlocked will continue to be
unlocked and work as a test device until its certificate expires. To
maximize the time available to test with this device, please lock then
unlock the device before May 13, 2015 7pm PDT.
Note that this change has no impact on apps available in the Windows
Phone Store, has no impact on Windows Phone 8.1 devices, nor will it
impact customers with Windows Phone 8.x devices.
The Windows Store team
I tried registering my Lumia 820 using WP8 SDK Registration tool and it succeeded. So I believe there is no technical problem on Microsoft's server.
It is still possible to unlock Windows phone 8.0 devices. Only 7.x devices can't be unlocked now as mentioned in this article
As you are getting time error, Try disabling "Set Time automatically" from Settings menu as per the official documentation
Are the date and time set correctly on the phone? In SETTINGS | date + time, turn off the Set automatically setting and then retry registration. After registration succeeds, turn this setting on again.
Make sure your phone also has some internet connection, such as wifi.
I've had some problems sometimes registering some WP devices as developer devices. I've never had this particular error, but maybe this will work.
When the device is connected to the computer, in the taskbar click in the icon which shows that a device is connected (the one where you can "Safely remove" the device) and right click on it and select the show devices and printers option. When it opens, you will see all the windows phone devices you have connected to the computer. Disconnect your device and uninstall it and its drivers by selecting the appropriate option after right clicking on it.
Connect it again, it should now install its drivers again.
And just in case, if you have the correct date/time on the device, just confirm they also match the region/location set in the device. for eg- suppose you have set the time to indian standard time (IST) but the region of the device is set to that of USA or some other location.
If the WP8.0 answer or other date/time finagling does not help, another recommendation to try is to just reboot the darn thing after changing the time settings to manual.
I ran into this error with a Windows 10 Phone today. I tried adjusting the time settings from automatically set to manual, and ensured all was in sync between the Phone and PC, but I still received the 0x64 error code. I tried another PC, to no avail. By chance, I decided to reboot the phone. After rebooting and launching the PhoneReg tool, all was happy and I was able to unlock the phone and deploy my app.
Check windows phone date+time = pc date+time
date+time Set automatically turned off
unplug de phone and reconnect

Unable to register my Lumia 1020 as a testing phone for windows phone apps

I have a Nokia Lumia 1020 that I need to register as a testing device for my Windows Phone Apps. It is running Lumia Cyan thus Windows 8.1. I have Windows Phone SDK 8.1 and 8.0 installed on my machine and when I try to use the Windows Phone Developer Registration (8.1) interface or the normal one (Windows Phone Developer Registration unde Windows Phone SDK 8.0 i keep getting the same error. Unable to connect to a Phone. Make sure that the Windows Phone IP over USB Transport Service is running. I try to restart the service, switch ports, switch from Wi-Fi to 3G network on my phone. Nothing works. I have ensured that the Phone is showing as a device under File Explorer and when I connect the phone to my computer it does launch the Windows Phone app for desktop well. I am not sure what to do at this point and it's getting frustrating. I have tried to reinstall the SDKs and still nothing. I do have a developer account and developer account details intact. Please help... someone.... anyone :(
I finally figured it out. I went to device manager and found under Universal Serial Bus Devices and found device drivers of my phone on all the ports where I had connected the USB cable. I then right-clicked on one that showed that needed an update. I clicked on update device driver software where it scanned for updates and found out that the driver was up to date then I realized that it was not enabled. I enabled it and it was able to recognize the phone. However I had to keep restarting the service since the software kept going offline as well as switching from 3G to Wi-Fi. And it finally worked :)

How can I start phone emulator on HyperV or share phone through RDP?

I want to see how far I can take my Surface 2 for developing in Visual Studio 2013. Please note that this is a Surface 2 running WinRT - not full version.
Here is my setup
Surface 2 on desktop mode with RDP.
Windows 2012 running HyperV with a Windows 8.1 VM.
On the Windows 8.1 VM I have installed VS 2013. Naturally, HyperV gets installed as well.
My problems
My first thought was that I could use the Emulator but it complains that it failed to start because some of the Hyper-V components are not running. After some research this seems to be the result of Hyper-V in Hyper-V.
Then I tried to use an alternate approach. To share my Windows Phone through USB. I inserted my "Nokia Lumia 1020" in USB port of Surface 2. I could then see it in my desktop. Also, when I started RDP application I could see "Nokia Lumia 1020" under Local resources->Other supported Plug and Play devices. I checked it for sharing. I connected again but the phone was not visible on the guest operating system.
Anyone else done this? Either know how to circumvent the Hyper-V in Hyper-V or share the phone for development (through RDP).
You can't use hyper-v without windows 8 pro, I'm sorry... Try nokia's device rdp (http://developer.nokia.com/resources/remote-device-access) ...

Windows Phone emulator can't connect to the internet

I have a fresh installation of windows 8 and I have installed visual studio 2012 and Windows Phone 8 SDK. I can successfully create projects and run them in the emulator but my emulator doesn't have internet access. At the first time i ran the emulator the prompt was given whether i want internet access or not. I selected yes but in have no internet access. I connect to the internet using a dongle. It works fine and connection has no problems as well. I cant seem to understand the problem, What are the solutions to this problem.
How long are you waiting from launching the emulator to trying to access the net? The emulator takes a little while longer than you would expect to set up a connection - is that the issue?

Windows Phone 8 emulator doesn't show the actual state of its OS

Problem:
When I start Windows Phone 8 emulator it launches a virtual machine in Hyper-V. After a few minutes Windows Phone OS gets loaded (I can connect to it through Hyper-V manager (it's inconvenient to play with WP this way though)), but the emulator keeps reporting: "The Windows Phone OS is starting...".
After some time (apparently timeout happens) deployment from Visual Studio fails with error: "App deployment failed. Please try again."
How I got here?
Everything works fine when I use wifi connection and have a dynamic ip address. Emulator works properly and I have internet in Windows Phone OS.
But unfortunately most of the time I have to use Ethernet connection with a static IP address (which is assigned to me by internet provider based on my MAC address). And in this case there is no internet in Windows Phone emulator.
As far as I understand, virtual machine in Hyper-v connects to the network with a kind of it's own ethernet card(another MAC address) and have a different ip address. In that case it won't get any internet from my provider.
And even if the emulator would have the same MAC and IP address it will create a mess for internet traffic.
So my laptop should be a router for WP emulator. That's why I make sharing of my primary internet (ICS) with a Windows Phone emulator switch (vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)). In this case I do have have an internet on Windows Phone, but when I connect through Hyper-V manager only. In Emulator it doens't even show when the OS gets loaded.
After I stop sharing of the internet with Windows Phone emulator switch, the emulator itself is working perfectly.. but with no internet.
Any ideas how to make windows phone emulator work with my type of internet connection?
Here is a good resource from Microsoft on Troubleshooting the Windows Phone 8 Emulator.
Follow the instructions and hopefully it should solve your problem
The Cannot connect to network destinations or to Internet sites section of the link, should address your problem.
Update:
One more solution from another site,
"Go into Hyper-V Manager from your start screen. Go into the Virtual Switch Manager.
See if a virtual switch with the name "Windows Phone Emulator Internal Switch", if not Create a virtual switch called "Windows Phone Emulator Internal Switch". And Make it's connection type 'Internal'."
Do all this before launching the Emulator. And if that did not solve your problem, remove the existing switch and create the new one again.
If still that didnot solve your problem, here is a good discussion about the similar problem .. check that.
Windows Phone 8 emulator can't connect to the internet
I think I got the answer for this issue from Microsoft forum.
DHCP is clearly a requirement for windows phone emulator (it's listed as a requirement for SDK). And if you have a static IP address it's not possible for you to have internet on your windows phone emulator.. even with Internet Connection Sharing.
Possible solutions I can see:
Install Windows 8 with Hyper-V and Emulator in some other virtual
machine (VMware, VirtualBox)
Install some proxy (Not sure if it will work. I think it would be difficult to configure.)
Buy a router. This seems to be the easiest solution. I would recommend this to everyone and not to waste that much time on this as I did :)