Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) .net upgrade problem? (Read 5197 times)
wangqaa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: May 18th, 2007
.net upgrade problem?
Nov 27th, 2007 at 12:43am
Print Post  
Hi:

We have used FlowChart.net 4.1(WebChart.NET) and ASP.net 1.1 to develop web ap for months.

Now we want to upgrade to .net 2.0. What problems will we confront or how can we make it?

My "ex"- partner told me he tried it for some times,but it didn't work. He said "automation problem" can't be sloved.

Or other suggestion: use other product such as
"NetDiagram"?(it means I need to recode all the program Embarrassed?)

Whatever, we hope easily upgrade our
.net framework and constantly reuse FlowChart.net code.

We need your treasure advise~ ???






« Last Edit: Nov 27th, 2007 at 2:01am by wangqaa »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: .net upgrade problem?
Reply #1 - Nov 27th, 2007 at 7:00am
Print Post  
Hi,

I presume the "automation problem" is the "Object does not support automation" error message, displayed when you try to access the control's API from JavaScript. Unfortunately we could not find any way to avoid this. The same flowchart.dll is considered automation-compatible and works fine when loaded under .NET 1.1, but the .NET 2 runtime decides it is not automation-compatible and does not allow accessing the control's methods.

A work-around is to access the Flowchart.NET API entirely from .NET, using a wrapper control that implements your application's client-side logic. I guess that would be a problem if you have a lot of JavaScript code. You might try to implement your wrapper control in the .NET JScript language instead of C# / VB.NET. That should let you reuse most of your JavaScript code.

Once you have the wrapper control's dll compiled, you can load it via the OBJECT element instead of the flowchart.dll.

Stoyan
  
Back to top
 
IP Logged
 
wangqaa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: May 18th, 2007
Re: .net upgrade problem?
Reply #2 - Nov 28th, 2007 at 12:13am
Print Post  
Thanks for your kindly reply~
I'll try it.
  
Back to top
 
IP Logged
 
wangqaa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: May 18th, 2007
Re: .net upgrade problem?
Reply #3 - Nov 30th, 2007 at 6:28am
Print Post  
Hi:

I try some condtions with .net 2 & WebChart.dll(4.2)

I first transfer my old project .net 1.1 to 2.0 . it's ok.

Then I change the WebChart.dll 4.1 for 1.1

to WebChart.dll 4.2 for 2.0.

I covered all the refernce.

But "System.IO.FileLoadException" happened.

it shows can't load file or assembly 'WebChart.NET, Version=4.1.0.23493, Culture=neutral, PublicKeyToken=daa805bd79929376'

but I changed to 4.2 ,why it shows can't load 4.1.

Can you tell me how to upgrade .dll like this?

thanks~
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: .net upgrade problem?
Reply #4 - Nov 30th, 2007 at 7:58am
Print Post  
Hi,

Check if the common.dll reference correctly points to the .NET 2 version too. In addition, in the references property page enable "Copy local" and disable "Specific version".

Stoyan
  
Back to top
 
IP Logged
 
wangqaa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: May 18th, 2007
Re: .net upgrade problem?
Reply #5 - Dec 4th, 2007 at 10:34am
Print Post  
I tried to follow your comment.

I get the MindFusion.Common.dll from
C:\Program Files\MindFusion Limited\FlowChart.NET Pro\VS2005 (.NET 2.0)
and reload  the project's  reference.

But it doesn't change the error message.

How to check MindFusion.Common.dll correctly points to the .NET 2?

or How to really reload the dll?

Thanks~
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: .net upgrade problem?
Reply #6 - Dec 4th, 2007 at 12:46pm
Print Post  
The project's reference path might lead to getting the common.dll from another folder. Check the "resolved path" property of the common.dll reference to see exactly which version is used.

Stoyan
  
Back to top
 
IP Logged
 
wangqaa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: May 18th, 2007
Re: .net upgrade problem?
Reply #7 - Dec 6th, 2007 at 1:24am
Print Post  
the reference problem sloved. Thank you!

Back to the automation problem...

you said:

"implement wrapper control in the .NET JScript language"

We have no idea about it. Did you try it?
or Show some simple example..

I'll study it....
If you have had some result of it.
It will be helpful to us.

ps.We really want to continue use your product.
     If all the upgrade problem solved.

thanks~

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: .net upgrade problem?
Reply #8 - Dec 6th, 2007 at 7:03am
Print Post  
Here is a sample wrapper control:
https://www.mindfusion.org/_FcnetWebWrapper/FcnetWebWrapper.zip

An html page that shows the wrapper is available here:
http://www.mindfusion.org/_FcnetWebWrapper/FcnetWebWrapper.htm

It uses version 5 of the control, but you can use the same technique to create a wrapper for Flowchart.NET 4. Just for an example, the wrapper handles the NodeCreated event in .NET Windows Forms code and displays a string when a node is created.

It seems that VS does not provide built-in support for using JScript in Windows Forms, so this sample project is implemented in C#. You might have to use a command line compiler if you decide on using JScript.

Note that we have used the ILMerge tool to merge the wrapper and Flowchart.NET assemblies into a single dll. This is not strictly necessary - it should be possible to deploy all dlls in web folder and the .NET loader will download them when necessary. Anyway, in the .zip archive you will find a batch file that shows how to run ILMerge.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
wangqaa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: May 18th, 2007
Re: .net upgrade problem?
Reply #9 - Dec 7th, 2007 at 4:37am
Print Post  
Thanks for your reply.

----

I found some phenomenon of the automation problem.

Not all methods can't support automation .

When I marked some flowchart method code in javascript.

It still work.

such as
"UndoManager.UndoEnabled"
"PrintOptions.EnableBackgroundImage"
it can't work

Do you have any idea of these?

thanks~


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: .net upgrade problem?
Reply #10 - Dec 7th, 2007 at 7:05am
Print Post  
Yes, the problem is with types different than FlowChart, e.g. UndoManager, PrintOptions, Arrow, Box, etc. It seems the .NET 1 runtime creates automation proxies for all types from the Flowchart.net.dll, whereas .NET 2 creates one only for the FlowChart class, probably because it is directly referred to through the OBJECT element. We have tried a lot of things to make those types "automation compatible" when loaded by .NET 2, but unsuccessfully...
  
Back to top
 
IP Logged
 
wangqaa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: May 18th, 2007
Re: .net upgrade problem?
Reply #11 - Dec 20th, 2007 at 11:31pm
Print Post  
Hi,

New problem...

our user used the IE 7 to view our chart

also have "automation problem".

We use iexplore.exe.config in client
---
<startup>
<supportedRuntime version="v1.1.4322" />
</startup>
---

but it doesn't work?

Do you have this problem before?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: .net upgrade problem?
Reply #12 - Dec 21st, 2007 at 6:22am
Print Post  
Hi,

We haven't had any problems with IE7 when using .NET 1.1. Are you sure your user has the .NET 1.1 runtime installed on their system?

Stoyan
  
Back to top
 
IP Logged
 
wangqaa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: May 18th, 2007
Re: .net upgrade problem?
Reply #13 - Dec 28th, 2007 at 4:39am
Print Post  
it's ok~
our setting error...
thank you~ Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint