DEP0001: Unexpected Error: SmartDeviceException - Class not registered [0x80131500] - visual-studio

When attempting to deploy ARM to windows phone device via USB in
Visual Studio 2017 15.5.2 (Xamarin UWP/Android App) I am getting this error:
DEP0001: Unexpected Error: SmartDeviceException - Class not registered [0x80131500]
After a clean install of Windows 16299 I continue to get the error, even with a blank app. Please Advise.

I had this issue with Visual Studio 2017 15.5.6. Solved with:
regsvr32 "C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86\SirepClient.dll"
from admin command prompt.

This problem does not happen on Visual Studio 2017 Version 15.4.5
(File Version 15.4.27004.2010).
This version was tested on a clean install of Windows 16299 with a
blank app and also a working project.
Direct deploy of ARM to Device via USB was successful without issues.
I will continue to use 15.4.5 until the problem with 15.5.2 is resolved.
12/20/2017 EDIT:
as of this date, in an update from 15.4.5 to 15.5.2 the problem has been fixed.

Related

Flutter windows app compile cmake error $<TARGET_FILE_DIR:testbed>

I'm actually trying to build a flutter app windows but i got this error message :
flutter build windows
CMake Error:
Error evaluating generator expression:
$<TARGET_FILE_DIR:testbed>
No target "testbed"
CMake Generate step failed. Build files cannot be regenerated correctly.
Building Windows application...
Unable to generate build files
The error was repeated about 20 times.
There is no problem with the flutter doctor -v command :
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.6.3)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.6.30225.117
• Windows 10 SDK version 10.0.18362.0
If anyone have a solution, thanks to him.
I found where the error came from :
In the .\build\windows\CMakeCache.txt file at line 59 there is this :CMAKE_INSTALL_PREFIX:PATH=$<TARGET_FILE_DIR:testbed>
To solve my error i just need to replace testbed by my project name.
Just go build folder in your flutter project and delete the windows folder and everything will be back to normal

Visual Studio 2017 cannot send code to Mac using Taco Remotebuild

