Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Re: Unable to load a debugger extension (Read 11043 times)
Brian Pead
Newbies
*
Offline


Posts: 6
Location: Irvine, California
Joined: Dec 1st, 2012
Re: Unable to load a debugger extension
Jan 12th, 2013 at 11:34pm
Print Post  
I'm getting the same error with a different dll mentioned: 

“Visual micro was unable to load a debugger extension
Assembly: C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Extensions\Debugger Visualizations\PerformanceMonitor\bin/PerformanceMonitor.dll
Type: VisualizationExamples.PerformanceMonitorWindo
Exception has been thrown by the target of an invocation.”


(Is the forward slash in the assembly name causing the problem, it looks rather strange?)

I’m on Visual Micro version 1.1212.30, Debug version 3.3.

Thanks in advance for any help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to load a debugger extension
Reply #1 - Jan 13th, 2013 at 12:07am
Print Post  
Hi,

I've moved this to a new thread so that other members don't get email notifications from our discussion. The system auto generates an "off-topic" note which you can ignore. It wasn't off topic just a different problem so a new thread was required.

Hi Brian,

The path is ok

Sounds like the plugin installer has had a problem installing one the vm file that all debugger graphical plugins share.

You need to ensure that you have .net3.5 loaded on your machine. Do you know how to check?

Then try running the vm plugin installer from codeplex as administrator. You might need to download it to your pc so that you can run it as admin.

Let me know how that goes

Thanks

  
Back to top
IP Logged
 
Brian Pead
Newbies
*
Offline


Posts: 6
Location: Irvine, California
Joined: Dec 1st, 2012
Re: Unable to load a debugger extension
Reply #2 - Jan 13th, 2013 at 8:22pm
Print Post  
I verified that I have .NET 3.5 installed, and reinstalled both the VM add-in and the debugger, but got the same error.

I then uninstalled both and reinstalled VM and the previous Debugger (from VisualMicroDebugUpgrade32.msi) and got basically the same error with an additional comment "Could not load file or assembly Visual.Micro.Debugger.Data.Extensions, Version=3.5.0.2".  In C:\Windows\assembly I have that file but it's version 3.5.0.3.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to load a debugger extension
Reply #3 - Jan 13th, 2013 at 8:58pm
Print Post  
Hi Brian,

Thanks for the info.

Please uninstall both vm and the debugger via control panel>add remove programs>visual micro... 

The install the 1212.30 (latest) codeplex version and the 3.3 (latest) debugger

Currently there is a mismatch between versions, it sounds like the plugin installer did not overwrite your previous vm version properly. So removing and then re-installing is the cleanest

Hope that sorts it out!
« Last Edit: Jan 13th, 2013 at 8:58pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Brian Pead
Newbies
*
Offline


Posts: 6
Location: Irvine, California
Joined: Dec 1st, 2012
Re: Unable to load a debugger extension
Reply #4 - Jan 13th, 2013 at 10:54pm
Print Post  
Did all that and now I'm getting the original problem again:

“Visual micro was unable to load a debugger extension
Assembly: C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Extensions\Debugger Visualizations\PerformanceMonitor\bin/PerformanceMonitor.dll
Type: VisualizationExamples.PerformanceMonitorWindow
Exception has been thrown by the target of an invocation.”

I still suspect the forward slash.  Why/where is the path coded with a forward slash?  It is not recognized in a DOS copy, but I guess the .NET Framework could be smarter:

Code
Select All
C:>copy "C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Extensions\Debugger Visualizations\PerformanceMonitor\bin\Perform
anceMonitor.dll"
        1 file(s) copied.

C:>copy "C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Extensions\Debugger Visualizations\PerformanceMonitor\bin/Perform
anceMonitor.dll"
The system cannot find the file specified.
        0 file(s) copied. 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to load a debugger extension
Reply #5 - Jan 13th, 2013 at 11:27pm
Print Post  
Windows often shows the last directory separator as a forward slash. 

I have to go with the fact that lots of people are using it and there would be a lot of reports if the path was wrong.

So this must be something more local to your install. 

Does the performanceMonitor.dll exist and is the ZedGraph dll in the same folder?

You might also try running vs as administrator once, just to see if that allows it to load external graphical controls like this one. They reply on the COM Visible property of a windows project which means they should auto-register the first time they are used.
  
Back to top
IP Logged
 
Brian Pead
Newbies
*
Offline


Posts: 6
Location: Irvine, California
Joined: Dec 1st, 2012
Re: Unable to load a debugger extension
Reply #6 - Jan 13th, 2013 at 11:44pm
Print Post  
OK, I proved your point by changing the slash to a backslash in MicroExtension.xml, and I get the same error message (showing the backslash).  Sorry I doubted you!

PerformanceMonitor.dll does exist but it's the only thing in folder "C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Extensions\Debugger Visualizations\PerformanceMonitor\bin".  Where can I get ZedGraph.dll?
  
Back to top
 
IP Logged
 
Brian Pead
Newbies
*
Offline


Posts: 6
Location: Irvine, California
Joined: Dec 1st, 2012
Re: Unable to load a debugger extension
Reply #7 - Jan 13th, 2013 at 11:52pm
Print Post  
Never mind, I found ZedGraph on SourceForge and copied it to that folder and it works now.  Awesome, thanks for your help!  Just curious, should that have been installed with the Debugger?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to load a debugger extension
Reply #8 - Jan 13th, 2013 at 11:57pm
Print Post  
ZedGraph should have been copied over with the install but is' missing on my test install so I think you have spotted an unreported problem with the 3.3 debugger.

There is a copy of zedgraph in the AnalogGraphExample. You can just copy it over.

Sorry about that, have you turned on "Free Memory" reporting in the project properties or are/were you getting this error every time the debugger/vs started?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to load a debugger extension
Reply #9 - Jan 13th, 2013 at 11:58pm
Print Post  
Our messages crossed Smiley Thanks for your help, I'll look into it.
« Last Edit: Jan 14th, 2013 at 12:03am by Tim@Visual Micro »  
Back to top
IP Logged
 
Brian Pead
Newbies
*
Offline


Posts: 6
Location: Irvine, California
Joined: Dec 1st, 2012
Re: Unable to load a debugger extension
Reply #10 - Jan 14th, 2013 at 12:06am
Print Post  
I had "Memory Usage Report" set to True, if that's what you're referring to.  Thanks again.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to load a debugger extension
Reply #11 - Jan 14th, 2013 at 12:56am
Print Post  
Oh good, thanks again.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint