Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic XMLParseException (Read 2726 times)
Waterfiets
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Sep 27th, 2013
XMLParseException
Oct 31st, 2013 at 10:24am
Print Post  

Hi Stoyan,

In my project I have a Left Accordion, a Diagram field and a Right Accordion. For some reason after re factoring our project and placing it in another project, I was getting a XAMLParseException on my Left Accordion while running it - as seen in the screenshot.

After hours of searching i couldn't really find out what the problem was, so after trying out a few things I changed the Left Accordion class to public instead of private and it seemed to fix the problem. The only questions i have left is that I have no idea why this fixed it. Since the Right Accordion is still working while in private but the Left Accordion has to be set on public. Also, both classes are in the same namespace and have almost the same content.

Do you have any idea what the reason might be? I just want to understand why, so I know what to do in the future.

Thanks in advance.

Greets,

Sander
  

ProjectExplorer.png (Attachment deleted)
XAMLParseException.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: XMLParseException
Reply #1 - Oct 31st, 2013 at 11:04am
Print Post  
Hi Sander,

Check if it works if you set a fixed version number for the [assembly: AssemblyVersion] attribute in AssemblyInfo.cs, rather than a wildcard for automatically setting it. We had similar problems with compilation and found it happens because WPF projects compile in two passes (you can see the compiler invoked twice in output window), once for the Xaml resources and once for the code it seems... Since auto-version numbers are based on current time, you might get the 'assembly different' message shown in the screenshot if the resource references look for the assembly version from first pass. Changing the class to public might have nothing to do with that starting to work, but probably your last compilation managed to complete both passes within the same second...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Waterfiets
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Sep 27th, 2013
Re: XMLParseException
Reply #2 - Oct 31st, 2013 at 12:06pm
Print Post  
Hi Stoyan,

It seems to work for now, thanks! Btw, what a weird problem, never had that with WF before. Anyhows, probably a WPF specific problem.

Thanks for the info!

Greets,

Sander
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: XMLParseException
Reply #3 - Oct 31st, 2013 at 12:50pm
Print Post  
Perhaps you've never used in Xaml a control compiled from the same project before, it happens all the time with ours Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint