I've been tasked with updating a driver from windows 7 to windows 10. I'm not talking about downloading the latest driver from the manufacturer, I'm talking about modifying the code so that we can update the driver (english is very ambiguous here).
I've managed to get the code to compile and build with visual studio 2019 and the latest SDK and WDK.
I've disabled the integrity checks on the computer.
When I try to update the driver on the device, and select my new driver, I get an error that "windows could not find drivers for your device".
Does anyone know what windows is checking here? Filename? Something in the file?
Also, does anyone have suggestions on anything else to try? Anyone else gone through this process and can offer advice?
Related
I've been working on a kernel-mode driver for Windows 10 using Visual Studio 2015. I can install my driver on VM (which has the exact same version of Windows that I've installed on my host computer) using Visual Studio run and it works just fine. Now I want to install it on the host PC (the primary Windows). First of all, I enabled Test Signing on it. I right clicked on driver inf file and selected Install. It asked if I was sure and I clicked on Yes. After a few seconds a dialog box is shown saying The operation completed successfully. but in fact nothing happens.
It's not being shown in Device Manager on host computer while it is on test computer.
No debug message appears in DebugView related to my driver.
NOTHING is written in setupact.log
I'm using release for x64 configuration. I wonder if there's anything I'm missing in the project config.
I also tried restarting my PC after installation, but it's not working. Can anybody help me?
The solution I found is really odd.
I was using a standard class provided by Microsoft called "SoftwareDevice" and I could install the driver on my Test computer only using Visual Studio Remote Kernel Debugger. However, I had to register and use a custom class and then I could successfully install the driver.
So many things happened that I don't know where to start. Seriously, shouldn't this be simpler?
Edit: Someone here knows how can I contact Microsoft to tell this? Or even, can someone tell them about this problem?
I have the last Windows 10 desktop and also have Windows Phone 10.0.10512.1000. I installed Visual Studio 2015 with tools for Universal Apps development (and also 8.1). I have a Lumia 730.
So I connected my phone with my USB cable. Everything fine, the phone gets recognized and I can navigate through the folders.
Then I started Visual Studio 2015 and created a blank universal app. Compiled and tried to deploy. Now this is happening to me: Visual Studio hangs for some moments. Eventually I get an error telling that the device was not found (DEP6200).
I already tried dozens of solutions:
disconnecting from wifi in my laptop and my phone
restarting the IpOverUsbSvc service
rebooting the computer and the phone
deleting the devices in the Device Manager
Registering and Unregistering the phone (it sometimes works)
All of the above with the phone screen unlocked
disabling Hyper-V
disabling firewall
Other solutions that failed miserably
I also tried to use that Windows Phone Developer Power Tools. When I try to use it, it asks me to install some "Phone Tools Update Pack", but when I try, it says that the operation didn't succeed, and also shows the NRE message string (object reference not set to an instance of an object).
I can go through the phone's folders without any problem. I tried to reinstall the drivers... i tried everything.
It's quite sad.
Do you guys can think of some more thing to check?
EDIT: I tested this app before doing all this: https://blogs.windows.com/buildingapps/2015/07/09/just-released-windows-10-application-deployment-tool/
And it worked. If that's the case, is Windows Phone 10 deployment over Visual Studio working already or we have to wait some more time?
Edit2: After making some changes to my app manifest and choosing "ARM" config, now I get this:
1>Deploying to SD Card...
1>Updating the layout...
1>Copying files: Total <1 mb to layout...
1>Checking whether required frameworks are installed...
1>Framework: Microsoft.NET.CoreRuntime.1.0/ARM, app package version 1.0.23117.0 is not currently installed.
1>Framework: Microsoft.VCLibs.140.00.Debug/ARM, app package version 14.0.23019.0 is not currently installed.
1>Installing missing frameworks...
But it just stays there. It's stuck, and it stays there forever. At least I got some info... Its more or less the same steps that WinAppDeployCmd does, but the command line app does it successfully.
Somehow the problem got solved. I created a brand new project and did this:
1 - In your phone, try disabling the developer mode on your phone. What an unexpected development!
2 - Disable the "phone discovery" thingy. I don't know the name of this configuration in english (as my phone is in Portuguese). Just in case.
3 - Choose the correct architecture. This is obvious, right? In my case, ARM. If you try deploying with x86 or x64, it should give you an error. For me, it didn't.
From now on, you should be able to deploy your apps in both developer mode and non-developer mode. It just works, somehow. And it might NOT work for you, sorry. I think I got lucky.
It worked even after a reboot. So the solution is "pretty solid" (in an universe where gelatine is pretty solid).
I had the same problem. I tried the fix of the comment and went to devices manager.
Under USB-Devices there were three Lumia 920s listed.
I selected the second one and clicked on uninstall.
At the end it asked me to restart the Computer. I clicked on NO.
(When I uninstalled the first or third one, it didn't ask me that).
Then the error disappeared (now another common one appears (HRESULT: 0x80073CF6))
I have a Lumia 950 xl, with windows 10 installed, anniversary version. I had the same problem, and my solution was to turn on 'Device discovery' and 'Device Portal', and also keep the 'Developer mode' on.
I believe the only necessary option was the 'Device discovery' though!
Just in case someone still runs into this issue, I had something very similar with my Visual Studio 2015 professional update 1 but I couldn't even deploy to an emulator.
The issue has gone after I upgraded to Visual Studio 2013 update 3.
I had the same issues on Windows 10 with Visual Studio 2015. I updated the the UWP SDK to Anniversary Edition Build 14393, set the target framework to this and it worked. I guess the incompatibility between the device version and sdk version was not allowing the device to be discovered by Visual Studio.
I've tried both the ISO and the web installer. Neither works, they both give the same error. I get the splash screen for a few seconds, and then a popup comes up and says that it has simply "stopped working." I've got the latest .NET installed (4.5.2), both Intel HD Graphics drivers and my NVIDIA drivers up to date as well. I've tried all of the solutions I can see that people had for this issue to no avail. Any help would be much appreciated.
Look at ActivityLog.xml and EventViewer (probably for errors in devenv.exe) to get more details. And specify what version of VS13 and any Update packs you're trying to install. Also if you had any previous versions installed and if you're on a 32 or 64 bit system.
the full path of that folder would be c:\users(your user login)\App Data\Microsoft . but make sure you have it set to see hidden files and folders.
And again - which VS13 are you trying?
Try to uninstall:
"Intel HD graphics driver" (generic driver)
Or try an updated graphics driver.
It works for me in Visual Studio 2013 and Visual Studio 2015.
I've been working with the Windows Phone SDK 7.0 for a long time on my computer. Now I installed the SDK 7.1 (RC) and for some reason I can't start the emulator. I'm getting this error:
Error: The saved-state file C:\ProgramData\Microsoft\XDE{4321-43-432-432-432343234}.dess is corrupt. Please delete the corrupted saved state file and then retry.
I tried suggestions from this article. But they didn't help. Also I tried reinstalling Windows Phone SDK.
Any thoughts how to fix it?
What I'd try:
Open a Windows Explorer window with the file shown.
Delete the file.
Launch the emulator.
Wait for the error message. If there is no error message and the emulator is working, congratulations!
Refresh the Windows Explorer window.
Is the appropriate .dess file restored into the folder? If so, then the file that is restoring the .dess file is corrupt. Reinstall the SDK until it works.
If this doesn't work, do this:
Figure out how your computer is different from the average developer's computer. Did you install some funky customization software? Did you mess up your registry?
Eliminate the differences that you can eliminate - e.g. undo any changes to the WP7 related area of your registry, find and eliminate any viruses {duh!}, kill any nonnecessary background apps like volume managers or printer software, and redownload the installer for the SDK {sometimes the installers are corrupt.}
Install it as a different user. This is the simple equivalent of some of the above steps.
Remember:
The SDK is still RC, so there may be some bugs.
After installing the SDK for the 500th time, it may be time to try something different.
Always install the x64 version on an x64 PC and the x86 version on an x86 PC.
Good afternoon,
WinUSB is working well on the development computer that I am using (Win XP SP3). I am able to download new firmware to the Cypress FX2, and then connect to the new USB device once it 'renumerates'. However, if I've tried the same code with the WinUSB driver on a few other computers (Win XP SP3, Win7 x64) and they both returned the error "A device attached to the system is not functioning." when trying to use CreateFile to get a handle to the USB device.
The devicePath was found successfully, so I'm not sure why it cannot connect to the device. Furthermore, the device manager states that my device is working properly. I'm curious if I'm missing something when compiling the code? I would guess that my development computer has something installed on it that the other computers do not? Or perhaps it's a power setting and the device is going to sleep (although I've fooled around with the Power Options on each computer to no avail).
Does anyone have any ideas? I've compiled under Visual Studio 2008, and have installed the Microsoft C++ 2008 Redistributable Package on the computers that I've tested on.
Thanks,
Giawa
Solved: The GUID that my driver was using was shared with another device on the system, which was returned instead of my device. The device just happened to not be installed on my computer. I've generated a new GUID and everything seems to work now.
Giawa