VSTO Project wizards fails with "Cannot create the project because the application associated with this project type is not installed on this computer. You must install the Microsoft Office application that is associated with this project type."
-
30 Maret 2012 15:34
i have office 32-bit installed on windows -64 bit, using vs2010 with sp1
when i try and create a excel 2010 document project or a word 2010 document (or a 2007 excel or word document) project , the wizards starts and i select create new document - i then get the following error message
I have also tried using an existing word or excel document - i get the same error.
Cannot create the project because the application associated with this project type is not installed on this computer. You must install the Microsoft Office application that is associated with this project type.
Office 2010 pro plus is installed, activated , the 64-bit vsto run-time is installed, i have tried repairing office, visual studio , uninstalled vsto, re-installed vsto - tried it on a machine with a clean install of office, nothing seems to fix this!
Any ideas?
Semua Balasan
-
02 April 2012 2:27Moderator
Dear customer,
We're looking into this query, please wait for some time.
best regards,
Forrest Guo | MSDN Community Support | Feedback to manager
-
02 April 2012 4:11Moderator
Hi,
As the error message indicates, Office 2010 may didn't get installed completely. To diagnose this kind of issue, Process Monitor is the best choice. You could:
- Launch Process Monitor. (http://technet.microsoft.com/en-us/sysinternals/bb896645)
- Reproduce the error-scenario, create document level Excel workbook 2010 project;
- After the error reproduced, stop capturing event in Process Monitor.
Query these failed registry operations, like query registry keys etc. You should find some clue.
Btw, if you could not figure out the root cause, please share the session(Process Monitor log) you just created in above scenarios through Skydrive.
best regards,
Forrest Guo | MSDN Community Support | Feedback to manager
-
02 April 2012 15:43
i have uploaded the log file to
I see a bunch of locked files but not being an expert in this i have no idea if this is normal .
mrP
-
02 April 2012 16:31Moderator
Hi, I looked through the log you uploaded. Looks like neither Excel nor Word process exist in this log, either of them process supposed to show. Would you please set filter as below, rerun the tool and update log file on Skydrive:
Process name = devenv.exe; include
thanks,
Forrest Guo | MSDN Community Support | Feedback to manager
-
02 April 2012 16:45
here you go, i tried both excel and word document projects - both fail.
thanks for the quick response :)
-
03 April 2012 2:39Moderator
Thanks. This log is good. Looking through the log, I noticed that VSTO Design Time Adaptor for Excel component is not loaded. This component is key component for VSTO design time, it's an Excel addin which installed by Visual Studio.
- The component assembly is installed to: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\x64\VSTOExcelAdaptor.dll Please verify this file exists.
- Please verify the addin is loaded. Excel, File ->Options->Add-ins.
- Important note: On a development computer, if you have Office 2010 installed, you 're not able to develop Office 2007 solutions. If you create Office 2007 solution and debug, the above message pops up.
With above findings, I suppose creating Excel addin project will fail either.
Solution: if the addin does not load, repairing Visual Studio is the right way. I noticed that you have repaired Office, Visual Studio and VSTO (I suppose you mean VSTO Runtime). After all of these actions, checkpoints are as below:
- Above mentioned design time adaptor addin is actively loaded.
- Registry key exists: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTO_DT\VS10\Feature
- VSTO runtime(x64) in Control Panel; Step 3- 5 are to verify VSTO runtime are setup well.
- VSTO runtime files are there: C:\Program Files (x86)\Common Files\microsoft shared\VSTO\10.0\
- Registry key exists: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4M
Hope this can get you started.
best regards,
Forrest Guo | MSDN Community Support | Feedback to manager
-
03 April 2012 4:18
Thanks. This log is good. Looking through the log, I noticed that VSTO Design Time Adaptor for Excel component is not loaded. This component is key component for VSTO design time, it's an Excel addin which installed by Visual Studio.
- The component assembly is installed to: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\x64\VSTOExcelAdaptor.dll Please verify this file exists. [YES]
- Please verify the addin is loaded. Excel, File ->Options->Add-ins. [YES]
- Important note: On a development computer, if you have Office 2010 installed, you 're not able to develop Office 2007 solutions. If you create Office 2007 solution and debug, the above message pops up.
With above findings, I suppose creating Excel addin project will fail either.
Solution: if the addin does not load, repairing Visual Studio is the right way. I noticed that you have repaired Office, Visual Studio and VSTO (I suppose you mean VSTO Runtime). After all of these actions, checkpoints are as below:
- Above mentioned design time adaptor addin is actively loaded. [YES]
- Registry key exists: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTO_DT\VS10\Feature [YES]
- VSTO runtime(x64) in Control Panel; Step 3- 5 are to verify VSTO runtime are setup well. [YES]
- VSTO runtime files are there: C:\Program Files (x86)\Common Files\microsoft shared\VSTO\10.0\ [YES]
- Registry key exists: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4M [YES]
Hope this can get you started.
best regards,
Forrest Guo | MSDN Community Support | Feedback to manager
ok that all seems correct - did not have to do anything - it was all set like that.
what next ?
-
03 April 2012 5:21Moderator
OK. I will get other people help on this issue, please wait some time.
best regards,
Forrest Guo | MSDN Community Support | Feedback to manager
-
03 April 2012 8:57Moderator
Hi,
In your original post, I noticed words like "word 2010 document (or a 2007 excel or word document) project ". Do you get Office 2007 and Office 2010 installed on same development computer? If that is the case, I am sure this is not a supported configuration. Office doesn't work side by side in VSTO solution.
Also, is it possible that you're creating VSTO project that targeting Office 2007? Typically this will result in that error.
If all above doesn't resolve the problem, would you please send me a message forrestg@microsoft I have an internal troubleshooting tool that could help.
best regards,
Forrest Guo | MSDN Community Support | Feedback to manager
-
03 April 2012 15:27
I only have office 2010 installed, i was simply trying the other project templates to see if they work.
mrP
-
04 April 2012 19:05Moderator
Hi mrP,
So far none of the approaches tried between you and Forrest are making any progress. In your initial post you said "the 64-bit vsto run-time is installed." Do you need that when building VSTO projects for 32-bit Office? How do you get and install the 64-bit vsto run-time, and how do you know it is installed? Please see the following:
64-bit Applications - MSDN – Explore Windows, Web, Cloud, and ...
http://msdn.microsoft.com/en-us/library/ms241064.aspxThe links below connect to content about your issue, both within Microsoft content and Forum threads. Please look through the material and try some of the recommendations, then let us know whether any one of them has worked for you.
See the post by McLean Schofield in the following Forum thread.
Cannot Create Office Project
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/caf08a9e-9dea-41f9-b293-e444dda70866A similar thread applied to the same issue
How do I fix "The application associated with this project type is ...
http://social.msdn.microsoft.com/Forums/en/vsto/thread/7c30e85b-d0de-479d-81ac-f01ef56fe4b7Microsoft Office is not installed on this computer
http://msdn.microsoft.com/en-us/library/81a8w269.aspxMicrosoft Visual Studio/.Net Framework Setup & Deployment Tips ...
http://blogs.msdn.com/b/vsnetsetup/rss.aspxVisual Studio Development Environment 64-Bit Support
http://msdn.microsoft.com/en-us/library/ms241066.aspxVisual Studio Tools for Office Runtime Overview
http://msdn.microsoft.com/en-us/library/bb608603.aspxTroubleshooting Design Time Errors in Office Solutions
http://msdn.microsoft.com/en-us/library/h8c469ey.aspxCannot create the project-application not installed
Regards,
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/0ed3cc4d-6761-477a-9b0b-baa91a306b31
Chris Jensen
Senior Technical Support LeadChris Jensen
-
04 April 2012 19:16
according to the http://msdn.microsoft.com/en-us/library/bb608603.aspx link the 64-bit runtime is required when running on 64-bit windows with 32-bit office installed.
I will read thru the posts etc
MrP
-
05 April 2012 13:48Moderator
Hi MrP,
Thanks for reading the pge at the link in your poast above. I had missed the table in the article, and stand corrected + more informed.
Regards,
Chris Jensen
Senior Technical Support LeadChris Jensen
-
05 April 2012 15:52
no problem, i have been doing alot of reading to try get this working - right now i'm reduced to using the 2010-10a information worker vm image to be able to create the project i need.
MrP