Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Running Sample files (Read 6993 times)
Sheldon
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Nov 20th, 2008
Running Sample files
Nov 30th, 2008 at 7:58pm
Print Post  
I have been attempting to run the NetDiagram sample files from Visual Web Developer Express by clicking "Open Web Site" and selecting the folder containing the sample I'm interested in.

When I try to run MapEditor, I get the error "Could not load type 'MapEditor._Default'"; with ImageMap I get "Could not load type 'ImageMap.MyLabel'".

What is the recommended procedure for running these files?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Running Sample files
Reply #1 - Dec 1st, 2008 at 10:21am
Print Post  
What happens if you double-click the .sln file in Windows Explorer?
  
Back to top
 
IP Logged
 
Sheldon
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Nov 20th, 2008
Re: Running Sample files
Reply #2 - Dec 2nd, 2008 at 3:27am
Print Post  
I get an error message:  "The application for project 'C:\Program Files\...\ImageMap.vbproj' is not installed."
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Running Sample files
Reply #3 - Dec 2nd, 2008 at 6:26am
Print Post  
Install the latest Visual Studio service pack if you don't have it. If you are using Vista, give to your account full-control permissions to all subfolders under Samples.

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


I love YaBB 1G - SP1!

Posts: 15
Joined: Nov 20th, 2008
Re: Running Sample files
Reply #4 - Dec 3rd, 2008 at 3:45am
Print Post  
I downloaded the Service Pack 1 for Visual Studio, but when I attempted to install it, I got an error message:  "A compatible version of Visual Studio 2008 was not detected on the system. This update is designed for only the Microsoft Visual Studio 2008 (ENU) product family, and is not compatible with any Express edition."

I am using Visual Web Developer 2008 Express Edition.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Running Sample files
Reply #5 - Dec 3rd, 2008 at 6:36am
Print Post  
It seems Microsoft don't provide a separate SP download for the Express editions, but bundle it into the full distributions. You could download "Visual Web Developer 2008 Express with SP1" from this page:
http://www.microsoft.com/express/product/default.aspx

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


I love YaBB 1G - SP1!

Posts: 15
Joined: Nov 20th, 2008
Re: Running Sample files
Reply #6 - Dec 4th, 2008 at 5:17pm
Print Post  
I reinstalled VWD with service pack 1, and the ImageMap application now loads and runs properly on clicking the sln file.

Other sample apps now load on clicking the sln file, but show errors when I run them.

MapEditor, for example, opens Internet Explorer showing the error message "Compiler Error Message: BC30456: 'setImageVisibility' is not a member of 'ASP.default_aspx'."

FlowCharter loads when I click the sln file, but when I run it, it fails and shows the error message: "Error
1
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
C:\Program Files\MindFusion\NetDiagram Trial Version\Samples\VB.NET\Flowcharter\Backup\Flowcharter\Web.config
46"

PostBack loads and runs without error, and I note that this and ImageMap are the only two I have tried that do not use the .jar file -- perhaps that is at the root of the problem?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Running Sample files
Reply #7 - Dec 5th, 2008 at 2:01pm
Print Post  
You can fix the 'MachineToApplication' error by removing the AuthenticationMode line from the config file.

We can't reproduce the 'setImageVisibility' error, but that method should be called only on the client side and you shouldn't get compiler errors for it. Perhaps you have inadvertently changed something in the aspx file?

Stoyan
  
Back to top
 
IP Logged
 
Sheldon
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Nov 20th, 2008
Re: Running Sample files
Reply #8 - Dec 5th, 2008 at 5:08pm
Print Post  
When I open any of the sample files for the first time, I get a message that the files were created for DotNet Framework version 2.0 and I am running version 3.5. Do I want to update the files?

I have always answered "Yes. " Perhaps this is related to the problems I'm having?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Running Sample files
Reply #9 - Dec 5th, 2008 at 5:54pm
Print Post  
We too have chosen to convert them and this reproduced the 'MachineToApplication' problem, but nothing related to setImageVisibility. Anyway we are preparing a new NetDiagram release now, and will include samples for VS2008.

Stoyan
  
Back to top
 
IP Logged
 
Sheldon
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Nov 20th, 2008
Re: Running Sample files
Reply #10 - Dec 5th, 2008 at 7:23pm
Print Post  
Thank you, Stoyan.

ImageMap and Postback incorporate most of the functionality that I need, so I guess I'll just work with those for the time being.

I look forward to the new NetDiagram release.

Best wishes,

Sheldon
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint