Add-In did run, won't after trying under Visual Studio

D

David Thielen

Hi;

I have an Add-In, written in C# with a shim, that runs fine on all
computers. I run it from Visual Studio fine on my computer and run a release
version that I install using an install program on test & customer machines.
It runs fine.

I copied the solution over to a test machine because I need to get the
Debug.Writeln() output from it for an error situation (fails calling VJ# from
C# if .NET 2.0 is also installed). When I built it, it said it had an error
registering it for COM (or something like that).

I tried running it under the debugger anyways and Word exited immediately.
No messages, no dropping to the debugger - it just exited.

So I went back to trying to run Word without Visual Studio. It would again
crash immediately if I told it to load the Add-In (it prompted me as the
Add-In had crashed Word previously). I finally said Yes to start without
loading my Add-In. Word then ran fine.

However, I cannot get it to run my Add-In again. I uninstalled it, rebooted
the system, then re-installed the Add-In using the installer that has worked
100% on every machine including this test machine.

It's installed in the directory. The registry settings are all correct. But
if I go to add it using Tools, COM Add-Ins..., nothing - it fails silently.
And unlike the standard shim code, I have MessageBoxes that pop up for any
error in the shim - so it's like the shim code is never being called.

HELP!!!!!
 
D

David Thielen

I now have it building under Visual Studio. The registry looks identical to
my development machine (I switched the Add-In entry to point to the built C#
dll). But when I run it - no Add-In.

??? - thanks - dave
 
D

David Thielen

Ok, I have this fixed - sort of. First, I forgot to reduce security in Word
as the debug build is not signed. That got it working when running directly
from Word (no VIsual Studio).

Other problem in a new post.

thanks - dave
 

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