Note that there are some explanatory texts on larger screens.

plurals
  1. PODebug and Fixing ObjectDisposedException in Visual Studio 2010
    primarykey
    data
    text
    <p>When editing a XAML file I noticed the following error:</p> <pre><code>System.ObjectDisposedException occurred Message=Cannot access a disposed object. Object name: 'FileCodeModel'. </code></pre> <p>To debug this I ran another instance of Visual Studios and "Debug-> Attach to Process" to the instance of visual studio where the exception was shown.</p> <p>I was able to catch the exception in the new Instances that started that is attached to the process. I catch the following exception:</p> <pre><code>System.ObjectDisposedException occurred Message=Cannot access a disposed object. Object name: 'FileCodeModel'. Source=Microsoft.VisualStudio.CSharp.Services.Language ObjectName=FileCodeModel StackTrace: at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CFileCodeModel.GetCompilation(Boolean fBlockForParses) at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CPartialTypeCollection.EnumerateParts() at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CPartialTypeCollection.get_Count() at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CSlowSnapshot..ctor(CodeElements collection) at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CPartialTypeCollection.CreateSnapshot() at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CCollectionBase.GetEnumerator() at EnvDTE.CodeElements.GetEnumerator() at MS.Internal.VSSymbols.SymbolProvider.GetProperties(String fullName, Boolean isTypeDefinition, Boolean useCodeModel) at Microsoft.Xaml.Symbols.IXamlSymbols.GetProperties(String typeName, Boolean isTypeDefinition, Boolean useCodeModel) at MS.Internal.Design.Markup.HostedType.BuildProperties(Boolean useCodeModel) InnerException: </code></pre> <p>Anybody ever run into this exception in your XAML, and what do you do to fix it.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload