ClickOnce and ProfileCatalogModuleInfoStore issue

Topics: CAB & Smart Client Software Factory
Jun 23, 2006 at 12:42 PM
originally posted by: STurton

FYI for the p&p folks

Ran into a problem today running my SC-BAT based application deployed via ClickOnce (running as a partial trust app). Works fine outside of the ClickOnce scenario.

When the application starts via the ClickOnce app loader it fails to locate the ProfileCatalog.xml file so my application modules were not being loaded and run. I debugged this and found that File.ReadAllText(_catalogFilePath) in ProfileCatalogModuleInfoStore.GetModuleListXml failed, it was looking in the wrong directory. My fix in GetModuleListXml() was to use a full path combining the AppDomain.CurrentDomain.BaseDirectory with the value of _catalogFilePath.