Skip to content

Async task failed 'DteMiscProjectItem' #182

Description

@PaladinSys

Getting exceptions from LHM when selecting 'goto net message' in Build/output window.

image

LHM log:
2023-10-22 14:23:26,792 [ERROR] LicenseHeaderManager.Utils.Extensions: Asynchronous Task failed
System.Runtime.InteropServices.COMException (0x80004005): Cannot access a disposed object.
Object name: 'DteMiscProjectItem'.
at Microsoft.VisualStudio.CommonIDE.Solutions.Dte.IdeAutomationObject1.ThrowIfZombie() at Microsoft.VisualStudio.CommonIDE.Solutions.Dte.DteMiscProjectItem.get_FileNames(Int16 Index, String& lpbstrReturn) at Microsoft.VisualStudio.CommonIDE.Solutions.Dte.IdeAutomationObject1.<>c__231.<RunOnMainThreadHr>b__23_0(OutHrFunc1 innerFunc)
at LicenseHeaderManager.Utils.Extensions.IsOpen(ProjectItem item) in C:\Build\1776828f99d31c99\LicenseHeaderManager.Shared\Utils\Extensions.cs:line 216
at LicenseHeaderManager.Utils.Extensions.GetContent(ProjectItem item, Boolean& wasAlreadyOpen, ILicenseHeaderExtension extension) in C:\Build\1776828f99d31c99\LicenseHeaderManager.Shared\Utils\Extensions.cs:line 170
at LicenseHeaderManager.LicenseHeadersPackage.d__63.MoveNext() in C:\Build\1776828f99d31c99\LicenseHeaderManager.Shared\LicenseHeadersPackage.cs:line 406
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at LicenseHeaderManager.Utils.Extensions.<g__ForgetAwaited|9_0>d.MoveNext() in C:\Build\1776828f99d31c99\LicenseHeaderManager.Shared\Utils\Extensions.cs:line 272
2023-10-22 14:23:27,552 [ERROR] LicenseHeaderManager.Utils.Extensions: Asynchronous Task failed
System.Runtime.InteropServices.COMException (0x80004005): Cannot access a disposed object.
Object name: 'DteMiscProjectItem'.
at Microsoft.VisualStudio.CommonIDE.Solutions.Dte.IdeAutomationObject1.ThrowIfZombie() at Microsoft.VisualStudio.CommonIDE.Solutions.Dte.DteMiscProjectItem.get_FileNames(Int16 Index, String& lpbstrReturn) at Microsoft.VisualStudio.CommonIDE.Solutions.Dte.IdeAutomationObject1.<>c__231.<RunOnMainThreadHr>b__23_0(OutHrFunc1 innerFunc)
at LicenseHeaderManager.Utils.Extensions.IsOpen(ProjectItem item) in C:\Build\1776828f99d31c99\LicenseHeaderManager.Shared\Utils\Extensions.cs:line 216
at LicenseHeaderManager.Utils.Extensions.GetContent(ProjectItem item, Boolean& wasAlreadyOpen, ILicenseHeaderExtension extension) in C:\Build\1776828f99d31c99\LicenseHeaderManager.Shared\Utils\Extensions.cs:line 170
at LicenseHeaderManager.LicenseHeadersPackage.d__63.MoveNext() in C:\Build\1776828f99d31c99\LicenseHeaderManager.Shared\LicenseHeadersPackage.cs:line 406
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at LicenseHeaderManager.Utils.Extensions.<g__ForgetAwaited|9_0>d.MoveNext() in C:\Build\1776828f99d31c99\LicenseHeaderManager.Shared\Utils\Extensions.cs:line 272

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions