none
MSBuild error MSB4166 while in the DeployDriversTask doing "Deploying driver files for project". RRS feed

  • Question

  • I am converting a working WDM driver to a KMDF driver. I am using Visual Studio 2013 with WDK 8.1 on Windows 7 x64.

    The problem occurs during deployment of driver during build. The error message from the log file

    "KmdfDriverExperimental Package.log" is "MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down.

    Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt."

    Note that no "MSBuild_*.failure.txt" file was generated.

    The following is what I think is the relevant excerpt from the KmdfDriverExperimental Package.log file.

    After the excerpt I include three logs from Event Viewer.


    08:44:06.699     1>Target "Deploy: (TargetId:59)" in file "C:\Program Files (x86)\Windows Kits\8.1\build\x64\ImportAfter\DriverDeployment.targets" from project "C:\DriverProjects\KmdfDriverExperimental\KmdfDriverExperimental Package\KmdfDriverExperimental Package.vcxproj" (target "Build" depends on it):
                       Using "DeployDriversTask" task from assembly "C:\Program Files (x86)\Windows Kits\8.1\bin\DriverDeploymentTasks.dll".
                       Task "DeployDriversTask" (TaskId:38)
                         Task Parameter:VisualStudioBuild=True (TaskId:38)
                         Task Parameter:DebugDeployment=False (TaskId:38)
                         Task Parameter:DebuggerFlavor=DbgengKernelDebugger (TaskId:38)
                         Task Parameter:ProjectPath=C:\DriverProjects\KmdfDriverExperimental\KmdfDriverExperimental Package\ (TaskId:38)
                         Task Parameter:ProjectFileName=C:\DriverProjects\KmdfDriverExperimental\KmdfDriverExperimental Package\KmdfDriverExperimental Package.vcxproj (TaskId:38)
                         Task Parameter:ProjectType=Package (TaskId:38)
                         Task Parameter:OutputFolder=C:\DriverProjects\KmdfDriverExperimental\x64\Win7Debug\ (TaskId:38)
                         Task Parameter:PackageFolder=C:\DriverProjects\KmdfDriverExperimental\x64\Win7Debug\KmdfDriverExperimental Package (TaskId:38)
                         Task Parameter:PackageGuid={86DFFEFD-903C-4EAF-B685-96877ED20DF4} (TaskId:38)
                         Task Parameter:DriverPlatform=x64 (TaskId:38)
                         Task Parameter:DriverConfiguration=Win7 Debug (TaskId:38)
                         Task Parameter:KernelComputer=OWNER-PC (TaskId:38)
                         Task Parameter:RemoteComputer=OWNER-PC (TaskId:38)
                         Task Parameter:Deploy=False (TaskId:38)
                         Task Parameter:RemoveDriver=False (TaskId:38)
                         Task Parameter:InstallMode=DriverTest (TaskId:38)
                         Task Parameter:ScriptPath=C:\Program Files (x86)\Windows Kits\8.1\Testing\Tests\Utilities\DefaultDriverPackageInstallationTask.dll (TaskId:38)
                         Task Parameter:ScriptName=Microsoft.DriverKit.DefaultDriverPackageInstallationClass.PerformDefaultDriverPackageInstallation (TaskId:38)
                         Task Parameter:Verifier=False (TaskId:38)
                         Task Parameter:VerifyAllDrivers=False (TaskId:38)
                         Task Parameter:VerifyProjectOutput=True (TaskId:38)
                         Task Parameter:VerifyFlags=133563 (TaskId:38)
                         Task Parameter:SignMode=TestSign (TaskId:38)
                         Task Parameter:FrameworkVerifierInteraction=FvOn (TaskId:38)
                         Task Parameter:CertificateOutputPath=C:\DriverProjects\KmdfDriverExperimental\x64\Win7Debug\KmdfDriverExperimentalPackage.cer (TaskId:38)
                         Task Parameter:BinaryPath=C:\DriverProjects\KmdfDriverExperimental\x64\Win7Debug\KmdfDriverExperimentalPackage (TaskId:38)
                         Deploying driver files for project "C:\DriverProjects\KmdfDriverExperimental\KmdfDriverExperimental Package\KmdfDriverExperimental Package.vcxproj".  Deployment may take a few minutes... (TaskId:38)
                         [08:44:07:671]: Removing any existing files from test execution folder (TaskId:38)
    08:44:27.620     0>MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt.


    The following  3 event logs are from the Event Viewer. They are in chronological order.


    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
      <Provider Name=".NET Runtime" />
      <EventID Qualifiers="0">1023</EventID>
      <Level>2</Level>
      <Task>0</Task>
      <Keywords>0x80000000000000</Keywords>
      <TimeCreated SystemTime="2014-06-10T12:44:07.000000000Z" />
      <EventRecordID>16077</EventRecordID>
      <Channel>Application</Channel>
      <Computer>francisco-PC</Computer>
      <Security />
      </System>
    - <EventData>
      <Data>Application: MSBuild.exe Framework Version: v4.0.30319 Description: The process was terminated due to an internal error in the .NET Runtime at IP 7203DFB9 (72030000) with exit code 80131506.</Data>
      </EventData>
     </Event>



    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
      <Provider Name="Application Error" />
      <EventID Qualifiers="0">1000</EventID>
      <Level>2</Level>
      <Task>100</Task>
      <Keywords>0x80000000000000</Keywords>
      <TimeCreated SystemTime="2014-06-10T12:44:09.000000000Z" />
      <EventRecordID>16078</EventRecordID>
      <Channel>Application</Channel>
      <Computer>francisco-PC</Computer>
      <Security />
      </System>
    - <EventData>
      <Data>MSBuild.exe</Data>
      <Data>12.0.30501.0</Data>
      <Data>5361b596</Data>
      <Data>clr.dll</Data>
      <Data>4.0.30319.18444</Data>
      <Data>52717e84</Data>
      <Data>c0000005</Data>
      <Data>0000dfb9</Data>
      <Data>c94</Data>
      <Data>01cf84a9a8f5d3c0</Data>
      <Data>C:\Program Files (x86)\MSBuild\12.0\bin\MSBuild.exe</Data>
      <Data>C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll</Data>
      <Data>e9f569d0-f09c-11e3-90d4-60334b1e004a</Data>
      </EventData>
      </Event>


    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
      <Provider Name="Windows Error Reporting" />
      <EventID Qualifiers="0">1001</EventID>
      <Level>4</Level>
      <Task>0</Task>
      <Keywords>0x80000000000000</Keywords>
      <TimeCreated SystemTime="2014-06-10T12:44:27.000000000Z" />
      <EventRecordID>16079</EventRecordID>
      <Channel>Application</Channel>
      <Computer>francisco-PC</Computer>
      <Security />
      </System>
    - <EventData>
      <Data />
      <Data>0</Data>
      <Data>APPCRASH</Data>
      <Data>Not available</Data>
      <Data>0</Data>
      <Data>MSBuild.exe</Data>
      <Data>12.0.30501.0</Data>
      <Data>5361b596</Data>
      <Data>clr.dll</Data>
      <Data>4.0.30319.18444</Data>
      <Data>52717e84</Data>
      <Data>c0000005</Data>
      <Data>0000dfb9</Data>
      <Data />
      <Data />
      <Data />
      <Data>C:\Users\francisco_2\AppData\Local\Microsoft\Windows\WER\ReportQueue\AppCrash_MSBuild.exe_1df3784e74f2493c4847b89f7ed0fb7abc1c4db0_041d9397</Data>
      <Data />
      <Data>0</Data>
      <Data>e9f569d0-f09c-11e3-90d4-60334b1e004a</Data>
      <Data>4</Data>
      </EventData>
      </Event>


    Thanks

    Francisco
    Wednesday, June 11, 2014 11:32 PM

All replies

  • I am no longer able to replicate this error. In desperation I did some tinkering one should probably not do under less desperate circumstances and as a result do not know what fixed the problem. Fortunately I am now able to progress past this error.

    I still feel the information posted in this question is useful to the MSbuild tool designers.

    Thanks

    Tuesday, June 24, 2014 9:30 PM