Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "Root element is missing." when doing a Visual Studio (VS) Build?

How to fix "Root element is missing." when doing a Visual Studio (VS) Build?

Any idea what file I should look at in my solution?

Actually, I am getting this error message inside of "Visual Build Pro" when using using the "Make VS 2008" command. This command works just fine when building other solutions (like about 20) and I am not really sure why mine is getting the error.

Any help would be very much appreciated. :)

I am using VS 2008 and Visual Build Pro 6.7.

like image 674
Gerhard Weiss Avatar asked Sep 22 '10 18:09

Gerhard Weiss


People also ask

What does root element is missing mean?

'The root element is missing' message is triggered when the Controller cache files are corrupt. These are the files with file extensions *.DSS and *.DSD. By default, they are stored inside the following folder: %APPDATA%\Cognos\CCR.

What is a root element in XML?

Each XML document has exactly one single root element. It encloses all the other elements and is, therefore, the sole parent element to all the other elements. ROOT elements are also called document elements. In HTML, the root element is the <html> element.

What is a root element in HTML?

The <html> HTML element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.


2 Answers

In my case it was the xxxxxxxxxxxx.vcxproj.user file that was causing the problem; it was blank after a crash. I renamed it and the problem went away.

like image 162
Elliot Avatar answered Sep 29 '22 18:09

Elliot


Make sure any XML file (or any file that would be interpreted as an XML file by visual studio) has a correct XML structure - that is, one root element (with any name, I have use rootElement in my example):

<?xml version="1.0"?>  <rootElement>  ... </rootElement> 
like image 27
Oded Avatar answered Sep 29 '22 16:09

Oded