The old loadbehavior 3 to 2 problem

T

TonyR

I see a lot people have this problem but I haven't seen an answer yet.

I have a word addin, not shimmed, which is installed and working on two Win
2000 servers. I ran the same setup on two Win 2003 servers and when you run
Word the loadbehavior value changes from 3 to 2.

I tried a shim for the Word addin - same result. I tried the Microsoft
example addin + shim - same result. I tried an addin which does nothing -
same result. I've checked that there are no instances of Word running. Word
Macro Security level set to medium.
 
P

pavan

Or try and see if you can find the extensibility.dll gaced on the
target m/c. The KB article which XL-Dennis is specifying gacs this dll.
If it is not gaced then you can go ahead and try KB908002
 
T

TonyR

That fixed it. Thanks.

pavan said:
Or try and see if you can find the extensibility.dll gaced on the
target m/c. The KB article which XL-Dennis is specifying gacs this dll.
If it is not gaced then you can go ahead and try KB908002
 
T

TonyR

That is - it fixed it until the servers restarted. Now I don't have the
loadbehavior problem anymore but the addin is completely ignored. The users
have the addin button but nothing fires when its pressed.

Curiously, I have a Word addin and an Excel addin which do similar things.
The Word addin still works fine.

Uninstalled & reinstalled - no joy.

Tried a manual regasm on the .dll - no joy.
 
P

pavan

Hey TonyR
Are the other events firing? Try putting msg boxes everywhere and see
if atleast one of them is firing. Let us know!

Regards,
Pavan
 
T

TonyR

After uninstalling and reinstalling it seems to work for a bit. However,
after a good few weeks of working it sets loadbehavior back to 2. Haven't
worked out why yet.
 
P

pavan

Have you acertained that your code is not crashing the host app. Try
placing try-catches and check if it generates any exceptions. If it
doesn't not enter your code then you might be missing some dll
references (some of which get installed when you install updates)
Hope this helps

Regards
Pavan
 
N

newkie

Thank you for a link to the KB article. I was distributing a c# .net2 shared
add-in to a customer site and they too experienced this behavior. After
installing the prerequisite in the setup the problem has been sorted. Cheers!
 
T

TonyR

I think so pavan, I removed all of my code from the addin template and the
same thing happens.
 
T

TonyR

Just an update - if anyone has any further thoughts.

I found that it works fine for some users but not others.

Even more puzzling I've got two admin accounts - same groups, priveleges,
full access to files etc, I'm running the same exe and addin dll from the
same terminal server.

One account the add-in works fine - with the other, the loadbehavior key
changes from 3 to 2 once Excel is opened.
 
P

pavan

You can try this:
1) Uninstall your add-in from all accounts
2) Run regclean on the machine.
3) Make sure that there are no reg entries for the add-in after
regclean is run.
4) Now install on all user accounts and check if it works

Hope this helps,
Regards,
Pavan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top