Microsoft Developer Network > 포럼 홈 > MSBuild > Resgen: References root node unavailable
질문하기질문하기
 

질문Resgen: References root node unavailable

  • 2006년 10월 16일 월요일 오후 5:30Dave P2 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Hi,

    I have a VS2005 build failing with an error thrown saying "References root node unavailable".  I have attached a diagnostics log below but I can't see any error that points to anything in particular.

    Has anyone seen an error like this before or have any suggestions to diagnse what might be causing it?

    Thanks,

    Dave

     

    Target "CoreResGen" in file "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets":

    Task "GenerateResource"

    "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\Resgen.exe" /useSourcePath /r:CHChart.dll /r:C:\_cvs\ViewPoint\_PPC_DataEngineDotNet\bin\Release\DataEngineDotNet.dll /r:C:\_cvs\ViewPoint\_PPC_DataEngineHelper\bin\Release\DataEngineHelper.dll /r:LEDControl.dll /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\Microsoft.WindowsCE.Forms.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\mscorlib.dll" /r:OpenNETCF\OpenNETCF.dll /r:OpenNETCF\OpenNETCF.Windows.Forms.dll /r:OpenNETCF\OpenNETCF.WindowsCE.Forms.dll /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Data.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Drawing.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Windows.Forms.DataGrid.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Windows.Forms.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Xml.dll" /compile Main.resx,obj\Release\_PPC_ViewPoint.Main.resources MainStrings.resx,obj\Release\_PPC_ViewPoint.MainStrings.resources Properties\Resources.resx,obj\Release\_PPC_ViewPoint.Properties.Resources.resources

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: The "GenerateResource" task failed unexpectedly.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: System.Runtime.InteropServices.COMException (0x80004005): References root node unavailable.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e)

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.Tasks.GenerateResource.NeedSeparateAppDomain()

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.Tasks.GenerateResource.Execute()

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)

    Done executing task "GenerateResource" -- FAILED.

    Done building target "CoreResGen" in project "_PPC_ViewPoint.csproj" -- FAILED.

    Target "_CheckForCompileOutputs" in file "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets":

    Task "CreateItem" skipped, due to false condition; (Exists('@(IntermediateAssembly)')) was evaluated as (Exists('obj\Release\ViewPointClient.exe')).

    Task "CreateProperty"

    Done executing task "CreateProperty".

    Task "CreateItem" skipped, due to false condition; ('$(_DocumentationFileProduced)'=='true') was evaluated as ('false'=='true').

    Task "CreateProperty"

    Done executing task "CreateProperty".

    Task "CreateItem" skipped, due to false condition; ('$(_DebugSymbolsProduced)'=='true') was evaluated as ('false'=='true').

    Done building target "_CheckForCompileOutputs" in project "_PPC_ViewPoint.csproj".

    Target "_SGenCheckForOutputs" skipped, due to false condition; ('$(_SGenGenerateSerializationAssembliesConfig)' == 'On' or ('@(WebReferenceUrl)'!='' and '$(_SGenGenerateSerializationAssembliesConfig)' == 'Auto')) was evaluated as ('Off' == 'On' or (''!='' and 'Off' == 'Auto')).

    Target "_CleanGetCurrentAndPriorFileWrites" in file "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets":

    Task "ReadLinesFromFile"

    Done executing task "ReadLinesFromFile".

    Task "CreateItem"

    Done executing task "CreateItem".

    Task "FindUnderPath"

    Comparison path is "C:\_cvs\ViewPoint\_PPC_ViewPoint".

    Done executing task "FindUnderPath".

    Task "FindUnderPath"

    Comparison path is "bin\Release\".

    Path "C:\_cvs\ViewPoint\_PPC_ViewPoint\obj\Release\ResolveAssemblyReference.cache" is outside the comparison path.

    Done executing task "FindUnderPath".

    Task "FindUnderPath"

    Comparison path is "obj\Release\".

    Path "C:\_cvs\ViewPoint\_PPC_ViewPoint\obj\Release\ResolveAssemblyReference.cache" is inside the comparison path.

    Done executing task "FindUnderPath".

    Task "CreateItem"

    Done executing task "CreateItem".

    Task "RemoveDuplicates"

    Done executing task "RemoveDuplicates".

    Done building target "_CleanGetCurrentAndPriorFileWrites" in project "_PPC_ViewPoint.csproj".

    Target "_CleanRecordFileWrites" in file "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets":

    Task "RemoveDuplicates"

    Done executing task "RemoveDuplicates".

    Task "MakeDir"

    Done executing task "MakeDir".

    Task "WriteLinesToFile"

    Done executing task "WriteLinesToFile".

    Done building target "_CleanRecordFileWrites" in project "_PPC_ViewPoint.csproj".

    Done building project "_PPC_ViewPoint.csproj" -- FAILED.

    Build FAILED.

모든 응답

  • 2006년 10월 16일 월요일 오후 5:53DanMoseley - MSFT중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Dave, we haven't seen this before. We need a way to reproduce it at our end to investigate.

    Can you reduce your project down to the minimum required to reproduce it (likely, you'll be able to remove almost all the source code) and attach it to a bug? Bug opening information is at the top of this forum.

    Dan

     

  • 2007년 2월 15일 목요일 오후 7:27Jade Skaggs 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I ran into this problem too, though i was able to build my solution, I could not design forms visually.  Since Google only yields 2 results for "References root node unavailable" I figured i'd post my resolution in one of them.  I'm not sure exactly which step fixed it, but I performed a Build -> Clean Solution, then Build -> Build Solution.  Still had the issue, checked everything in to SourceSafe, and reloaded the IDE.  Now it works.
  • 2007년 2월 21일 수요일 오전 9:40hattonj 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Restarting the IDE alone did it for me.
  • 2007년 3월 21일 수요일 오후 1:31kazhian 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    I wanted to copy a form from solution to another.

    So, copied form.designer.vb, form.vb & form.rex into new solution.

    but when I opend the form in design mode I got References root node unavailable.

    The I cleaned, rebuilt. Still got the error and finally, I closed all IDEs and opend. THE PROBLEM SOLVED.

  • 2007년 4월 5일 목요일 오후 7:59skhoo 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Have the exact same error after renaming the form name in the .Designer.cs module.

     

    Created a new form and the designer is still broken with the same error.

     

    Like all of you, this error goes away after reopening the VS2005 IDE.

  • 2007년 4월 10일 화요일 오후 4:05Neal2748407 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I just had the same issue. VS2005 SP1. Will try restarting. I was trying to create a ProjectInstaller for a Windows Service. I can build just fine from sources, but have been unable to touch the designer. I did not do a rebuild or clean compile, just a simple restart of VS seems to have resolved it for me.
  • 2007년 5월 30일 수요일 오후 12:50LorenzoSacco 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I had the same problem with Visual Studio 2005. I was able to build my solution and view designer of the aspx page. I restarted the IDE and the problem disappear!
  • 2008년 1월 30일 수요일 오전 10:45Rakshit Bakshi 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Restart the IDE, That's the only solution.

  • 2009년 10월 11일 일요일 오후 2:14Damon88 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    The error usually comes up while changing the root Namespace in the MY Projects tab.

    Restarting IDE flushes old entries and when it reloads its able to render the form again.

    Atleast thats what i think.