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) Unable to load a debugger extension (Read 17542 times)
jchamilt
Junior Member
**
Offline


Posts: 14
Joined: Aug 8th, 2012
Unable to load a debugger extension
Aug 28th, 2012 at 5:49pm
Print Post  
after updating to the new beta release I get the following errors when I try and use debug or monitor the serial port.

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

and then

Unable to load debugger visualization C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Exetensions\Debugger Visualations\PerformanceMonitor\bin/PerformanceMonitor.dll
Exception has been thrown by the target of an invocation

I have tried uninstalling and re installing a few times now

  
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 - Aug 28th, 2012 at 6:25pm
Print Post  
Hello, did you see the email to the beta testers with the link to the new debug upgrade msi?

Tim

PS: I can see a few spelling mistakes that will be corrected in the next version but that is not the problem.
  
Back to top
IP Logged
 
jchamilt
Junior Member
**
Offline


Posts: 14
Joined: Aug 8th, 2012
Re: Unable to load a debugger extension
Reply #2 - Aug 29th, 2012 at 1:26pm
Print Post  
I typed the error messages out myself.. spelling errors are on me..

yes I downloaded the new new msi's after installing the new msi's that had issues last week.

I will try and reinstall everything again for a 5th time..

  
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 - Aug 29th, 2012 at 2:34pm
Print Post  
You shouldn't need to re-install again this sounds like a core .net error. Vm is working and you have the correct version because it is trying to load the visualizations.

As long as you installed the visualizations to the same place that you installed visual micro then all should be okay. Both Vm and the upgrade installers prompt the same install path so unless you change the vm one when you install vm then the upgrade msi will be in the correct place.

So if everything is in the correct place this can only be a .NET issue. Do you have .net3.5 installed on your machine?

I made the extensions for .NET 3.5 so that they work in both vs2008 and 2010. If you don't have .NET3.5 installed then please install it. It won't cause a problem for your machine.

If you are unsure about install paths then take a look at Tools>Options>Visual Micro>Version>Assembly. It shows the path where the vm program files are located. The "Micro Extensions" should be below this folder.

Please also check your windows assembly folder to confirm that the Visual.Micro.Debugger.Data.Extensions.dll is in the c:\windows\assembly folder (or wherever your windows is located).

Look forward to hearing more
« Last Edit: Aug 29th, 2012 at 2:38pm by Tim@Visual Micro »  
Back to top
IP Logged
 
jchamilt
Junior Member
**
Offline


Posts: 14
Joined: Aug 8th, 2012
Re: Unable to load a debugger extension
Reply #4 - Aug 29th, 2012 at 3:21pm
Print Post  
I re installed vm + debug again..

I am on windows 7 so .net 3.5 sp1 is built in, I verified it was installed though.

used this tool

http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx



still getting errors when I run any of the reporting tools.
Report Analogs
Report Digitals
Report Free Memory

or use {@ReportFreeMemory} in a break point.


any other ideas?

visual micro debugger data extensions was in the assembly folder

I had two versions though.. version 1.0 and 3.5

I deleted version 1 and it made no change..
« Last Edit: Aug 29th, 2012 at 3:29pm by jchamilt »  
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 - Aug 29th, 2012 at 5:22pm
Print Post  
That's great info thanks. Did you confirm that the Data Extensions folder has been installed below the folder that contains the Visual Micro program dlls?

I'm trying to think what's different on your machine because I know it works for some others so it can't be a vm code issue.

The visualizations are open source and the visual studio project files for each visualization user control should be on your machine.

If you want to get to the bottom of it (which I would appreciate for others) you could open one of the visualization projects then add a new windows application to the project and drop the visualization user control on a new form. Then run the windows app and the visualization should appear or at least not throw an error. 

The only other thing I can see that could possibly fail is the OLE registration of the visualizations as COM objects. Visual Studio needs them to be com objects but again this is a weak thought because they have registered okay for others. Maybe you could trying running the debug upgrade msi as adminstrator? Vm is certainly installed correctly.

Thanks
  
Back to top
IP Logged
 
jchamilt
Junior Member
**
Offline


Posts: 14
Joined: Aug 8th, 2012
Re: Unable to load a debugger extension
Reply #6 - Aug 29th, 2012 at 6:34pm
Print Post  
debug upgrade was installed as admin.



opening the performance monitor window throws these errors 
===
Warning      1      Could not find type 'VisualizationExamples.PerformanceMonitorControl'.  Please make sure that the assembly that contains this type is referenced.  If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.            0

Warning      2      The variable 'memoryUsageGraph' is either undeclared or was never assigned.      C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Extensions\Debugger Visualizations\PerformanceMonitor\PerformanceMonitorWindow.Designer.cs      48

