K
Kari Yli-Kuha
Hi all,
I've been banging my head to this problem for a couple of days now
and I can't seem to get anything out of it.
The problem started when I upgraded from VS 2003 to VS 2005.
We used to have a working COM Add-in built using C# and
..NET Framework 1.1, compiled with VS 2003, targeted at
Visio 2003 (visio11).
I then installed VS 2005 and replaced .NET Framework 1.1 with
..NET Framework 2.0, upgraded our VS project and thought that
everything is OK - I could install and run our app locally.
BUT, when I installed the application (.msi) to a machine which
doesn't have VS, our app failed to start. And, of course, Visio
gave no error messages, just dropped the LoadBehavior from
3 to 2 in HKLM Visio.Addins.
I then made a test program which did essentially the same as
Visio - launched the app.Connect using IDTExtensibily2 interface
to be able to catch the possible exception during launch.
The exception I caught said:
"Could not load file or assembly 'Microsoft.Office.Interop.Visio,
Version=12.0.0.0, ... etc
The interop assembly dll is installed with the application, but it's
of course version 11.0.0.0, because that's for Visio 2003, and
12.0.0.0 is supposed to be (?) for Visio 2007.
Does anyone have an idea?
regards,
/C
I've been banging my head to this problem for a couple of days now
and I can't seem to get anything out of it.
The problem started when I upgraded from VS 2003 to VS 2005.
We used to have a working COM Add-in built using C# and
..NET Framework 1.1, compiled with VS 2003, targeted at
Visio 2003 (visio11).
I then installed VS 2005 and replaced .NET Framework 1.1 with
..NET Framework 2.0, upgraded our VS project and thought that
everything is OK - I could install and run our app locally.
BUT, when I installed the application (.msi) to a machine which
doesn't have VS, our app failed to start. And, of course, Visio
gave no error messages, just dropped the LoadBehavior from
3 to 2 in HKLM Visio.Addins.
I then made a test program which did essentially the same as
Visio - launched the app.Connect using IDTExtensibily2 interface
to be able to catch the possible exception during launch.
The exception I caught said:
"Could not load file or assembly 'Microsoft.Office.Interop.Visio,
Version=12.0.0.0, ... etc
The interop assembly dll is installed with the application, but it's
of course version 11.0.0.0, because that's for Visio 2003, and
12.0.0.0 is supposed to be (?) for Visio 2007.
Does anyone have an idea?
regards,
/C