none
Driver deployment error - "Cannot create a stable subkey under a volatile parent key." RRS feed

  • Question

  • I've just started to create a new UWP driver using WDF "UMDF v2" I've provisioned my target device (Windows 10 14393.969) with the installer in the WDK directory (C:\Program Files (x86)\Windows Kits\10\Remote\x64\WDK Test Target Setup x64-x64_en-us.msi)

    After provisioning the device with Visual studio->Driver->Test->Configure devices, I try and debug the driver I get this:

    [18:57:14:260]: Driver Preparation
    [18:57:14:260]: Removing any existing files from test execution folder.
    [18:57:14:323]: Copying required files for "Driver Preparation".
    [18:57:16:401]: [Driver Preparation] Command Line:
    $KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPreparation'" /p:"InfFile=IoPUMD.inf" /p:"Debug=1" /p:"UserMode=1" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"CertificateFile=IoPUMD.cer" /p:"PackageGuid=x64" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Preparation_00000.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
    [18:57:26:854]: Result Summary: Total=1, Passed=0, Failed=1, Blocked=0, Warned=0, Skipped=0
    [18:57:26:854]: ERROR: Task "Driver Preparation" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
    [18:57:27:417]: Driver Post Install Actions
    [18:57:27:417]: Removing any existing files from test execution folder.
    [18:57:27:432]: Copying required files for "Driver Post Install Actions".
    [18:57:29:401]: [Driver Post Install Actions] Command Line:
    $KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPostInstall'" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Post_Install_Actions_00000.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
    [18:57:35:807]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
    [18:57:35:807]: Task "Driver Post Install Actions" completed successfully
    Driver Deployment Task Failed: Driver Removal
    Driver Deployment Task Failed: Driver Preparation

    Looking in the mentioned log files, I can see

    <Msg 
    	UserText="Driver package imported successfully: oem87.inf" CA="11573968" LA="11574092" >
    <Data>
    <WexTraceInfo ThreadId="8176" ProcessId="5816" TimeStamp="2147214610" LogSessionId="1"/>
    </Data>	<rti id="2858281933" />
    	<ctx id="2962459408" />
    </Msg>
    <Msg 
    	UserText="Cannot create a stable subkey under a volatile parent key.
    " CA="11704582" LA="11704751" >
    <Data>
    <WexTraceInfo ThreadId="8176" ProcessId="5816" TimeStamp="2147218044" LogSessionId="1"/>
    </Data>	<rti id="2858281933" />
    	<ctx id="2962459408" />
    </Msg>
    <Error 
    	File="" 
    	Line="-1" 
    	ErrCode="0x0" 
    	ErrType="" 
    	ErrorText="Error 0x00000000" 
    	UserText="A failure occurred while preparing the system for driver installation" CA="11807485" LA="11807680" >
    <Data>

    I'm starting to dig through the documentation to see if there's anything else that I've missed, but was expecting it to have worked.

    Any ideas?

    Thanks in advance

    Cheers

    John Dr

    Monday, March 27, 2017 6:12 PM

Answers

All replies