问题
I want to deploy my driver for testing. I have provisioned my target computer for testing (although this shouldn't matter because I am not even at that step yet). On my host computer I open Visual Studio and go to
Driver > Test > Configure Devices
and immediately an error window saying:
Inappropriate request for export from part that belongs to another sharing boundary.
This looks like a bug in my Visual Studio (I have just recently updated to VS Update 1).
I am going to uninstall and reinstall since I have already tried repair. Any other ideas?
UPDATE: Uninstall and Reinstall didn't work. The bug is documented on Microsoft Connect: Fails to load Configure Devices (Closed)
回答1:
I was successfully able to configure and provision a new device using the following method:
- Project properties
- Debugging
- Remote Computer Name, drop down and select Configure...
- Successfully shows the device configuration wizard, and was able to provision the target computer.
Was then able to select the target in Driver Install - Deployment, however I get the following error when selecting "Deploy". This could be related to my project tho, please let me know if you also see this.
Please select a valid target machine for deployment from the project property page
UPDATE: the above error may have simply been that I had the wrong configuration selected when hitting Deploy.
回答2:
I just applied Update 1 to VS2015 Pro and am now getting the exact same error. It happens regardless of whether I make a new project or use my old 2015 Project. Looks like it's a bug in the update.
回答3:
Not really a fix, but I went back to Visual Studio 2013, as it does not have this bug, and driver dev is working great.
回答4:
I had the message:
Please select a valid target machine for deployment from the project property page
I was using the wrong architecture in the configuration properties for the project. My target test box is x64 and I had my configuration set to win32. Changing this to x64 fixed the issue for me.
来源:https://stackoverflow.com/questions/34027555/why-am-i-getting-an-error-before-configuring-a-device-in-visual-studio-2015