Though some of the features are pretty straight forward, some of them require having hooks all over the place. So I try to find fully working examples. Recently I came across a sample app that creates a statistics page that can be used to display information for an About’s page. The good thing was that it was simple and there was no extraneous items to distract the developer. Unfortunately, copying the C# and XAML to a new page in one of my apps caused the app to fail with an ArgumentNullException error. The suggested tip was to use the NEW keyword. Except for the name of the pages, the new XAML and C# pages appeared to be identical. Since this was a very simple example, there was not too many other places to look and they appeared to be identical. Thanks to my friend Peter Henry,he told me to add
to the Capabilities in the WMAPPManifest.xml. For some reason, I only considered these to be comments that were need to have the app validated for the marketplace. It had not dawned on me that these really affected the generated code.
Another lesson learned.
John Marshall… Visio MVP Visio.MVPs.org