Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram constructor failure on server side (Read 4021 times)
jaiswalamit
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Feb 17th, 2009
Diagram constructor failure on server side
Feb 17th, 2009 at 11:57am
Print Post  
Hi I am evaluating DiagramLite for silverlight. I need to build the nodes of the diagram on server side code (asp.net and assemblies). So I want to create the Diagram object on server and use SaveToXml(stream) to get the tream and then use the stream on the silverlight client where I want to use LoadFromXML()

I have used the DiagramLite dll on the server side also. So I am able to compile but at run time the constructor fails:

Diagram diagram = new Diagram();
The type initializer for 'MindFusion.Diagramming.Silverlight.Brushes' threw an exception. at MindFusion.Diagramming.Silverlight.Diagram..ctor()

Any help will be appreciated.

Regards,
Amit
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram constructor failure on server side
Reply #1 - Feb 17th, 2009 at 12:07pm
Print Post  
Hi,

I don't think you can load DiagramLite.dll on its own, without the Silverlight runtime and plugin. Instead, on the server side create a Diagram instance from the MindFusion.Diagramming.dll, found in the packages below:

https://www.mindfusion.eu/FCNetDemo.zip
https://www.mindfusion.eu/NetDiagramTrial.zip

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


I love YaBB 1G - SP1!

Posts: 64
Joined: Feb 17th, 2009
Re: Diagram constructor failure on server side
Reply #2 - Feb 17th, 2009 at 12:17pm
Print Post  
Hmm ok so I need to use a separate component on the server side- make sense.
Just wondering if we would have to purchase these (any one)  products as well?

https://www.mindfusion.eu/FCNetDemo.zip
https://www.mindfusion.eu/NetDiagramTrial.zip

Thanks a lot for the prompt response.

Best Regards!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram constructor failure on server side
Reply #3 - Feb 17th, 2009 at 12:24pm
Print Post  
You'd not have to purchase them if just for creating and serializing a Diagram object.

I hope that helps,
Stoyan

PS. The upcoming NetDiagram release has a Silverlight frontend based on Diagramlite.dll.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint