RE: VisualStudio cannot debug Add-In if .NET 2.0 runtime installed

From: Peter Huang (v-phuang_at_online.microsoft.com)
Date: 01/20/05


Date: Thu, 20 Jan 2005 09:38:10 GMT

Hi

Based on my test, the winword.exe will load the clr 2.0 as the runtime by
default, it seems that we need to use the winword.exe.config to set the
startup runtime to 1.1 so that the debugger will work or we can use the
vs.net 2005 ide to do the debugger.

<configuration>
   <startup>
      <supportedRuntime version="v1.1.4322"/>
   </startup>
</configuration>

If we specifed the appconfig, the code line below will give us 1.1 or we
will get 2.0 if 2.0 is installed.

public void OnConnection(object application, Extensibility.ext_ConnectMode
connectMode, object addInInst, ref System.Array custom)
{
        applicationObject = application;
        addInInstance = addInInst;
        System.Diagnostics.Debug.WriteLine(System.Environment.Version.ToString());
}

Best regards,

Perter Huang
Microsoft Online Partner Support

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



Relevant Pages

  • Re: Threading
    ... worry about the sequential work since the CLR will take care of it..... ... Microsoft Online Support ... snap on a debugger break point inside Button1_Clickand see ... |> to hold reference to operating system thread. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Development / Debugging tools - advice needed.
    ... >> I need to be able to load a raw ... >> debugger but not necessarily GUI. ... > DDD is merely a gdb wrapper. ... >> file if it is not in linux executable ...
    (comp.os.linux.development.system)
  • Re: Finding a resource leak, is it the background thread or something else?
    ... are not under control of the GC, they are managed by the CLR, the CLR will ... In order to watch the real count, ... is not a debugging tool. ... native debugger like nsdb or windbg. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Can I debug and see where I am in an website?
    ... and the debugger will stop at those. ... Chicken Salad Surgeon ... It will load the pages and code ... in use, or that the DLLs are debuggable. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Windows CE 6.0 Kernel Debugger OS Awareness
    ... The same loader worked with CE 5.0 and PB debugger worked with no ... section inside my nk.bin and now PB reports the correct address for ... but the breakpoint is still hit on each module load. ... I run romimage enabling all its output (setting ri_suppress_info to ...
    (microsoft.public.windowsce.platbuilder)

Loading