Cannot debug Visio Addon that calls C#

M

Michel LAPLANE

Can anyone help me.
I have develop a C++ application (in fact a Microsoft Visio Addon Library)
that calls a C# library.
I was using VS 2003 and i was able to debug and trace the C++ unmanaged code
and the C# managed code using the "Mixte" type switch debugger available in
the options dialog box of my projet.

I have installed VS2005.

Now if i try to debug, VS2003 crash when entering in managed C# code.

I have download the VS2003 SP1 and installed it.

Know when i try to debug, VS2003 don't want to launch my application. It
tell's me that he cannot launch the program that is in the Command line of
the debugger (the command line try to launch Microsoft Visio that load my
application dll).
 
M

Michel LAPLANE

Hi Guys, i have found the problem.
When .NET framework 2.0 is installed (automatically installed with VS2005),
when debugging even with VS2003, some .NET 2.0 file are loaded causing the
crash.

The .NET Framework 1.1 SP1 correct the problem for VS2003 but when launching
Visio in the startup command of the debug options Dialog box it seems that
VS2003 try to launch Visio with .NET Framework 2.0 wich Visio 2003 does not
support.

So in last solution before burried, i have try to add a config file to
Visio.exe itself to force it to use .NET Framework 1.1 and it work's.
Strange isn't it. But it works.

Here is the content of the Visio.exe.config file :

<?xml version = "1.0"?>
<configuration>
<startup>
<requiredRuntime version="v1.1.4322"/>
</startup>
</configuration>
 

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