Office 2002 (XP) Addin and .Net 2.0

R

Ryszard Krakowiak

Hi

I have a problem with Word 2002 Addin and .Net 2.0.
I've installed WXP SP2 with all updates then .Net 2.0 and Word 2002
(Word app and help only) after that.

I've created simple addin that tisplays message in OnConnection method
in VS 2005 (.Net 2.0) and VS 2003 (.Net 1.1).

My Word runs under medium security and 'trust all installed addins and
templates' is unchecked.

I've done following steps:
1. WXP + fixes installation
2. .Net 2.0 installation
3. Word 2002 (app & help file) + all hotfixes installation
4. Office XP PIA installation using gacutil from .Net 2.0
5. addin registration using RegAsm /reg /codebase
a. for VS 2003 addin
b. for VS 2005 addin
6. addin word registration
a. for VS 2003 addin
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\MyAddin11.Connect]
"FriendlyName"="MyAddin11"
"Description"="Simple AddIn11"
"LoadBehavior"=dword:00000003
b. for VS 2005 addin
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\MyAddin20.Connect]
"FriendlyName"="MyAddin20"
"Description"="Simple AddIn20"
"LoadBehavior"=dword:00000003

After starting Word I've security message about unsigned mscoree.dll.
I've decided to run untrusted macro but nothing happens (message box for
my addins (2.0 and 1.1) is not displayed).

I've tried following steps:
1. changing
[HKEY_CLASSES_ROOT\CLSID\<clsid>\InprocServer32]
from @="mscoree.dll" to @="C:\windows\system32\mscoree.dll"
2. adding app.config files for addins with
<startup><supportedRuntime ..../><requiredRuntime .../></startup>

After installing .Net 1.1 framework addin created in VS 2003 is working.

After installing Word 2003 addin created with VS 2005 is working in Word
2002 :):):):)

What is wrong ???
How deploy managed addin created with .Net 2.0 under Word 2002 witout
Word 2003 ?


Thx 4 help
 

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