Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Print Preview (Read 3224 times)
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
Print Preview
Oct 28th, 2010 at 4:38pm
Print Post  
We upgraded our project to target .Net 4.0.  We are using Mindfusion.Diagramming.WPF dll version 2.3.3.20448.

We get the following error while performing a printpreview.  This worked fine previously.

Assembly Version:      1.0.3953.12818
Assembly Build Date:   10/28/2010 8:07:16 AM

Exception Source:      MindFusion.Diagramming.Wpf
Exception Type:        System.MethodAccessException
Exception Message:     Attempt by security transparent method 'MindFusion.Diagramming.Wpf.Diagram.PrintPreview(System.String)' to access security critical method 'System.Windows.Xps.Packaging.XpsDocument..ctor(System.IO.Packaging.Package, System.IO.Packaging.CompressionOption, System.String)' failed.

Assembly 'MindFusion.Diagramming.Wpf, Version=2.3.3.20448, Culture=neutral, PublicKeyToken=1080b51628c81789' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model.  Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.
Exception Target Site: PrintPreview

---- Stack Trace ----
   MindFusion.Diagramming.Wpf.Diagram.PrintPreview(windowTitle As String)
  
Back to top
 
IP Logged
 
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
Re: Print Preview
Reply #1 - Oct 28th, 2010 at 7:04pm
Print Post  
I upgraded to 2.4.0.22458 and got the same error.

What can I do to get around this?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Print Preview
Reply #2 - Oct 28th, 2010 at 7:33pm
Print Post  
We add [SecuritySafeCritical] attribute to such methods but haven't noticed PrintPreview requires it too. We'll have a new release in a few days and will add the attribute there. Let me know if it's urgent and we'll send you our daily build.
  
Back to top
 
IP Logged
 
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
Re: Print Preview
Reply #3 - Oct 28th, 2010 at 7:40pm
Print Post  
A few days is Ok... i do need to have it implemented Wednesday of next week (Nov. 3).

Thanks,
  
Back to top
 
IP Logged
 
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
Re: Print Preview
Reply #4 - Nov 3rd, 2010 at 1:09pm
Print Post  
Any news of when the new release including this fix will be available?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Print Preview
Reply #5 - Nov 3rd, 2010 at 2:03pm
Print Post  
We are releasing it in a few days. You could check the version from the PM page - it corresponds to the current V2.5 beta, but should be stable enough if you are not using any of the new features.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint