Unnable to connect/deploy app to/on device - c#

I am unnable to deploy apps/connnec to to my device on my notebook.
Problem description:
VS 2012 update 3, project is wp7, freshly installed
Windows 8.1 Enterprise (fully updated), freshly installed
HTC titan 7.8
sometimes I can deploy but like in 1:100
turning off wifi does not have any effect
mostly I get an error in VS: "This operation returned because the timeout period expired."
I can connect with wpconnect.exe(it takes a while) but I am still unnable to deploy in VS (timeout error)
I do not have any problems in device manager
Device manager shows Portable devices/HTC TITAN - LB
I can deploy on my other PC (also running W8.1 and with the same phone and cable and VS 2012 update 3), but not on my notebook
zune (newest one) mostly does not recognize phone at all, just showing "device"
, sometimes it detects my phone (sync relation guest)
with zune running and phone recognized the VS 2012 shows: "Failed to connect to the device. Ensure that the device is completely booted and is connected to the PC" (phone is fysically connected and unlocked in homescreen)
if zune is running and phone is not recognized (showing "device" instead of "phone") VS shows timeout error
Any suggestions? Thank you for your time.

Related

Universal Windows App Debug on Device Not Working

I'm trying to deploy and debug a UWP app onto a physical device. The Device is an Acer Iconia W1-810 Tab 8 running Windows 10 Home. The development environment is also Windows 10 running VS2015 Community. The Acer is set to Developer mode and the screen is unlocked.
According to my reading of this article I should be able to connect the device via USB and deploy and debug directly on the device. At first I couldn't get the PC to see the device as Windows Phone IP over USB Transport (IpOverUsbSvc) was disabled. Enabling that means I can now see the table on the network under the Phones category.
The project in VS is also set to Uninstall and then re-install my package ...
Selecting Device as the debug target in VS yields this error:
DEP6200 : Bootstrapping failed. Device cannot be found. 0x89731810:
Deployment failed because no Windows Phone was detected. Make sure a
phone is connected and powered on.
Selecting Remote Machine as the target device yeilds:
Error: Unable to connect to the Microsoft Visual Studio Remote
Debugger named '192.168.0.7'. The Visual Studio 2015 Remote Debugger
(MSVSMON.EXE) does not appear to be running on the remote computer.
This may be because a firewall is preventing communication to the
remote computer. Please see Help for assistance on configuring remote
debugging.
Which is understandable as I don't have this installed at the moment. But from my understanding the first scenario should be working and I'd rather not install a debugger on device unless absolutely required.
What do I need to configure in order to get the first debug scenario working?
It sounds like you might not have installed the visual studio remote tools on your target machine. You need to do that first before you can do any remote debugging.
Here are the instructions:
Download the Visual Studio Remote Tools from one of the links provided at https://msdn.microsoft.com/en-us/library/y7f5zaaa.aspx
Install the remote tools on the target machine
Start the remote debugger on the target machine
From visual studio click on small lack the arrow to the right of the debug button, and make sure "Remote Machine" is selected
When prompted, enter the IP of the device that you want to debug at.
(It sounds like you already know steps 4 and 5, but I included them for completeness)

Windows Ce Device does not deploy "The bootstrap could not be loaded."

I am trying to have some time to deploy my application with a motorola device MC32N0 before was with the MC3190 smoothly.
The error that occurs after shows me have performed the deployment is this:
    
"The bootstrap could not be loaded."
OS my computer is Windows 8.1.
I'm using Microsoft Visual Studio 2008 Service Pack 1.
The device operating system is Microsoft Windows Embedded Version 7.00.
I checked issues as is the Stackoverflow, made a series of steps to try to solve the problem.
I realized the installation of EMDK to try to solve the problem.
(EMDK FOR .NET - WINDOWS CE 7)
found this link:
https://www.zebra.com/us/en/support-downloads/software/developer-tools/emdk-for-net.html
(installed version 2.9 (last available))
I have already read chapter 10 of the guide (Application Deployment for Windows CE) the MC3200 INTEGRATOR GUIDE, which can be seen at the link below, and no success in solving the problem:
https://www.zebra.com/content/dam/zebra_new_ia/en-us/manuals/mobile-computers/mc3200-integrator-guide-en-us.pdf
Someone has performed these steps and went through this situation? Thank you very much in advance.
One detail is that it also does not connect to the device mobile center, with the 3190 model I could to deploy also not connected, which shows me the device center mobile is an exception "System.UnauthorizedAccessException," I have done reinstallation thereof, migrated to the latest version 6.1, and permenece with the same error. (The also ran as an administrator, but without success)

The network connection to ****** has been lost. Debugging will be aborted

I'm getting this error message when I run my UWP (Windows 10) application with the target set to "Device" (using my Windows Phone).
It says "Deploying" and suddenly fails. Usually, VS crashes and restarts. I have just installed Windows 10 and Visual Studio 2015 Update 3.
What can I do to fix it? I cannot run my app on my phone.
I finally discovered what was wrong!
It was due to a "bad" USB 3.0 connection.
I was connecting using a USB 3.0 hub. It seems the connections using my hub are somewhat unstable. I solved my issue connecting my Lumia directly to one of the USB ports the come directly from the motherboard.
Now, it works flawlessly!

IpOverUsbSvc not found while deploying Windows Phone 8.1 app in Windows 10

I am trying to deploy a Windows Phone 8.1 app in Windows 10. I am getting the following errors:
Error : DEP6200 : Boostrapping 'Device' failed. Device cannot be found. Windows Phone IP over USB Transport (IpOverUsbSvc) is not running. Retry after starting Windows Phone IP over USB Transport (IpOverUsbSvc) from the services management console.
Error : DEP6100 : The following unexpected error occurred during boostrapping stage 'Connecting to the device':
SmartDeviceException - Windows Phone IP over USB Transport (IpOverUsbSvc) is not running. Retry after starting Windows Phone IP over USB Transport (IpOverUsbSvc) from the services management console.
My Lumia phone is connected and is accessible from Windows File Explorer.
I have checked in services for the IpOverUsbSvc service, but its not there. So I also checked in powershell: get-service IpOverUsbSvc
Status Name DisplayName
------ ---- -----------
Stopped IpOverUsbSvc Windows Phone IP over USB Transport...
I was not getting these errors while I was using Windows 8.1. It seems like this service is not available in Windows 10.
Can anyone help me to solve this issue?
I have run that reg file, but for me it still didn't work. When I tried to run this manually it works:
I've experienced similar one when I've upgrade my dev system from 10166 to 10240 - IpOverUsbSvc does not start.
It seems that... in some cases, the registration info of ipoverusbsvc is corrupted. To fix it, just put a correct info to the registry.
You can find following link that ms guy upload the correct .reg file to his onedrive.
[UWP][SDK]IpOverUsbSvc service missing in windows 10 RC (Build 10240)
The problem in my case was that the service didn't exist. I used Microsoft Guy's reg update file
Then, rebooted my computer and service showed up. However, I couldn't start the service as the executable was missing.
I tried removing and reinstalling the Windows 10 SDK to no avail.
Then I found out that in Visual Studio Installer / Modify / Individual Package "USB Device Connectivity" was not installed.
That option checked installs the missing file.
Make sure that your services manager is closed during the installation process.
After installing the missing component you will be able to debug on win 10 device over usb.
I faced same problem because of 2 Visual Studio editions installed in parallel with different set of features. Repair of Visual Studio 2013 fixed the issue for me.
Replace "ARM" with "x86" or "x64" in "Active solution platforms" in "Configuration Manager" in VS2017

Exe not starting in windows ce 5.0 emulator

I'm developing mobile application for device running windowce CE. I'm trying to get my app started on windows CE emulator. On the emulator i have installed net compact framework 3.5 and compact sql. My app also installes from cab succesfully but when i try to run my app nothing happens. No error message or anything.
I have tried not deploying my app from cab but just copying files over to emulator but no use. In device it is working but i'm not always able to use the device when i need to run my app for testing.
Maybe someone has idea what to look or try.
Did you try to run it on the debugger?
It may be that the app is accessing some API or some driver that is not supported by the emulator and this prevents it from starting.
Starting in the debuger you may be able to step trough the main rountine or, at least, will have a chance to see some debug messages.
Is the Windows CE emulator running the same processor type than the real device? In contrast to Windows Mobile 6.x, Windows CE can also run on x86 instead of ArmV4i (XScale).
Did you really install the correct CF runtimes?
If you are running the stand alone device emulator there is an option to dock the emulated device and then use simply ActiveSync or WMDC. TCP/IP (viw emulated network) with emulator will no more work on Windows 7 PCs, the driver cannot be installed.
If the above does not help watch the Visual Studio Build window when you deploy a debug version of your app. VS will then deploy all necessary CAB and DLLs to the device.

Categories