Conceptual content always results in SHFB: Error BE0058 (noob - sorry)

Topics: Developer Forum, User Forum
Aug 30, 2011 at 12:12 AM

Hi,

I can generate my reference documentation nicely, but I'm having real trouble trying to get the hang of any conceptual docs.

I add a content layout file, and if I add any content to the layout, I always get the duplicate id warning...  like this...

Generating conceptual topic files
    Parsing topic file 'C:\Users\LocalAdam\Documents\Visual Studio 2008\Projects\UnifiedWebApplication\Help\07bb0bd0-4994-4d37-9688-3bf7a872ed2b.aml'
    C:\Users\LocalAdam\Documents\Visual Studio 2008\Projects\UnifiedWebApplication\Help\07bb0bd0-4994-4d37-9688-3bf7a872ed2b.aml -> C:\Users\LocalAdam\Documents\Visual Studio 2008\Projects\UnifiedWebApplication\Help\Help\Working\ddueXml\07bb0bd0-4994-4d37-9688-3bf7a872ed2b.xml
    Parsing topic file 'C:\Users\LocalAdam\Documents\Visual Studio 2008\Projects\UnifiedWebApplication\Help\07bb0bd0-4994-4d37-9688-3bf7a872ed2b.aml'
    C:\Users\LocalAdam\Documents\Visual Studio 2008\Projects\UnifiedWebApplication\Help\07bb0bd0-4994-4d37-9688-3bf7a872ed2b.aml -> C:\Users\LocalAdam\Documents\Visual Studio 2008\Projects\UnifiedWebApplication\Help\Help\Working\ddueXml\07bb0bd0-4994-4d37-9688-3bf7a872ed2b.xml
    Last step completed in 00:00:00.0360

I have absolutely no idea why this happens and it seems to happen whatever I do... I've tried adding different types, empty containers, loads of test files, they all come out like this.

 

Any help much appreciated!

Thanks,

Adam.

Coordinator
Aug 30, 2011 at 2:11 AM

Either you've got the same topic referenced twice in a content layout file or you've got two active content layout files in the project each containing the same topic.  Either case would cause the above error since topic files need to be unique.

Eric

 

Sep 2, 2011 at 8:21 PM

Actually, I'm getting the same problem.  I've looked at the one Content Layout file and it only has one Topic in it yet I still get the error.

 

Thanks,

Mike

Coordinator
Sep 5, 2011 at 7:47 PM

Can you send me a small example that demonstrates the problem?  My e-mail address is in the About box in the GUI and in the footer of the pages in the help file.

Eric

 

Sep 6, 2011 at 3:38 PM

I get this problem, too. It used to work allright until I moved the project to another directory (actually, I open it from a network drive mapping since the paths grow too large). I cleaned the .content file at some point so I don't know anymore how it looked beforehand, but as soon as I add the conceptual help topics again with the add existing topics from folder option, this problem appears.

Let me know whether you've got what you need to identify the problem Eric.

Eric

Coordinator
Sep 8, 2011 at 2:58 AM

I didn't receive anything.  Did you send the example yet?

Eric

 

Coordinator
Sep 21, 2011 at 3:02 AM

I took a look at the problem and was able to duplicate it. It appears to be that when you add a file through the Project Explorer and then open the content layout file and add it to the content layout file, it duplicates the file entry in the project. It appears that when added through the project explorer the underlying MSBuild project needs to be refreshed so that it knows about the file and returns it when queried for file items. For the time being, the workaround to fix the project is to open it in a text editor and remove the duplicate file entries. Once done it will build correctly. If you add files through the content layout editor, they are added to the project correctly and are not duplicated.

 

Eric

Coordinator
Sep 21, 2011 at 3:04 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.