Office addin not working anymore

I

Icsu

Can anybody help me? I've developed an office addin using framework 1.1
and VSTO2003. Everything was working fine until I installed framework
2.0. From this point on my computer the is working only if after install
I manually set LoadBehavior = 3. On Client computer it install fine
but doesn't start. If I set LoadBehavior = 3 manually in registry and
launch word for example the Loadbehaivor is set back to 2. I' ve tried
all the solutions I have found in this post and on the net, but nothings
works...Has anybody resolved this issue or can anybody propose a solution...

Thanks a lot!
 
D

Dalik

I am having the same issue and I am not sure how to fix it but I will give
some things to consider. I am using VS 2005, office 2003 with SP2, XP SP2.

On my machine I created a basic addin, my addin will work just fine on
outlook and powerpoint but it will not load with the other applications.
LoadBehavior is reseting to 2 everytime. I read at another post that this
happens because there was an error loading the addin. I will mess around
with trusts and dotnet 2 configurations but I am really stuck on this one.

I have also setup a clean computer installed office 2003 with sp2, I
installed dotnet 2 and then installed my addin, and the same problem, word
doesnt work and outlook does.

Cheers,

Dalik
 
D

Dalik

Below URL links to fix for Office 2003 which could help anyone whose
been having trouble getting .NET (Visual Studio 2005) addins to work in
office 2003.

Took me ages to find this so i hope this helps some people.

http://support.microsoft.com/kb/907417#XSLTH4131120124120121120120

also, you can include the path in your VS setup as a prerequiste using

http://support.microsoft.com/kb/908002/


Good Luck!


--------------------------------------------------------------------------------
I went to the second page here and found this. I downloaded the patch and
installed it and everything so far seems to be working. I started over on my
project and copy and pasted the code and its working in word and excel which
I was having problems before.

I also installed the PIA for 2003 but this is included with 2003 you need to
install support for it during setup. Anyway this should be enough info to
get you working as it did for me.
 
I

Icsu

I already have that office 2003 installed...and is still not working...I
have made another com shim addin project for my addin and I installed my
addin. Then I tried to add the addin from <COM Addins...> command in
office, and as addin dll I had choosen the shim dll...the addin was
added but an error text was displayed at the bottom of that dialog
saying that the addin could not load due to an error. I can't figure out
how to get that error as when the addin is loading on my machine no
error appear. I can understand way...it seems that all that I have tried
is due to failure... :((
 
D

Dalik

I just reread your first post and your using VS.NET I might be wrong in this
but do you need to have VS2005 to work with dotnet2 ?

Try VS 2005 and see if this fixes your problem.
 
I

Icsu

The problem is that on the client computer has only framework 1.1 and
the addin must be for framework 1.1. I'm restricted to this. So if
anybody has resolved this problem: creating an office addin with
VSTO2003, framework1.1 & framework 2.0 (both installed on developer
machine) and visual studio 2003 tools for office please share this with
us...I have tried all the solution proposed so far and nothing seems to
work :(
 
D

Dalik

Well I am not sure on a solution for your problem but I guess you can have a
requirement to install dotnet2 on the client machines. Or just uninstall
dotnet2 on your machine and finish the program. Or use vmware for
specialized development enviroments.

If they have a problem with dotnet2 change there mind. Its very possible
the person in charge of that doesnt know what they are talking about.

I guess uninstalled dotnet2 on your machine would be the best solution till
you finish it or until a fix can be found.
 
I

Icsu

Thanks Dalik, but I finaly found the problem. With framework 2.0
installed there is no office.dll assembly installed. This dll though
exists in framework 1.1 and is installed by the VS2003. I don't have
VS2005 installed so I don't know if VS2005 installed this dll. I've
manually put in the installation kit the dll and now everything is on
the right path... Hope this helps all that have had the same problem.
Look for missing assemblies...:) Good luck!!!
 
P

pavan

Hi All,
I too faced the same problem and have pounded my head for 3 days and at
last, the good news, found a solution for this. Hey Icsu, I've
office.dll (the assembly on my m/c but i still faced the same issue).

If you are developing add-in using .net framework 2.0, there will be
issue. this is widely known, and I guess acknowledged by MS also. In
Dec 2005, MS has released a fix for this. Go to
http://support.microsoft.com/kb/908002/ and follow the steps.

hope this helps you all,
Regards,
Pavan

PS: Pls fwd this info to all those who are working on add-in (.net
2.0). I too will do the same. It was real hell for me for those 3 days.
I want others to be spared from this.
 
D

Dalik

Good find, I thought if you have Office 2003 installed it will install the
office.dll file in the GAC. Possibly the PIA will do the samething.

Congrats.

Dalik
 

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