What happened to Debug Mode: Program

J

jojobar

In our VS 2003 Word AddIn project, we had a Program Debug mode that started
Word and then allowed us to step through the AddIn code. I find no such mode
with VS 2005. When I set the "Start External Program" to MSWORD.EXE and try
to debug, I get this message(more or less):

1. The application you are trying to debug uses a version of the Microsoft
..NET Framework that is not supported by the debugger.

2. Debugger made incorrect assumption about Framework version your
application is going to use.

3. Framework version specified for debugging is incorrect.

Does anyone know how to set up VS to debug an Office COM AddIn?
 
P

Peter Huang [MSFT]

Hi

Based on my test, I can not reproduce the problem.
I just set the "Start External Program" to the path of Winword.exe in the
VS.NET 2005.
But I think you can check which version of framework you are using
currently in Winword.exe.

You can use supportedRuntime element in the winword.exe.config and put it
into the office dir to make sure the winword.exe is using .NEt 2.0.
<supportedRuntime> Element
http://msdn2.microsoft.com/en-us/library/9w519wzk.aspx


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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