Unable to deploy on Windows 10 Mobile - c#

I was coding normally on visual Studio 2015 Community, I did some deployments on my Lumia Icon device, but suddenly, when I was developing an app with OAuth 2.0 to interact with LinkedIn and tried to deploy this app, visual studio started to crash, and I got that error list
2>------ Deploy started: Project: OAuth2, Configuration: Debug Any CPU ------
2>Deploying X:\...\...\Documents\Visual Studio 2015\Projects\OAuth2\OAuth2\Bin\Debug\OAuth2_Debug_AnyCPU.xap...
2>Connecting to Device...
2>Deployment of application to device failed.
2>External component has thrown an exception.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
And now this is happening with any app that I try to deploy on my phone (I've.. tried with VS2013 and got the same problem).
My device has the "Developer Mode" On and is unlocked to deploy WP apps.
Lumia Icon: Running Windows 10 Mobile Build 10586
Anyone already had that issue?
UPDATE: Error box show this
Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device'

If you didn't install VS 2015 Update 1, please do so:
https://www.visualstudio.com/en-us/news/vs2015-update1-vs.aspx
If it is already installed, then maybe Windows 10 SDK is out of date. See
https://dev.windows.com/en-US/downloads/windows-10-sdk
...for standalone SDK installer.

SOLUTION:
The main issue was with my VS2015.
First, I've already seen that the solution submitted by #SrdjanJovcic works fine, that one is the first step if you have a problem with your VS.
The second step (do it if the issue remains even after installing the updates): go to Control Panel of your PC, go to Programs, and then "repair" your Visual Studio.
(My problem was with VS Studio SDK Update for W10M 10586.11, it installed the update with some erros, but after repair, everything works fine)

Hi i also have windows 10 mobile 10586.11 build after doing reset my device is not connected in my PC/Visual Studio 2015.
I think this is may be 10586.11 build issue please upvote this issues in Feedback app.

Related

webpack-dev-server not working with proxy IIS Express after Windows 10 Creators Update

After installing Windows 10 Creators Update webpack-dev-server does not work anymore. What happens is that I start IIS Express and it works like normal. When I then try to start webpack-dev-server with a proxy to the IIS Express I get the following error in Visual Studio:
The program '[14752] iisexpress.exe' has exited with code -2147023895
(0x800703e9).
Edit:
Turned out to be a stack overflow exception and not the IIS at all. I also did a git pull but since I had a lot of other errors with my screens etc after Creators Update I thought it was related. A hint might be that -2147023895 is quite close to Int32.MinValue (-2,147,483,648).
Original:
Got it working but it is painfully slow. In VS -> Tools -> Options... -> Projects and Solutions -> Web Projects -> Tick "Use the 64 bit version of IIS Express for web sites and projects"
I also tried deleting the .vs folder and bind the application to a new port but this did not help.

Windows 10, VS 2015, unable to start debugging WindowsPhone 8.0 app on emulator/device

I have a fresh Windows 10 install, fresh VS2015 install.
Windows 8.1 emulators are installed, they startup as expected and they can see the internet. So far so good.
Compiling and deploying the Windows Phone 8.0 (silverlight) application works fine, however, debugging refuses to start with the message:
Status bar: Launching TaskHost.exe failed.
Popup: The application could not be launched for debugging. Ensure that the target device screen is unlocked and that the application is installed.
I have checked (the obvious) and the device\emulator is unlocked and I can physically run the app that was deployed when the debugging session was attempted - so I know its installed. Confirmed by uninstalling and re-deploying.
The same error occurs with the emulator AND the device. I can debug normal (non windows phone) applications just fine.
Output logs:
2>------ Deploy started: Project: {APPNAME}.WinPhone, Configuration: Debug x86 ------
2>Deploying F:\TFS\{PATH}\x86\Debug\{APPNAME}.WinPhone_Debug_x86.xap...
2>Connecting to Emulator 8.1 WVGA 4 inch 512MB...
2>The application is already installed on the device. Checking if an incremental deployment is possible...
2>Doing incremental deployment...
2>Updating information related to modified files...
2>Deployment of F:\TFS\{PATH}\x86\Debug\{APPNAME}.WinPhone_Debug_x86.xap succeeded.
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
Any ideas?
You need to set the following in your code:
// Avoid screen locks while debugging.
if (System.Diagnostics.Debugger.IsAttached)
{
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
}
From: https://msdn.microsoft.com/de-de/library/windows/apps/ff402572(v=vs.105).aspx
The problem here ended up being that that Hyper-V Administrators group did not exist. This is a known problem with a particular (early) version of Windows 10.
The only way to fix it was a rebuild of the machine.

Helpless error in Windows Phone Unit Test output

Under Visual Studio express 2012 update 4 I have created windows phone app, for which i added Windows Phone unit test App. When I try to run the tests, Tests output windows shows following error:
------ Run test started ------
Failed to import IDeployService. Cannot proceed with xap deployment. This failure can be observed if the component model cache (typically located in %LocalAppData%\Microsoft\VisualStudio\[version]\ComponentModelCache) is not up-to-date. To come out of this error, close all instances of visual studio, delete the component model cache folder and try again.
Unit tests in source D:\projekty\PhoneApp3\TestApp1\Bin\x86\Debug\TestApp1.dll cannot be run. Please create a Windows Store or Windows Phone Unit Test project.
========== Run test finished: 0 run (0:00:00,0009998) ==========
Deleting of %LocalAppData%\Microsoft\VisualStudio\[version]\ComponentModelCache does not help
EDIT:
If I open the same solution in VS 2013 Express for Windows I can successfully run those tests
Is it a side-by-side installation of VS21012+Update4 and VS2013 Express?
Maybe you could try repairing your VS2012 installation from "Programs & Features" in control panel and see if that resolves this issue?

Building Metro Apps for beta testing

I have created a Metro application, but I did not yet send it to Windows Store as it's still in beta. One of my friends was interested in testing my application. To install my application on hes computer I used sideloading, following the steps in this article : http://blogs.msdn.com/b/patricka/archive/2012/11/05/how-do-i-deploy-a-windows-8-app-to-another-device-for-testing.aspx . The problem is that, when a press "Y" (yes) and PowerShell should install my app, it gives an error "The package or bundle is not signed or it's digital signature is corrupted. ". What should I do ? I sent him all the files that were generated by the Visual Studio.
I have to mention that :
I'm using Windows 8.1
I've developed the app in Visual Studio 2013 Professional
The target platform of my app is Windows 8.1 (and I have no idea how to change this)
My friend does not have Visual Studio installed
My friend uses Windows Server 2012 Datacenter (Could
this be the problem ? What should I do in this case ? I'm very
interested that my app to work also on Windows 8, Windows Server 2012
because this are the OS-es that are used at my office and by a
majority of the people with whom I work and that could test my app
before releasing it to the market. )
EDIT : I tried to follow the steps in this article http://msdn.microsoft.com/en-us/library/windows/desktop/jj835836(v=vs.85).aspx , but my error does not appear to be listed there.
In AppxPackagingOM > Microsoft-Windows-AppxPackaging/Operational I have the next error:
error 0xC00CE014: App manifest validation error:
The app manifest must be valid as per schema: Line 27, Column 8, Reason: Element
'{http://schemas.microsoft.com/appx/2013/manifest}VisualElements' is unexpected according
to content model of parent element '{http://schemas.microsoft.com/appx/2010/manifest}Application'.
Expecting: {http://schemas.microsoft.com/appx/2010/manifest}VisualElements.
Also in AppXDeployment-Server > Microsoft-Windows-AppXDeploymentServer/Operational I have no errors.
After reading your question again, I see the obvious solution.
The target platform of my app is Windows 8.1 (and I have no idea how
to change this)
...
My friend uses Windows Server 2012 Datacenter
You need to target Windows 8 to make it run on 8/2012. And if you check out MSDN, you'll see:
If you want to create a Windows 8 version of your app, you must use
Microsoft Visual Studio 2012.
Please make sure you have created beta app package in release mode not in debug mode. This is wrong from here.
Also check out Can Windows Server 2012 run all Metro (/ Windows Store) applications?

Windows Phone 8 Emulator not launching. Error code 0x80131500

I have problem with Visual Studio 2012 (OS: Windows 8.1 Preview)
Create empty project (Windows Phone App)
Press F5 to start debugging.
And I get 0x80131500 error code, with no detailed description. Only this: Deployment of application to device failed.
Output:
1>------ Deploy started: Project: PhoneApp1, Configuration: Debug Any CPU ------
1>Deploying C:\Visual Studio 2012\Projects\PhoneApp1\PhoneApp1\Bin\Debu\PhoneApp2.xap...
1>Connecting to Emulator WVGA 512MB...
1>Deployment of application to device failed.
1>0x80131500
Has anyone encountered such a problem. How it can be solved?
Installing Visual Studio 2012 Update 3 should fix the issue http://support.microsoft.com/kb/2864215
Windows 8.1 Preview does not support the Windows Phone 8 sdk to run on the Visual Studio 2012. You cannot run Emulator as well so better you should use a stable Windows 8 version for WP8 development. This is the statement right from Microsoft Support
After you upgrade your OS to Windows 8.1 Preview, you cannot run Windows Phone 8 Software Development Kit (SDK) emulator (XDE.exe) in Microsoft Visual Studio 2012
Reference here
In my case, updating Windows Phone SDK and VS Express 2012 helped on Windows 8.1, but performance is poor.
If it's helpful try installing update to VS:
http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/07/02/running-the-windows-phone-emulator-on-windows-8-1-preview.aspx
And updating SDK:
http://dev.windowsphone.com/en-us/downloadsdk
For some one who is looking for an answer who has the same issue while working on a virtual environment, here is a nice article on it
Setup: Visual Studio 2013 + Windows 8.1 (no betas) + this did work
Resolution: Restart the Hyper-V service
I'm also receving this error while simulating the program. i hav win 8 only and vs12 windows phone...
but when i serach info. regarding this error i get i have not hyper-v windows feature. try this feature you have or not and enable it..
Hyper-v Link : http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj863509(v=vs.105).aspx
I found this is the key thing to check, as per (WP8) Emulator (XDE) Troubleshooting Tips on msdn:
Launch the “Network Connections” manager (from the home screen, type in “View Network Connections”, It will be listed under Settings)
Right click on the adapter named: “vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)”
For that adapter, the only items that should be checked under “This connection uses the following items:” should be:
Client for Microsoft Networks
QoS Packet Scheduler
File and Printer Sharing for Microsoft Networks
Microsoft LLDP Protocol Driver
Link-Layer Topology Discovery Mapper I/O Driver
Link-Layer Topology Discovery Responder
Internet Protocol Version 6 (TCP/IPv6)
Internet Protocol Version 4 (TCP/IPv4)
All other items should be unchecked.
I installed Windows Phone 8 SDK. Emulator didn't work because Hyper-V was not turned on. I installed Hyper-V from Programs & Features and got the 0x80131500 error.
Visual Studio 2012 Update 4 fixed the issue.
I faced the same issue. Later i was able to fix the issue by downloading and installing
Visual Studio 2012 Update 4 from microsoft website.
Try out these steps if using VS 2012 with Windows 8.1 Pro:
Uninstall Hyper-V
Reboot
Install Hyper-V
Reboot
This should help.
service Remote server of you is disable. You could enable remote server! And don't can reinstall Hyper-V. it's working for me!
I solved with following repair sequence :
Uninstall Hyper-V
Reboot
dism.exe /Online /Cleanup-image /Scanhealth
dism.exe /Online /Cleanup-image /Restorehealth
Reboot
Install Hyper-V
RG

Categories

Resources