none
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." RRS feed

  • Question

  • 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?

    Friday, March 30, 2012 3:34 PM

All replies

  • Dear customer,

    We're looking into this query, please wait for some time.

    best regards,


    Forrest Guo | MSDN Community Support | Feedback to manager

    Monday, April 2, 2012 2:27 AM
    Moderator
  • 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:

    1. Launch Process Monitor. (http://technet.microsoft.com/en-us/sysinternals/bb896645)
    2. Reproduce the error-scenario, create document level Excel workbook 2010 project;
    3. 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

    Monday, April 2, 2012 4:11 AM
    Moderator
  • i have uploaded the log file to

    https://skydrive.live.com/redir.aspx?cid=ea7b03280d93c25a&resid=EA7B03280D93C25A!232&parid=EA7B03280D93C25A!231&authkey=!ACDc1fykT8Z4F3g

    I see a bunch of locked files but not being an expert in this i have no idea if this is normal .

    mrP

    Monday, April 2, 2012 3:43 PM
  • 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

    Monday, April 2, 2012 4:31 PM
    Moderator
  • https://skydrive.live.com/redir.aspx?cid=ea7b03280d93c25a&resid=EA7B03280D93C25A!233&parid=EA7B03280D93C25A!231&authkey=!AFASiOxN0T6Z-bo

    here you go, i tried both excel and word document projects - both fail.

    thanks for the quick response :)

    Monday, April 2, 2012 4:45 PM
  • 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. 

    1. 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.
    2. Please verify the addin is loaded. Excel, File ->Options->Add-ins.
    3. 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:

    1. Above mentioned design time adaptor addin is actively loaded.
    2. Registry key exists: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTO_DT\VS10\Feature
    3. VSTO runtime(x64) in Control Panel;  Step 3- 5 are to verify VSTO runtime are setup well.
    4. VSTO runtime files are there: C:\Program Files (x86)\Common Files\microsoft shared\VSTO\10.0\
    5. 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

    Tuesday, April 3, 2012 2:39 AM
    Moderator
  • 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. 

    1. 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]
    2. Please verify the addin is loaded. Excel, File ->Options->Add-ins. [YES]
    3. 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:

    1. Above mentioned design time adaptor addin is actively loaded. [YES]
    2. Registry key exists: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTO_DT\VS10\Feature [YES]
    3. VSTO runtime(x64) in Control Panel;  Step 3- 5 are to verify VSTO runtime are setup well. [YES]
    4. VSTO runtime files are there: C:\Program Files (x86)\Common Files\microsoft shared\VSTO\10.0\ [YES]
    5. 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 ?

    Tuesday, April 3, 2012 4:18 AM
  • OK. I will get other people help on this issue, please wait some time.

    best regards,


    Forrest Guo | MSDN Community Support | Feedback to manager

    Tuesday, April 3, 2012 5:21 AM
    Moderator
  • 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

    Tuesday, April 3, 2012 8:57 AM
    Moderator
  • I only have office 2010 installed, i was simply trying the other project templates to see if they work.

    mrP

    Tuesday, April 3, 2012 3:27 PM
  • 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.aspx

    The 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-e444dda70866

    A 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-f01ef56fe4b7

    Microsoft Office is not installed on this computer
    http://msdn.microsoft.com/en-us/library/81a8w269.aspx

    Microsoft Visual Studio/.Net Framework Setup & Deployment Tips ...
    http://blogs.msdn.com/b/vsnetsetup/rss.aspx

    Visual Studio Development Environment 64-Bit Support
    http://msdn.microsoft.com/en-us/library/ms241066.aspx

    Visual Studio Tools for Office Runtime Overview
    http://msdn.microsoft.com/en-us/library/bb608603.aspx

    Troubleshooting Design Time Errors in Office Solutions
    http://msdn.microsoft.com/en-us/library/h8c469ey.aspx

    Cannot create the project-application not installed
    http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/0ed3cc4d-6761-477a-9b0b-baa91a306b31

    Regards,
    Chris Jensen
    Senior Technical Support Lead

    Chris Jensen

    Wednesday, April 4, 2012 7:05 PM
    Moderator
  • 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

    Wednesday, April 4, 2012 7:16 PM
  • 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 Lead


    Chris Jensen

    Thursday, April 5, 2012 1:48 PM
    Moderator
  • 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

    Thursday, April 5, 2012 3:52 PM