Build error: SharedContentComponent: The shared content item 'assemblynameandmodule' could not be formatted with 3 parameters.

Topics: Developer Forum, User Forum
Jul 17, 2009 at 11:52 AM

Hi, I have this error message during my build process. What can be the problem?

Error message:

BUILDASSEMBLER : error : SharedContentComponent: The shared content item 'assemblynameandmodule' could not be formatted with 3 parameters.


Jul 17, 2009 at 3:05 PM

Are you using SHFB or the standalone build components with your own build script?  Are you using the latest release of SHFB or the build components and the latest release of Sandcastle?



Jul 20, 2009 at 10:39 AM

I installed last release of Sandcastle and changed presentation style in settings from VS2005 to Prototype( I have VS2008) and it works.  Thank you for your response.

Dec 24, 2009 at 8:40 PM


I am continuing with my migration of a sizable solution from ndoc to SHFB and encountered this same issue as soon as I specified a non-empty value for <FooterText> (the error message referred to the 'footer' element). Though there was no explanation, the original poster seemed to indicate a workaround by changing the presentation style so I tried that. The only change for me was that first the error message complained of 4 parameters and now it has the same error complaining of 0 parameters. I trimmed my footer down to the offending code you see below ( a code snippet from Google to enable website tracking). As I tried to narrow it down I deleted parts of this. It turns out that something in the third line shown causes the error. Without the 3rd line, SHFB ran to completion--however, it corrupted the footer (i.e. the quotes become mismatched and thus the javascript became syntactically invalid). Any obvious fix here...?

&lt;script type='text/javascript'&gt;var gaJsHost = (('https:' == document.location.protocol) ? 'https://ssl.' : 'http://www.');
document.write(unescape("%3Cscript src='" + gaJsHost + "' type='text/javascript'%3E%3C/script%3E"));&lt;/script&gt;
&lt;script type='text/javascript'&gt;try { var pageTracker = _gat._getTracker('UA-10266590-1'); pageTracker._trackPageview(); } catch(err) {}&lt;/script&gt;


Dec 24, 2009 at 10:42 PM

It's the curly braces.  Sandcastle's content component allow String.Format style parameters in the content items to allow insertion of values such as version numbers and other text to the resource items.  If you double the curly braces to escape them just like you would in code if you called String.Format, it should work.  For example "try {{ var ... }} catch(err) {{ }}".



Dec 25, 2009 at 11:52 PM

Thanks, it was indeed the curly braces!