I also have 2009 SP2.1 installed and am having similar/same problems.
I have the same event in event viewer and even tried to followed the instructions to run "vsta /installvstemplates".
I try to record a macro or create a new SW VSTA VB Macro and VSTA opens w/ nothing.
I also noticed if you try to create a new project no templates show up.
Screen shots attached.
I was just about to learn how to use the API and VB, so let me know if this is how it is a supposed to function. haha.
got it working on xp 64bit.
the obvious solution was just to point vsta to find the "default" templates where the user templates are.
1. run vsta.exe from the cmd prompt.
2. Select Tools -> Options -> Projects and Solutions
3. Change the location of the project templates to:
C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates
4. Change the location of the user item templates to:
C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\VSTA\ItemTemplates
If anyone has a more elegant solution, please let us know.
Edit: Sorry this was on a xp 64bit system with 2009 sp0, but it was getting the same error and this fixed it.
I'm still getting the error on xp 32bit 2009 sp2.1 even after doing the above.
I just tried that on my system, to no effect.
FYI, I am running SW 2009 SP2.1 on Vista 32bit, no service pack. Also, I implied in my original post that the problem started only after I installed SP2.1, but I don't think I actually tried recording a macro in the non-admin account until after I installed the service pack.
i finally got it working on my xp32bit 2009 sp2.1 install.
the unfortunate thing is...it doesn't work the first time you create a macro.
1. i created a new macro, but i still get the error.
2. with SW VSTA still open, i create a new project, open the template and see the code.
3. i close out the project in VSTA and leave VSTA open.
4. i create or record a macro and the code comes into VSTA.
cumbersome, but it's working.
i even check the template locations and they haven't changed.
When and in what way do you run VSTA? I tried opening an existing macro and closing it before recording a new macro, but I still get the same error message.
I know this is a reply to an old thread, but perhaps I can help a bit
I had this problem and I finally figured out how to get around it. Windows 7 Pro 64 bit
I had to copy all of the folders in this: C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates
To a newly created folder C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\VSTA\ItemTemplates
I then created a new macro with the visual basic format and had to wait a long time for vsta to setup. It even crashed on me a few times. What the heck SWX?! this shouldn't be this hard!
In case anyone is looking at this years later, I had the same issue. My fix was to simply run Solidworks as administrator, and then it worked. Hope this helps someone