.net 2.0 problems

  • Thread starter Thread starter Rog
  • Start date Start date
R

Rog

I developed my addin in Visual Studio 2003 using .net 1.1, now when I
try to run my addin on a machine that has .net 2.0 it does not load and
in fact the load behavior changes from 3 to 2 even though it works fine
on a machine with .net 1.1 installed.
Any ideas?
Thanks
 
Hello,


1. Are there other add-ins developed on .net framework 2.0 installed on this
machine?
2. Have you cheked your add-in in the disabled items?
3. Have you installed the hotfix for framework 2.0 that allows to run shared
add-in?
4. Do you have any msm modules in your setup project?


Regards from Belarus,
Eugene E. Starostin
 
have not installed the .net 2.0 framework hotfix.
Can you point me to the url for this?
Thank you very much for your help.
 
So I tool my project from VS 2003 and opened it in VS 2005. Installed
these updates, but it does not seem to help. As a side note, I am using
a Shim in order to load my add-in. Is this a problem.
Each time I start Outlook the Loadbehavior gets reset from 3 to 2.
Any ideas?
Rog
 
I don't know if this will help you or not but....
Outlook is "dumb". It cannot figure out which version of the .NET
framework it should use to load your .NET addin, and will always use
the newest version. You stated that your addin was written with VS.NET
2003 which means that it works with the .NET framework v1.1 However,
Outlook, being "dumb" is going to try to use the .NET framework 2.0 to
load your .NET 1.1 addin. This obviously will not work. You need to
tell Outlook which version of the .NET framework it should use. To do
this, make a new file named "Outlook.exe.config" and put it in the same
directory as your Outlook.exe. Inside of this file enter:

<configuration>
<startup>
<requiredRuntime version="v1.1.4322" safemode="true"/>
</startup>
</configuration>

This will tell Outlook which version of the .NET framework it should
use when trying to use a .NET addin. You can obviously change the
version value to anything valid. The reason your load behavior is
changing is likely because your addin is failing because Outlook is
trying to open it with the wrong version of the framework. Putting
this file in the proper place should solve your problem. (If you have
converted your addin to VS.NET 2005, you have opened up a whole
different can of worms. Depending on what your addin does, its NOT a
direct conversion, it takes some work to make it work properly.)

Kelly Johnson
 
Thanks Kelly,
Based on your recommendation. I installed the version of the plug-in
that was developed in VS 2003. And then I put the Outlook.exe.config
file into the proper location and the add-in is still have the Load
Behaviro change.
Does the Shim have anything to do this problem?
Thanks
 
This might be a stupid question, but is the .NET framework 1.1
installed on the machine you are trying to get this to work on?
(It seems like most of time when I am trying to figure out why
something isn't working for me, its something totally obvious and
simple, and thus I always overlook it until I have spent hours and
hours trying to figure it out).
 
That is a good question, but yes it was installed on this machine.
If you want to make your add-in totally compatible with .NET 2.0 can
you still use a SHIM what more do you need to do ?
Rog
 
Back
Top