none
Debug the outlook addin project with different outlook versions RRS feed

  • Question

  • Hi

    I have an outlook addin. When i try to debug that project I'm getting the below error

    "You cannot debug or run this project, because the required version of the Microsoft Office application is not installed."

    I know this the problem is i dont set the "Start External Program" to outlook.exe.

    My question is, If I set outlook 2013 32bit as "Start External Program" and if debug in outlook 2013 64bit or outlook 2010 32bit or outlook 2010 64bit, It will show any problem?

    If this is a problem, is there any alternative to override this problem?

    Thanks

    Bobbin

    Wednesday, October 29, 2014 9:14 AM

All replies

  • Hello Bobbin,

    There is no need to set an external program to start if you develop a VSTO based add-in.

    You can re-target the add-in using the interop files. VSTO tries to run the Outlook version which corresponds to the interop file referenced.

    Wednesday, October 29, 2014 9:55 AM
  • Hi Eugene

    Thanks for quick reply. 

    Then why i'm getting this error.

    "You cannot debug or run this project, because the required version of the Microsoft Office application is not installed."

    To avoid this what i need to do?

    Wednesday, October 29, 2014 10:24 AM
  • Do you have a corresponding Outlook version installed on the PC?
    Wednesday, October 29, 2014 10:34 AM
  • Hi

    Yes, In my machine I'm installed office 2013 32bit 

    Wednesday, October 29, 2014 10:38 AM
  • Did you replace the interop file with the one which corresponds to Outlook 2013?

    Try to create a new add-in project and see whether it works.

    Wednesday, October 29, 2014 10:59 AM
  • when i try with new project, It also not working. Also It not showing 2013 in the addin list,  Only showing 2010 and 2007

     I didnt replace the inteorp file as well

    Wednesday, October 29, 2014 11:22 AM
  • What target framework version did you choose in Visual Studio? You need to select .net 4.0 or 4.5. See Running Solutions in Different Versions of Microsoft Office for more information.

    Wednesday, October 29, 2014 12:55 PM
  • Hi

    I'm using .net fw 4.0

    Thursday, October 30, 2014 8:52 AM
  • > when i try with new project, It also not working.

    Could you please be more specific? Do create a new Outlook 2013 add-in?

    What Outlook version do you have installed on the dev machine?

    Thursday, October 30, 2014 8:55 AM
  • Hi

    My Machine Configuration is

    OS : Windows 7, Outlook 2013 32bit , Visual Studio 2010 and .net framework 4.0

    Steps that I follow To create new Outlook Addin

    1. Open Visual studio 2010

    2. Select File->New->Project

    3. From the New Project Window I select

    Visual C#->Office->2010->Outlook 2010 Add-in (See below Image)

    4. I didn't change anything in the project properties like "Start External Program" (See below Image)

    5. Then I try to start "Debug" by pressing the functional key "F5".

    Then I will get this error

    "You cannot debug or run this project, because the required version of the Microsoft Office application is not installed."

    ---------------------------------------------------------------------------------

    Above is the my problem. My aim is there are 3-5 collies are working in this project. They are using different office like outlook 2010 32 bit and 64bit and 2013 32bit and 64 bit. In my machine i'm using outlook 2013 32bit. If i set the "Start External Program" and commit it, It will leads problem to other guys who are working in this project. So i'm trying to debug this project without set "Start External Program" Or set the "Start External Program" at the time of debug using "Pre build event comment line" under "Build Event"

    Thanks

    Bobbin

    Thursday, October 30, 2014 9:37 AM
  • Try to replace the interop file with the one which corresponds to Outlook 2013. I hope then you will be able to debug the add-in.
    Thursday, October 30, 2014 9:39 AM
  • Hi

    I tried to use alternate but there is no use

    Thursday, October 30, 2014 10:04 AM
  • Outlook 2013 corresponds to 15.0, not 14.0.
    Thursday, October 30, 2014 10:09 AM
  • But it not showing 15.0 in my reference :(

    Thursday, October 30, 2014 10:23 AM
  • See the COM tab, not .NET.
    Thursday, October 30, 2014 10:36 AM
  • Hi

    you mean this 

    I tried this also but no use. I'm getting the same error

    Thursday, October 30, 2014 11:54 AM
  • Try to set the external application to start also.
    Thursday, October 30, 2014 1:26 PM
  • OS : Windows 7, Outlook 2013 32bit , Visual Studio 2010 and .net framework 4.0

    Hi Bobbin,

    As far as I know, you can't develop Office 2013 add-in with VS2010. You have to install VS2012 and VSTO to develop add-ins for Office 2013:

    http://msdn.microsoft.com/en-us/office/aa905340.aspx

    Or you could install VS2013 directly, it has built-in support for Office 2013 project templates.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Sunday, November 9, 2014 12:11 PM
    Moderator
  • Caillen,

    Navigating to the link I see the following page:

    You can't create an add-in for Office 2013 in Visual Studio 2010. But the add-in created for Office 2010 can be run in Office 2013. The Running Solutions in Different Versions of Microsoft Office page states the following:

    If you developed solutions for Office 2010, you can run the same solutions in Microsoft Office 2013.

    Sunday, November 9, 2014 12:55 PM