none
Project says Build Succeeded but something is right RRS feed

  • Question

  • I'm sorry for the poor title, but just don't know how to describe it.

    I've only been experimenting with Visual Studio for a about a week.  I've been work on a very basic MS Word template add-in.  Most of the time, while I've struggled with the coding, I've manage to make progress and the add-in works when debugged and tested.  However, I am periodically experiencing an issue that I just can't figure it out and as it appears to be so catastrophic, I will probably have to give up if I can't figure it out :-(.

    Most of the time when I build my project and debug, Microsoft Word will open and my template add-in is loaded and I have a custom tab on the Word ribbon.  If I look at Word>Developer>Add-Ins I will see my add-in is available and loaded (it has a check in the box).

    Sometime, and why I don't know, I will build the project and get a build succeeded message, but then when I debug, Word opens and my custom tab is not showing.  If I go to Developer>Addins, I will see the add-in is available but "NOT" loaded (there is no check in the box) and the status is Unloaded.

    There is no indication of any errors in the error list when this occurs.  It has happened several times and I really don't know why.  Each time I've had to start over from scratch.  However this last time I tried several things and it seems that renaming the folder the project was in and/or deleting the contents of the bin and obj folders then rebuilding the project got it to work again.

    I would really like to understand why this happens and what I should do when it happens and what I should do to prevent it.

    Thanks. 

     

     


    Greg Maxey Please visit my website at: http://gregmaxey.mvps.org/word_tips.htm



    • Moved by Amanda Zhu Wednesday, November 26, 2014 6:02 AM better forum
    • Edited by Greg Maxey Wednesday, November 26, 2014 11:32 AM
    Tuesday, November 25, 2014 3:57 PM

Answers

  • Hello Greg,

    Is your add-in listed in the Disabled Items list?

    Microsoft Office applications can disable add-ins that behave unexpectedly. If an application does not load your add-in, the application might have hard disabled or soft disabled your add-in.

    Hard disabling can occur when an add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your add-in is executing.

    Soft disabling can occur when an add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable an add-in if it throws an unhandled exception while the Startup event handler is executing.

    When you re-enable a soft-disabled add-in, the application immediately attempts to load the add-in. If the problem that initially caused the application to soft disable the add-in has not been fixed, the application will soft disable the add-in again.

    You can read more about that in the How to: Re-enable an Add-in That Has Been Disabled article in MSDN.

    • Marked as answer by Greg Maxey Wednesday, November 26, 2014 11:34 AM
    Wednesday, November 26, 2014 7:34 AM

All replies

  • Hi Grey,

    Because your issue is about Word Add-in, I moved this thread to Visual Studio Tools for Office (VSTO) forum. Experts there can provide you better support.

    Thanks,


    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.

    Wednesday, November 26, 2014 6:04 AM
  • Hello Greg,

    Is your add-in listed in the Disabled Items list?

    Microsoft Office applications can disable add-ins that behave unexpectedly. If an application does not load your add-in, the application might have hard disabled or soft disabled your add-in.

    Hard disabling can occur when an add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your add-in is executing.

    Soft disabling can occur when an add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable an add-in if it throws an unhandled exception while the Startup event handler is executing.

    When you re-enable a soft-disabled add-in, the application immediately attempts to load the add-in. If the problem that initially caused the application to soft disable the add-in has not been fixed, the application will soft disable the add-in again.

    You can read more about that in the How to: Re-enable an Add-in That Has Been Disabled article in MSDN.

    • Marked as answer by Greg Maxey Wednesday, November 26, 2014 11:34 AM
    Wednesday, November 26, 2014 7:34 AM
  • Eugene,

    Thanks for the link.  While I don't yet know specifically why the problem occurs, I do have less fear that when it does I will have to build my project over again from scratch.


    Greg Maxey Please visit my website at: http://gregmaxey.mvps.org/word_tips.htm


    • Edited by Greg Maxey Wednesday, November 26, 2014 11:37 AM
    Wednesday, November 26, 2014 11:34 AM