An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in aotoc.dll

An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in aotoc.dll

Additional information: Invalid key

When i am trying to rund the project i got the above mentioned errors

Rakesh




Answer this question

An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in aotoc.dll

  • Sephiroth_

    When i am using TOC control which is ocx control in vb. I have migrated it in vb.net .

    when i use this in c# project i got this exception.

    'System.Runtime.InteropServices.COMException' occurred in aotoc.dll

    Additional information: Invalid key

    Rakesh Malik



  • GuyFawkes

    Hi Micheal Taylor,

    thanks for the help

    It is solved now.

    Rakesh Malik



  • R Raghu

    Rakesh Malik wrote:

    When i am using TOC control which is ocx control in vb. I have migrated it in vb.net .

    when i use this in c# project i got this exception.

    'System.Runtime.InteropServices.COMException' occurred in aotoc.dll

    Additional information: Invalid key

    Rakesh Malik



  • jebrown

    MichaelL Taylor

    Thanks

    it is done



  • furjaw

    So did you solve your problem or are you still needing help If you ported it to .NET then I'd look for any usage of a dictionary or hash table. If it is a .NET control then hook the debugger up to it so you can debug the issue.

    Michael Taylor - 12/5/06


  • Jeanne P

    I assume that aotoc.dll is part of your code then. The exception is occuring during a COM call. Evidently an invalid key (perhaps a dictionary key) is being used and the COM method being invoked is throwing an exception. You need to evaluate the method you're calling and resolve the issue.

    Michael Taylor - 11/30/06


  • An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in aotoc.dll