Warning      3      The referenced component 'ZedGraph' could not be found. 
===

opening the performance monitor control throws these errors
===
Could not find type 'ZedGraph.ZedGraphControl'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU. 

The variable 'zg1' is either undeclared or was never assigned. 

===

I am a novice when it comes to VS 2010, maybe I am missing an add in?
  
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 #7 - Aug 29th, 2012 at 6:47pm
Print Post  
No I don't think you are missing anything. There is only the one vm plugin and the upgrade msi just registers the file in the windows assembly and copies other files to be below your vm program folder.

Can you check the performance monitor folder and its bin folder(s) to see if you can see a ZedGraph.dll?

Thanks
« Last Edit: Aug 29th, 2012 at 6:48pm by Tim@Visual Micro »  
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 - Aug 29th, 2012 at 6:49pm
Print Post  
also still waiting for you to confirm that you have a "Micro Extensions" folder below the visual micro program folder? It's very important
  
Back to top
IP Logged
 
jchamilt
Junior Member
**
Offline


Posts: 14
Joined: Aug 8th, 2012
Re: Unable to load a debugger extension
Reply #9 - Aug 29th, 2012 at 9:48pm
Print Post  
Micro Extensions folder is there

zengraph.dll was not in the bin folder for performancemonitor, I did find it in another folder analoggraphexample/bin and copied it over, fixed the errors for the project, but still have the same errors when I run debug..

  
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 #10 - Aug 29th, 2012 at 10:57pm
Print Post  
can you please zip up your vm folder and all sub folders and email to info [at] visualmicro.com

if they look okay then I'll have to see if I can make a build with better error messages and also some trace messages so we can what is going on.

I guess you have checked that this path matches where the performance monitor is located? Sorry if stupid question Smiley

C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Extensions\Debugger Visualizations\PerformanceMonitor\bin\PerformanceMonitor.dll
  
Back to top
IP Logged
 
jchamilt
Junior Member
**
Offline


Posts: 14
Joined: Aug 8th, 2012
Re: Unable to load a debugger extension
Reply #11 - Aug 30th, 2012 at 1:51pm
Print Post  
yep it is there..

ZIP sent..
  
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 #12 - Aug 30th, 2012 at 2:37pm
Print Post  
Got it thanks. Install looks perfect  Undecided

Vs is failing to load the visualizations. The way they are loaded VS is passed the dll name and the name of the class which is defined in each MicroExtension.xml file in each visualization control source folder.

Visual Micro doesn't have any control over this process other than supplying vs with these two pieces of information.

VS requires that each visualization control is built as a COM Visible windows control. All of the Visualizations are COM Visible and we know this is true because they work for everyone else who I know is using them.

A COM Visible control is a control that support windows OLE automation.

So I can currently only see two possible reasons for this problem. 1) the location of the dll is wrong or 2) the visualization dlls are not self-registering as OLE objects in your windows registry 

We know that 1) is correct because you have confirmed the dll path matches the path shown in the vs errors. So it must be 2) I guess.

As a thought, have you tried running vs as administrator. Maybe it's a permissions error with the ole registration? If the controls load okay after running vs as admin you should be able to run vs normally.

If this doesn't work then I will send you the source of a very basic visual studio addin project that attempts to load one control. Running the project in debug mode and will probably give a more informative error message. This will take a few days before I have time so hopefully admin mode fixes it.
  
Back to top
IP Logged
 
jchamilt
Junior Member
**
Offline


Posts: 14
Joined: Aug 8th, 2012
Re: Unable to load a debugger extension
Reply #13 - Aug 30th, 2012 at 9:47pm
Print Post  
fixed..

I was adding another user to my local admin group when I noticed i wasnt in it.

I had assumed my account was a local admin, but I had installed a veeam monitoring demo on my machine and it changed my account type to "Veeam Monitoring"

so that is what the issue was..

sorry for the run around..

  
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 #14 - Aug 31st, 2012 at 10:21am
Print Post  
Great news. This is what a beta is for. It will happen to others but thanks to you I know where to suggest users look for a solution Smiley
  
Back to top
IP Logged
 
Sandro
Newbies
*
Offline


Posts: 1
Joined: Dec 15th, 2012
Re: Unable to load a debugger extension
Reply #15 - Apr 7th, 2013 at 12:06am
Print Post  
Same problem for me.....I'm on windows 8 32 bit (visual studio 2012, visual micro 1.1212.30) and my user is the administrator (I tried also to launch VS as administrator with no luck)
(ps...the dll seems to be in the right place...)
« Last Edit: Apr 7th, 2013 at 12:08am by Sandro »  
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 #16 - Apr 7th, 2013 at 5:29am
Print Post  
Sandro,

This thread is resolved. Please open a new thread if you have a problem. Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint