Shared add in issue with Excel (Debugging)

D

DeveloperX

Hi,
I've been following the tutorial found here:

http://msdn2.microsoft.com/en-US/library/aa289518(VS.71).aspx

and can't get the debugging paragraph to work.

I've Office 2003 and the PIAs installed, with Vis studio 2003,
framework 1.1.
When I hit F5 I get a dialog stating:

Error while trying to run project: Unable to start debugging.
Unable to start program ... Excel.exe.

Using the full path to Excel I can run it from Start->run.

I've made other changes too based on some googling:
In the project properties I've enabled all the debugging options at
the top, (Sql, com, etc) and enabled remote debugging and set the
remote host to be my pc. All this was done incrementally with a
rebuild and redeploy between each try.

I've even fiddled around in the DCOM settings allowing execution for
remote users (Saw that in an ASP thread where they got a similar
message).

My account has full admin priv's.

Any ideas?

Thanks
 
D

DeveloperX

Hi,
I've been following the tutorial found here:

http://msdn2.microsoft.com/en-US/library/aa289518(VS.71).aspx

and can't get the debugging paragraph to work.

I've Office 2003 and the PIAs installed, with Vis studio 2003,
framework 1.1.
When I hit F5 I get a dialog stating:

Error while trying to run project: Unable to start debugging.
Unable to start program ... Excel.exe.

Using the full path to Excel I can run it from Start->run.

I've made other changes too based on some googling:
In the project properties I've enabled all the debugging options at
the top, (Sql, com, etc) and enabled remote debugging and set the
remote host to be my pc. All this was done incrementally with a
rebuild and redeploy between each try.

I've even fiddled around in the DCOM settings allowing execution for
remote users (Saw that in an ASP thread where they got a similar
message).

My account has full admin priv's.

Any ideas?

Thanks

Right got a work around:

First issue was the shared add in wizard added some obsolete reference
to Office and when I added the reference to the PIA that also added a
reference to office (displayed as microsoft.office.core). So I removed
the wrong one and redeployed. On running Excel, my add in appeared,
previously it had not.

I then tried to do it via the F5 into debugger. No joy.
So in the onConnection method I added

System.Diagnostics.Debugger.Launch();

No on starting it launches the debugger and attaches allowing me to
step through the code :)

I'd still like to know why F5 doesn't work, but I actually quite like
fact I can edit code in one version and debug in the other, so perhaps
I'll ignore it.


Thanks
 

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