Running Add-In from VS2003 Crashes Outlook

G

Guest

[Posted a week ago with no response...please note my MSDN Universal
subscription. Or just feel a twinge of compassion ;)]

Hello. I have been developing a small C# add-in for Outlook 2003. I have
recently run into a situation where attempting to run my add-in from VS 2003
results in a hard crash of Outlook (in both debug and release modes). I have
attempted to run other add-ins, with the same result. I have reinstalled the
Office 2003 PIAs (which was a, well, you get the joke). I have confirmed that
the registry settings in both LM and CU for Outlook are correct, and that
there are no recovery hashes that Outlook has made of my add-in. All to no
avail.

The strangeness that I have noticed is that though trying to start Outlook
from VS always results in a crash, the add-in that I last attempted to build
in VS will run fine when I start Outlook on its own. So I can confirm that my
code runs correctly, but I have no idea how ;)

Before I take the hard step of my dev box, can anyone explain this and give
an easy to medium-hard fix? TIA.
 
H

Helmut Obertanner

Hello donald,

Maybe you have the .Net framework 2.0 on your new machine installed.
I know there is an issue with outlook and .Net addIns when both versions
of the runtimes are installed.
You can avoid this problem when you place a file named
outlook.exe.config in the path of outlook.exe with the following
content:

<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
</startup>
</configuration>

Also make sure that you have installed the Primary Interop Assemblys for
Office on the new machine.
Hope this helps.


with regards / mit freundlichen Grüßen


Helmut Obertanner
X4U electronix
web: www.x4u.de


.... X4U rocks !
 
N

Noel Weichbrodt

Helmut,
Thanks for the guess. You were correct, and the .config file fixes
the problem. Thank you. I spent two days attempting to diagnose the
problem, and your patch took less than a minute. Danke.

--Noel
 

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