I know this question had been asked hundrets of times, but the solutions provided did not help me.
I now have installed Visual Studio Professional 2017 (previously Professional 2015), build 15.9.17 with Apache Cordova. I click on 'Release' --> 'iOS' --> 'Remote Device' in my project. In the platforms folder I deleted the previous ios folder beforehand.
On my Mac (High Sierra) I have installed Taco Remotebuild, created a Remotebuild.config with the following entries: "appLaunchStepTimeout": 600000, "emulatorLaunchTimeout": 600000. I also ran chmod 777 /Users/micha/.taco_home/remote-builds/taco-remote/builds.
Now I am starting remotebuild --secure false on my Mac and after a while I can see that my Visual Studio connects to the Mac. However after a while it says:
Severity Code Description Project File Line Column Suppression State
Error An error occurred uploading to the build server
http://192.168.178.35:3000/cordova/build/tasks?command=build&vcordova=6.3.1&cfg=release&options=--device:
Timeout for operation exceeded (translated from German "Timeout für
Vorgang überschritten") My-famous-program 6.0.1 1 1
Severity Code Description Project File Line Column Suppression State
Error An error occured connecting to the build machine: The build url
cannot be null. My-famous-program 6.0.1 1 1
Note: Both computers are connected using Wifi; a physical connection is not possible. On each computer Node.js with version 8.16.2 is running; a newer version is not possible due to other dependencies.
What do I have to do to have this running?
Thanks in advance!
Does the cordova folder get built on the MAC? I can connect and it sends over the project, but because Microsoft doesn't support cordova in VS you need to manually create a project on the MAC and then copy your www that was passed from VS to your newly created project. I found this works for me.
See this too: Visual Studio Taco - Remotebuild will no longer deploy to remote device

Visual Studio 2017 does not detect Windows Driver Kit installation

I already have Visual Studio 2017 professional with Desktop Development with C++ installed.
I am trying to build the Virtual Serial project found here:
https://github.com/Microsoft/Windows-driver-samples/tree/master/serial/VirtualSerial
When I try to build it, I get the error:
Severity Code Description Project File Line Suppression State
Error MSB8020 The build tools for WindowsUserModeDriver10.0 (Platform Toolset = 'WindowsUserModeDriver10.0') cannot be found. To build using the WindowsUserModeDriver10.0 build tools, please install WindowsUserModeDriver10.0 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". virtualserial C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets
I cannot find any instructions on installation aside from this website.
https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
I downloaded the WDK for Windows 10, version 1803.
I closed VS2017 and ran the installer.
When running the installer I got the message in the screenshot below, I clicked Next to continue installing
After running the installer, the project still does not build, with the same error: WindowsUserModeDriver10.0 is not installed.
What am I missing during installation? Is this the correct installer for regular VS2017 (not community edition)?
Thanks,
I know this is old, but I recently fell into this rabbit hole. What worked for me was uninstalling all of the WDKs, rebooting, and installing WDK 1803 (the wdksetup.exe program downloaded from Other WDK downloads shows version 10.0.17134.1 in properties). That WDK installer specifically calls out VS 2017 when you add the Visual Studio integration at the end of the install process.
In my situation, I installed vs2022 with SDK 19041 and WDK 19041.
After some testing, I realized that VS2022 only supports WDK 22621(so on this date). So I installed WDK 22621 and SDK 22621, and problem solved.
If you still can't find Kernel Driver Build option, try run this file C:\Program Files (x86)\Windows Kits\10\Vsix\VS2022\10.0.22621.0\WDK.vsix(WDK 19041 only has VS2019). It's a Visual Studio's extension.
According to this: https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/windows-wdk-on-visual-studio-2017-community/fdbd2b44-e57a-4849-903d-04001205a764
WDK is not currently supported by visual studio 2017.
This is ridiculous

Visual Studio Build for windowsphone error : (XapDeployCmd.exe) didn't found

I build and emulate my cordova app in android device and VisualStudio Android Emulator successfully in Visual Studio.
But when I try to build and deploy my app to windowsphone device I got this error that said the file "XapDeployCmd.exe" does not in %PATH%
ERROR: Error executing ""XapDeployCmd" /enumeratedevices":
'"XapDeployCmd"' is not recognized as an internal or external command,
WARNING: XapDeploy tool (XapDeployCmd.exe) didn't found. Assume that it's in
%PATH% and deploy fails.
When I referred to the path that I must find the file "XapDeployCmd.exe" in "C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\XAP Deployment" I saw there is one file there: "XapDeploy.exe" and "XapDeployCmd.exe" is not there
so where is "XapDeployCmd.exe" ?
I'm using Visual Studio 2015 Community With Update 3 and I installed Windows Phone SDK 8.0
Tools for Apache Cordova only supports deploying to Windows devices 8.1.
To deploy to Windows 8, you need Visual Studio 2013 which has a completely different project structure, and I don't recommend using it.
Most users who are on a version of Windows 8 tend to be on version 8.1
As I stated before، I had installed Windows Phone SDK 8.0 .
with installing Windows Phone SDK 8.0 , Visual Studio 2012 will be installed.
But the file "XapDeployCmd.exe" is not with this version of visual studio.
Installing Update 5 (update 2 or later) of visual studio 2012 will install "XapDeployCmd.exe" with itself. Visual Studio 2012 Iso and problem will be solved.
after solving this problem if you encounter with error like 'Exception from HRESULT: 0x89721800' , refer to this article

Windows-10 IoT-core ARM DEP0001 : Unexpected Error: -1988945906

Unable to deploy uwp app on RPi ARM device. Before Visual Studio Update 2 I had no problems deploying to these devices (LAN, not USB). I get this error:
DEP0001 : Unexpected Error: -1988945906
I currently have Microsoft Visual Studio Professional 2015 Version Version 14.0.25123.00 Update 2
Based on some suggestion on the internet, I tried deleting any previously installed version of my app on device before re-installing, but I still see the error.
OK, what it took:
Re-install the IoT-Core OS on the ARM/RPi from scratch.
Reboot the windows 10 dev computer
Clean and rebuild the project.
Error gone.

Resources