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
Normal Topic Automation error VS2008 (Read 5126 times)
matt15
Newbies
*
Offline


Posts: 8
Joined: Feb 19th, 2014
Automation error VS2008
Feb 19th, 2014 at 4:55pm
Print Post  
Hello,

This is probably a VS issue, but was hoping someone might be able to help.  I just installed the VisualMicro add in, was trying to use it on an APM project as an alternative to the horrible Arduino GUI.  Installation went fine, but when I try to open a sketch (File->Open-Sketch) I get this error:

Automation Error Can't Create Object 

and then

Error:  Exception from HRESULT: 0x800A01AD

I do have VC++ installed, but just tried starting a project with it and it fails in a similar manner.  SO I believe it is an issue with VS2008, not necessarily VisualMicro.

However, I usually do VB.net or Visual C# projects, so I don't know if my VS2008 V++ was always bad or if it is the result of installing Visual Micro.

I can try re-installing VS2008 to see if that fixes it, but would rather not if someone here knows of something to look at / do first?

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Automation error VS2008
Reply #1 - Feb 19th, 2014 at 5:05pm
Print Post  
Hi Matt,

Sorry to hear of this.

The error usually means that the empty c++ win32 project template is missing from the Visual Studio installation. If you selected "File>New project" then select an empty win32 c++ project (not using ATL or make) you might see the same error?

If so running a repair on vs might fix the error but I heard a couple of 2010 users saying it was more difficult than that. 

If all else fails I can send you an empty project file to get you going. Visual Micro only needs a cpp project file to get it going however it's best to fix this issue because there might be other C++ install issues.

Thanks
  
Back to top
IP Logged
 
matt15
Newbies
*
Offline


Posts: 8
Joined: Feb 19th, 2014
Re: Automation error VS2008
Reply #2 - Feb 19th, 2014 at 5:27pm
Print Post  
Thanks for the quick response...

I do see the same error.  Looking around, I see that my project templates has C#, VB.net and Web, but no folder for VC.  Running devenv /installvstemplates failed to rebuild that folder and provide the templates.   

I'll see what I can do to fix / correct and make progress on it.  Thanks for the hint, that leads me down a likely path...

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Automation error VS2008
Reply #3 - Feb 19th, 2014 at 5:37pm
Print Post  
Thanks, if it gets too painful I can zip and email the templates below my vs 2008. I'm sure I won't be shot for doing that  Smiley
  
Back to top
IP Logged
 
matt15
Newbies
*
Offline


Posts: 8
Joined: Feb 19th, 2014
Re: Automation error VS2008
Reply #4 - Feb 19th, 2014 at 6:01pm
Print Post  
Hi Tim,

Thanks very much.  After goofing with it here, I'm more paranoid that I'll destroy all the service packs, etc thru a clean install.  I'm slowly moving to the 2012/2013 VS, but for this small project I'm trying to put one more thing on the VS2008 house of cards.

If you could email me the zip that you suggest, I would greatly appreciate it.  If that doesn't solve it, I'm going to punt and move everything to VS2012 on a separate PC.

Thanks Tim!
Matt
  
Back to top
 
IP Logged
 
matt15
Newbies
*
Offline


Posts: 8
Joined: Feb 19th, 2014
Re: Automation error VS2008
Reply #5 - Feb 23rd, 2014 at 9:43pm
Print Post  
So, as expected, this wasn't a VM issue, but a Visual Studio / Windows issue.  The Windows Scripting Runtime was no longer running / registered.

The fix is:
1) Open a command prompt
2) Type "cd C:\WINDOWS\system32"
3) Type "regsvr32 scrrun.dll"

Everything worked fine after that.  Now on to using VM...

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Automation error VS2008
Reply #6 - Feb 23rd, 2014 at 9:46pm
Print Post  
Great info thanks!
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint