Google Grupper har inte längre stöd för nya Usenet-inlägg eller -prenumerationer. Historiskt innehåll förblir synligt.
Stäng

The old loadbehavior 3 to 2 problem

8 visningar
Hoppa till det första olästa meddelandet

TonyR

oläst,
4 okt. 2006 12:36:022006-10-04
till
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.

XL-Dennis

oläst,
4 okt. 2006 16:42:022006-10-04
till
Tony,

Please check out the following MSFT's KB-article
FIX: Add-ins, smart documents, or smart tags that you create by using
Microsoft Visual Studio 2005 do not run in Office
http://support.microsoft.com/kb/908002

Let us know if it will solve the issue or not.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/

pavan

oläst,
5 okt. 2006 01:57:462006-10-05
till
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

TonyR

oläst,
6 okt. 2006 05:08:022006-10-06
till
That fixed it. Thanks.

TonyR

oläst,
11 okt. 2006 10:56:022006-10-11
till
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.

pavan

oläst,
12 okt. 2006 06:49:012006-10-12
till
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

TonyR

oläst,
3 nov. 2006 05:15:022006-11-03
till
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.

pavan

oläst,
6 nov. 2006 03:15:432006-11-06
till
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

newkie

oläst,
7 nov. 2006 11:39:012006-11-07
till
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!

TonyR

oläst,
15 nov. 2006 12:16:022006-11-15
till
I think so pavan, I removed all of my code from the addin template and the
same thing happens.

TonyR

oläst,
23 nov. 2006 05:47:012006-11-23
till
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.

pavan

oläst,
24 nov. 2006 00:06:452006-11-24
till
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

0 nya meddelanden