Word com add-in now only working immediately after rebuild

I am working on a Word add-in (a specialized editor) using C# Visual Studio 2013 and Word 2010 on a server2012 machine. My add-in did work OK for quite some time but then I started to enhance it: It does in fact still 'work' - but
only when I launch it using 'run' from Visual Studio 2013 and
only when I do so immediately after a rebuild. If launching it after a 'build' or when hoping to access it directly from Word there is no access to my editor - tab.
Trying to look for it I go to settings in Word > addins > com addins. There I can see the add-in but it is unchecked, and checking it does not help: '...is not a valid..'
I can see that many others have similar problems using older versions - but I did not find a solution. Some people want to mess around in the registry but I am not too confident doing that. What could I try?
Peter the Creative Timewater

Thank you for your answer. Now I did manage to 'solve' the issue. As that may be of interest to others I shall give a short explanation:
I wanted access to global variables and I therefore extended the class Globals:
using System;
namespace BridgeLabel
internal sealed partial class Globals
private static string file_extension = ".bse";
private static string baselib = Directory.GetParent(Environment.CurrentDirectory).Parent.FullName;
private static string sprog = "da-DK";
private string imagelib;
private string bitmaplib;
private string buflib;
private string midtenlib;
private string suitlib;
private string stringbidslib;
private string datalib;
private static string strenge;
private static int spilnr = 1;
private static bool nummerbestemt = false;
private static SuitSymbolDisplay suitSymbols;
public static string Suitlib
get
return Imagelib + "\\Bitmaps\\SuitSymbols\\";
public string Stringbidslib
get
return Imagelib + "\\Bitmaps\\tableBids\\";
public static string Strenge
get
string res;
try
StringBuilder sb = new StringBuilder(baselib);
sb.Append("\\Resources\\Strenge\\").Append(sprog).Append("\\strings.resx");
res = sb.ToString();
catch(Exception)
res = baselib + "\\Resources\\Strenge\\da-DK\\strings.resx";
//res = baselib + "\\Resources\\Strenge\\en-US\\strings.resx";
return res;
private static ResXResourceSet resxSet = new ResXResourceSet(Strenge);
public static string GetResourceString(string name)
return resxSet.GetString(name);
public string CreateFileName(string fname)
StringBuilder sb = new StringBuilder(Datalib);
sb.Append(fname).Append(file_extension);
return sb.ToString();
The Idea to do this came from
another post in this forum. I thought (and I still think) that this was a 'neat' way to integrate the code. But I have now changed this into a static class containing the same functionality.
This does Work and it put a stop to the problems - but it seems a bit 'clumsy' and I will therefore continue to pursuit the matter following your guidelines.
However it seens that it is not straightforward to extend the class 'Globals'
Regards
Peter
Peter the Creative Timewaster

Similar Messages

  • HT4623 I updated my ipad to iOS 6 yesterday and it worked immediately after update.  I left home for about 4 hours and when I returned I was uable to get my ipad to come up. I only have a black screen.  When I press the on off button nothing happens.

    I updated my ipad to iOS 6 yesterday and it worked immediately after updating my ipad worked as it should.  I left and came back in about 4 hours and have a black screen.  When I press the on off button nothing happens.  Help.

    Assuming that the battery isn't empty (and it can take up to 15 minutes of charging before it will respond), then have you tried a reset ? Press and hold both the sleep/on/off and home buttons for about 10 to 15 seconds, after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Comcast came to fix my internet. My AIRPORTWIFI now only works with desktop. it doesn't work with my IPhone or IPad. Why? What can I do?

    Comcast came to fix my internet. My AIRPORTWIFI now only works with desktop. it doesn't work with my IPhone or IPad. Why? What can I do?

    Hello lila54,
    It sounds like your Wi-Fi network is working if your desktop works with it, we just need to get the Wi-Fi on your iPhone and iPad connected to it.  I found a couple of resources to help with not being able to connect to Wi-Fi on an iOS device.
    I recommend following the steps in this tutorial first (the steps should work on the iPhone and iPad):
    Join a network
    http://www.apple.com/support/iphone/assistant/wifi/
    If you are still having trouble connecting to Wi-Fi, follow the steps in this article (you can skip any steps you have already taken):
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thank you for posting in the Apple Support Communities. 
    Best,
    Sheila M.

  • Add Comment button only works on .mac domain

    I have a personal domain through Apple, and the add comment button only works when i go to my .mac domain. When I go through my personal domain it says error!

    Yep.
    Those needed files are not served by your iDisk. They are served using Apple servers and only work for .Mac (iDisk) accounts.

  • I have a iPad Keyboard Dock for the iPad 1. I purchase an iPad 2 and the dock worked fine for a week no fit problem none worked. I received a tiny message about  iPad Keyboard Dock it stop working immediately after dismissing message.

    I have a iPad Keyboard Dock for the iPad 1. I purchase an iPad 2 and the dock worked fine for a week no fit problem none worked. I received a tiny message about  iPad Keyboard Dock it stop working immediately after dismissing message.

    Hi and welcome..
    Connect your iPad to your computer. Launch iTunes. Make sure your iPad is recognized in iTunes under Devices on the left.
    Select the Summary tab then click Update.
    Just to make sure your iPad software is up to date.
    Carolyn

  • I updated Firefox, lost The Free Dictionary's some essential fucntions, cannot get them back. The TFD now only works in English. What to do?

    I updated Firefox to 10.0.2 and lost the functionality of The Free Dictionary. I reinstalled TFD, but now it only works in English. Say, I read a German webpage, highlight a word, the dictionary goes to look for it in the English dictionary. Before I had all the versions I needed, and the dictionary went automatically into the right one. And before I could have the toolbar installed, now there is no option for this either. What should I do?

    Hi Maurizio, I asked you about a problem with the free dictionary. I found the solution, which actually was not technical. In case someone else has the same, this is what I did not understand: When I highlight a word in a text in other language than English, the dictionary gives me an explanation in English, i.e. "word not found", but when I then press "search", the dictionary connects me into the appropriate dictionary. It functions even in Chinese! So, problem sorted out. The dictionary is not as good as before, but still, it works. Un saludo, Markku

  • Adobe Acrobat 10 inactive in Outlook 2013. Activating it in the COM add-in does not work.

    How do I get a link to adobe on the ribbon and activate Acrobat PDF maker in the COM add-in?

    I do not think that AA X is compatible with the newest versions of OFFICE and such. Your only choice is to print to the Adobe PDF printer or use the MS plugins to create PDFs.

  • IPhone 3GS: Push e-mail now only works on 3GS, not WiFi

    Greetings,
    Well, my iPhone 3GS (iOS 5.1.1, which it's been running for a long time) suddenly stopped receiving pushed e-mail from my Yahoo e-mail account (the only one of my accounts that offers push) over WiFi at home.  Now Push only works when I'm on 3G.  It used to work on both.  Any ideas?
    Thanks,
    DM

    Have you
    - restarted the phone?
    - made a hard reset? Simultaneously press the sleep/wake and the home buttons for 10-15 seconds until the device reboots (ignore the shutdown screen).
    - force quit the app? When in the app, press on the sleep/wake button until the shutdown screen appears, then press the home button until the app quits.

  • Add-ons managaer only work partly

    I'm running FIREFOX 12, but my add-ons manager is only working half of its total features. Features that are work are....recent updates, available updates, plug-ins and appearance! Features NOT working are....extensions, get add-ons and search.

    It is possible that there is a problem with the file(s) that store the extensions registry.
    Delete the files extensions.* (e.g. extensions.sqlite, extensions.ini, extensions.cache) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
    *https://support.mozilla.org/kb/Profiles
    New files will be created when required.
    See "Corrupt extension files":
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to check if there is a compatibility update available.

  • How come the numeric keypad only works in log-in and not in normal progs?

    I've searched this forum for all things numeric keypad related and come up blank on this problem so I'm putting this question out there for anyone else who knows the answer.
    The numeric keypad on my iMacs only work it seems in typing in numbers in the password box at log-in, but in any other program, including Safari, I get nothing when I push those keys. Why is this and how can it be easily corrected with or preferably without the use of strange hacks if this is not some kind of missed setting? This one really bothers me. Why have a keypad at all if it isn't useful the majority of the time? I find the same problem on the Aluminum and plastic, wired, and wireless versions of the keyboard. If Apple didn't intend us to use the keypad in substitute for the number keys whenever we feel like it, wouldn't it make more sense to downsize the keyboards and sell them without one? The keypad only seems to work when set for use as a mouse-substitute, and nothing else.

    It's strange that it doesn't work on my desktops, but it works fine on my MacBook (but of course I have to use the f(x) key to make it work on that because it isn't really a separate keypad).
    Does anyone have any idea what settings under Tiger could cause the keypad not to function? It seems the problem is Tiger-related as the Leopard desktops don't exhibit the same problem.. Which keyboard is connected and by what method does not seem to make a difference.

  • Sites I visit most often won't work immediately after installing Leopard

    Immediately after installing Leopard the three sites I visit most often won't pull up at all. They just show an error as if the MacBook isn't connected to the internet.
    Other sites pull up fine.
    These three sites I am trying to visit pull up fine on other computers.
    These three sites won't work regardless of what wireless network I'm on.
    The problem is exactly the same between Firefox and Safair.
    What suggestions do you have or where can I start?
    Thanks a ton guys

    Figured it out. I have a program called SelfControl that helps block sites that you find yourself killing a lot of time on. Well after the update it appears that it was somehow activated and thus wouldn't allow those sites to come through. Unique problem.
    All fixed now.

  • Skype 7.0 stops working immediately after starting...

    As soon as i start Skype , right after the log in , it crashes.  Tried un-installing and re-installing.  Still no luck.
    Attached event.log and dxdiag.log
    Solved!
    Go to Solution.
    Attachments:
    DxDiag.zip ‏7 KB
    skype_eventlog.zip ‏1 KB

    If it's crashing in Safe Mode and only worked with much older versions then the issue mayb be related to your IE browser.  The newer versions of Skype rely on elements of IE to function.  I would suggest you perform the following maintenance.
    Reset IE settings:
    http://support.microsoft.com/kb/923737
    Clear IE temp files:
    http://windows.microsoft.com/en-us/windows-vista/d​elete-temporary-internet-files
    Download and install the latest version of Adobe Flash for IE (currently 16):
    http://aihdownload.adobe.com/bin/live/install_flas​hplayer16x32ax_mssd_aaa_aih.exe
    Download and install the latest version of IE (if not already installed):*
    http://download.microsoft.com/download/3/A/2/3A2B7​E95-24EF-44F6-A092-C9CF4D1878D0/IE11-Windows6.1.ex​...
    *It does not have to be your default browser, but it should be installed.

  • Time Machine now only works if I exclude iTunes Music folder

    Time machine has worked very well for me in the past until recently. I get the "unable to complete backup" message every time TM tries to do a backup. I've tried erasing my backup drive (LaCie External 500GB) and starting over. That didn't work. I erased the disk again and started from scratch, but this time excluding the "iTunes Music" folder. The backup worked! I then removed the exclusion and I got the error again. For now, I excluded the folder again and all is well. There is more than enough room for my all this data on my external hard drive, but for some reason it just won't backup when I include "iTunes Music". In the meantime I'll be manually backing up my iTunes Music folder on an other drive.
    Any help getting everything to backup to my LaCie drive would be greatly appreciated. Thanks.

    Thanks for the tips guys.
    I have verified the HD and got this:
    +Verifying volume “Macintosh HD”+
    +Performing live verification.+
    +Checking Journaled HFS Plus volume.+
    +Checking Extents Overflow file.+
    +Checking Catalog file.+
    +Checking multi-linked files.+
    +Checking Catalog hierarchy.+
    +Checking Extended Attributes file.+
    +Checking volume bitmap.+
    +Checking volume information.+
    +Invalid volume file count+
    +(It should be 662127 instead of 662128)+
    +Invalid volume directory count+
    +(It should be 164759 instead of 164758)+
    +The volume Macintosh HD needs to be repaired.+
    +Error: Filesystem verify or repair failed.+
    Then I clicked 'repair permissions' and got this:
    +Repairing permissions for “Macintosh HD”+
    + Reading permissions database.+
    + Reading the permissions database can take several minutes.+
    +Warning: SUID file "System/Library/Filesystems/AppleShare/afpLoad" has been modified and will not be repaired.+
    +Warning: SUID file "usr/bin/setregion" has been modified and will not be repaired.+
    +Warning: SUID file "System/Library/PrivateFrameworks/Install.framework/Versions/A/Resources/runner " has been modified and will not be repaired.+
    +Warning: SUID file "System/Library/Printers/IOMs/LPRIOM.plugin/Contents/MacOS/LPRIOMHelper" has been modified and will not be repaired.+
    +Permissions repair complete+
    I'm not sure if this will fix my problem or what those warnings mean. I'll try using TM again and will report later. Thanks again.

  • "Add flagged photos" only works sometimes.  Is there a fix?

    After I flag photos in one event, then select another event, and choose "Add flagged photos...", the flagged photos are sometimes moved and sometimes not.  After opening the target event and clicking on a few photos, then selecting the target event again, the "Add flagged photos.." may work.  I seems to work about 10% of the time on the first try.  Is there something I could do to fix this?

    I thought it might be an photo ownership issue since my wife and I share the iPhoto library (it is in the Shared User folder) so I set the security on the photos to "Read and Write" from both my account and her account.
    That's not how to set permissions on an iPhoto Library.  Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. You'll see the option to check and repair Library permissions.
    I thought about rebuilding the library, but am a little nervous about that since there are numerous warnings about backing up before doing that.
    What? You mean you don't back up?
    Sounds as though it might be dangerous
    Not dangerous at all... if you have a back up.
    Regards
    TD

  • Broadcast safe now only works when clips are nested?

    Am I crazy or is this true? Just started working on FCP 7.0.2....
    Dropped a broadcast safe on a clip. The excess luma still shows in the video scopes. Nested the clip, dropped the broadcast safe on it, now all seems to be fine.
    Is this new behavior in 7.0? or, am I insane / imagining things?
    Thanks

    Strange but true Mark, just tested and see the same behavior here ... I don't generally use the BS filter myself as I've never found its corrections suitable for the specs I need to adhere too (I prefer to legalise manually) so never noticed this before. Odd find.

Maybe you are looking for

  • Yoga 8 and 10 Tablets - Kitkat 4.4.2 - Poor Streaming

    After upgrading to KitKat 4.4.2, some customers report poor streaming on Netflix and Google+ Hangouts on their Yoga 8 or 10 tablets (B6000-F/H or B8000-F/H). Please note that Lenovo has escalated internally on this issue. I was personally able to rep

  • How can we add new fields in item customer detail B tab in VA01/VA02/VA03?

    Hi all, Anyone can suggest me, how we can add fields in item detail B tab of VA01/VA02/VA03 transaction. 1) How we can find the screen no and how we can add fileds in it 2) where we have to write the logic for these fields ( I mean in which include)

  • IPhoto has no photo in iPhoto library nor another album....empty folders...

    I don't know why what used to be working fine and now iPhoto library contains folder with no photo?! Would it be because I move the iPhoto library to my user/home folder? I have been shooting Raw and load into Bridge and save to album folder in iPhot

  • Search IRoom by room name

    Hi all, Anyone knows how to search for a room given the name of room (not id) ? I know how to lookup a IRoom interface if the room id is given. Any help would be greatly appreciated Best regards, Dieter

  • Image Mask confusion

    I'm trying to create an image mask but I'm stuck. I can create the mask on an object. But when I attempt to drag an image into the well, the moment my mouse button goes down, the image is selected instead of the mask and so the inspector changes and