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) Microsoft patch broke it? (Read 9091 times)
Selmo
Newbies
*
Offline


Posts: 7
Joined: Apr 29th, 2013
Microsoft patch broke it?
Dec 11th, 2013 at 7:42am
Print Post  
After today's famously large batch of updates from Microsoft, I started getting error messages when creating a new sketch project, or importing an existing project: 

Quote:
"File name or class name not found during Automation operation"


followed by 

Quote:
"Visual.Micro.Visual.Studio.Arduino.12
---------------------------
Error: Exception from HRESULT: 0x800A01B0"



I do not get an error when opening an existing project -- I just can't create a new one from scratch or create a new project from an existing .ino file.

I tried doing a installation repair on VisualMicro as well as rolling back a couple patches that looked like they might be related, but no luck.

Problems exists with Visual Studio Pro 2012 and Visual Studio Pro 2008 (both were working before the patches were applied).

I swear.... I've had more downtime, problems, and loss of data from MS's patches than any virus or attacker.
« Last Edit: Dec 11th, 2013 at 7:45am by Selmo »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Microsoft patch broke it?
Reply #1 - Dec 11th, 2013 at 3:09pm
Print Post  
Hi,

To create new projects Visual Micro uses the new/empty C++ template that is installed with all Visual Studio C++ versions. It sounds like this standard VS template is missing.

What happens if you selected "File>New Project>Empty Win32 C++ project"? This does not use any VM functions just VS. Do you see same error?

Thanks
  
Back to top
IP Logged
 
Selmo
Newbies
*
Offline


Posts: 7
Joined: Apr 29th, 2013
Re: Microsoft patch broke it?
Reply #2 - Dec 11th, 2013 at 5:48pm
Print Post  
That works--  I can create c++ /  windows projects without errors.
  
Back to top
 
IP Logged
 
Selmo
Newbies
*
Offline


Posts: 7
Joined: Apr 29th, 2013
Re: Microsoft patch broke it?
Reply #3 - Dec 11th, 2013 at 9:31pm
Print Post  
nothing informative in the VS2008 log (devenv.exe /log)  either...  Sad
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Microsoft patch broke it?
Reply #4 - Dec 12th, 2013 at 2:24pm
Print Post  
Hi,

What name are you giving to the sketch you are trying to create?

Thanks
  
Back to top
IP Logged
 
Selmo
Newbies
*
Offline


Posts: 7
Joined: Apr 29th, 2013
Re: Microsoft patch broke it?
Reply #5 - Dec 12th, 2013 at 7:26pm
Print Post  
I've tried any number of names, both existing .ino files and fresh names : "Foo" , " sdsffsfh", "MyTest", etc....  it does recognize existing .ino and prompts to import vs create new.  The failure happens after that point.

When it fails , it does create a new folder in my arduino sketchbook folder and create a solution within VS, but there are no projects within the solution (and no .ino file if I create a fresh one).  If I try to add a project within that solution, it fails.

I tried disabling all other VS add ins and uninstalling more of Microsoft's updates, but no change.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Microsoft patch broke it?
Reply #6 - Dec 13th, 2013 at 6:41pm
Print Post  
Hi,

Sorry for the delayed response thanks for the info.

Actually this means the test I asked you to do is misleading. 

This is certainly a problem running the empty VC project wizard which is called emptyproj.vsz and normally exists in the Visual Studio VC templates folder

example: The Visual Studio VC templates location might be "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcprojects"



« Last Edit: Dec 13th, 2013 at 6:51pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Selmo
Newbies
*
Offline


Posts: 7
Joined: Apr 29th, 2013
Re: Microsoft patch broke it?
Reply #7 - Dec 14th, 2013 at 3:12am
Print Post  
I had no trouble creating any number of different VC projects, including 'empty project' in the VS new project wizard. But it may be an issue that only affects certain project types, including VisualMicro but none others that I tested.

It affected all installations of VS I had as well (2008, 2010, & 2012) -- seems unlikely that the templates would get messed up in all the installations simultaneously (and restoring the VS installations from a backup did not fix the problem).  It seemed more like a problem with a DLL / control / .net assembly registration or security or permissions sorta thing.

I gave up and reverted my machine to a backup from Monday -- before I applied Tuesday's MS patches. And everything works fine again.   

Hopefully this was some anomaly unique to my machine / configuration and not a more widespread issue.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Microsoft patch broke it?
Reply #8 - Dec 15th, 2013 at 2:17pm
Print Post  
Hi,

Thanks for the all info and I am pleased it's working for you.

I think it was an isolated incident, haven't heard of it before and especially because reapply of the same updates a second time has worked okay.

Visual Micro calls a VS to run the new project wizard and has no control over that process so this also indicates some sort of strange VS upgrade issue.

So I think your summation is probably the best answer we are going to get. Thanks for reporting the solution!
  
Back to top
IP Logged
 
Selmo
Newbies
*
Offline


Posts: 7
Joined: Apr 29th, 2013
Re: Microsoft patch broke it?
Reply #9 - Dec 16th, 2013 at 1:54am
Print Post  
Quote:
especially because reapply of the same updates a second time has worked okay.


Actually I did not reapply the patches after I reverted my system -- I'm still running 'vulnerable' (which is better than not running at all).   

I assume you'd have heard from more users by now if this was not unique to my installation.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Microsoft patch broke it?
Reply #10 - Dec 16th, 2013 at 11:56am
Print Post  
No, not heard anything about this from anyone else. If the problems happens after upgrade please confirm the emptyproj.vsz exists in the VC templates folder. It is a VS file nothing to do with Visual Micro other than the fact that Visual Micro uses it.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint