Runtime Error - Open XAML file with "Open With Text Editor"

I'm receiving this error when opening a XAML file by right clicking on it and using the "Open With" menu and selecting "Source Code (Text) Editor".  I'm using VS2010.

Any ideas?  Here's the exception message the popped up:

---------------------------
ReSharper – Runtime Error – Technical Data
---------------------------
JetBrains ReSharper has encountered a runtime error.
Technical data follows.
Hint: Ctrl+C copies the text of system message boxes to Clipboard.
________________________________________________________________

Exception of type 'System.OutOfMemoryException' was thrown.



--- EXCEPTION #1/2 [OutOfMemoryException]

ExceptionPath = Root.InnerException

ClassName = System.OutOfMemoryException

HResult = COR_E_OUTOFMEMORY=E_OUTOFMEMORY=8007000E

Source = JetBrains.Platform.ReSharper.Metadata

StackTraceString = “

     at JetBrains.Metadata.Reader.Impl.MetadataTypeInfo.GetMethods()

     at JetBrains.Metadata.Reader.Impl.MetadataAssembly.GetMethodFromToken(MetadataToken methodToken, TypeDecodeContext context)

     at JetBrains.Metadata.Reader.Impl.MetadataAssembly.GetMethodFromToken(MetadataToken methodToken)

     at JetBrains.Metadata.Reader.Impl.MetadataEvent.get_Adder()

     at JetBrains.ReSharper.Psi.Impl.Reflection2.CompiledMembersBucket..ctor(CompiledTypeElement owner, IMetadataTypeInfo info, IReflectionBuilder builder, Boolean hasExtensionMethods, Boolean preloaded)

     at JetBrains.ReSharper.Psi.Impl.Reflection2.MemberOwner.ProduceBucketInternal(MemberOwner owner, IMetadataAssembly assembly)

     at JetBrains.ReSharper.Psi.Impl.Reflection2.MemberOwner.<ProduceBucket>b__1f(MemberOwner x, IMetadataAssembly y)

     at JetBrains.ReSharper.Psi.Impl.Reflection2.CompiledTypeElement.ExecuteWithMetadataAssembly[TParam,TRes](Func`3 action, TParam param)

     at JetBrains.ReSharper.Psi.Impl.Reflection2.MemberOwner.ProduceBucket(KeyValuePair`2 pair)

     at JetBrains.ReSharper.Psi.Impl.Reflection2.MemberOwner.<.ctor>b__1d(KeyValuePair`2 x)

     at JetBrains.Util.Caches.WeakParametrizedCachedValue`3.GetOrCreate(TParameter parameter)

     at JetBrains.ReSharper.Psi.Impl.Reflection2.MemberOwner.<GetMembers>d__21.MoveNext()

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.AddAllMembersExceptConstructors(ITypeElement element, LocalList`1& members)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.<GetOwnMembersSymbolTable>b__2(SymbolTableMode m, ITypeElement element, IPsiModule psiModule)

     at JetBrains.ReSharper.Psi.Impl.Resolve.SymbolTableCache.GetOrCreate(OneToListMap`2 cache, ITypeElement element, SymbolTableMode mode, IPsiModule requestFromModule, SymbolTableFactory factory)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.GetOwnMembersSymbolTable(ITypeElement typeElement, SymbolTableMode mode)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.AddTypeMembers(IDeclaredType type, Int32 level, Nullable`1 inheritanceLevel, SymbolTableMode mode, HashSet`1 visited)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.AddDeclarationsForProperDeclaredType(IDeclaredType type, Int32 level, Boolean addObjectMembersForInterfaces, SymbolTableMode mode, IPsiModule module, HashSet`1 visited)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.<GetSymbolTableByTypeElement>b__0(SymbolTableMode m, ITypeElement element, IPsiModule psiModule)

     at JetBrains.ReSharper.Psi.Impl.Resolve.SymbolTableCache.GetOrCreate(OneToListMap`2 cache, ITypeElement element, SymbolTableMode mode, IPsiModule requestFromModule, SymbolTableFactory factory)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.GetSymbolTableByTypeElement(ITypeElement typeElement, Int32 level, SymbolTableMode mode, IPsiModule module)

     at JetBrains.ReSharper.Psi.Impl.Types.DeclaredTypeBase.GetSymbolTable(IPsiModule module)

     at JetBrains.ReSharper.Psi.Xaml.Impl.Tree.References.XamlTypeReference.GetSymbolTable(SymbolTableMode mode)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.GetSymbolTableByReference(IQualifiableReference reference, SymbolTableMode mode)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.QualifiableCheckedReferenceBase`1.GetReferenceSymbolTable(Boolean useReferenceName)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.QualifiableCheckedReferenceBase`1.ResolveWithoutCache()

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.TreeReferenceBase`1.<.cctor>b__0(TreeReferenceBase`1 reference)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.ResolveWithCache[T](T reference, Func`2 resolveWithoutCache)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.TreeReferenceBase`1.Resolve()

     at JetBrains.ReSharper.Psi.Xaml.Impl.Tree.References.XamlValueReferenceData.CalculateExpectedType()

     at JetBrains.ReSharper.Psi.Xaml.Impl.Tree.References.XamlValueReferenceData.<GetExpectedType>b__6(ITreeNode _, XamlValueReferenceData self)

     at JetBrains.ReSharper.Psi.CachedPsiValue`1.GetValue[TNode,TState](TNode element, TState state, Func`3 calculator)

     at JetBrains.ReSharper.Psi.Xaml.Impl.Tree.References.XamlValueReferenceData.GetExpectedType()

     at JetBrains.ReSharper.Psi.Xaml.Impl.Tree.References.XamlTypeReference.GetExpectedTypesImpl(Boolean isSmart)

     at JetBrains.ReSharper.Psi.Xaml.Impl.Tree.References.XamlTypeReference.GetCommonFilters(FilterType filterType)

     at JetBrains.ReSharper.Psi.Xaml.Impl.Tree.References.XamlTypeReference.<>c__DisplayClass9.<CoreResolve>b__8(IReference reference, IReferenceResolveContext referenceResolveContext)

     at JetBrains.ReSharper.Psi.Xaml.Impl.Resolve.XamlResolveCache.GetCachedResolveResult(IReference reference, IReferenceResolveContext context, ResolveDelegate resolver)

     at JetBrains.ReSharper.Psi.Xaml.Impl.Resolve.XamlResolveCache.GetResolveResult(IReference reference, IReferenceResolveContext context, ResolveDelegate resolver)

     at JetBrains.ReSharper.Psi.Xaml.Impl.Tree.References.XamlTypeReference.CoreResolve(ISymbolTable symbolTable)

     at JetBrains.ReSharper.Psi.Xaml.Impl.Tree.References.XamlTypeReference.Resolve(ISymbolTable symbolTable, IAccessContext context)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.QualifiableCheckedReferenceBase`1.ResolveWithoutCache()

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.TreeReferenceBase`1.<.cctor>b__0(TreeReferenceBase`1 reference)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.ResolveWithCache[T](T reference, Func`2 resolveWithoutCache)

     at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.TreeReferenceBase`1.Resolve()

     at JetBrains.ReSharper.Psi.Xaml.Impl.Tree.XamlObjectElementDeclaration`1.get_Type()

     at JetBrains.ReSharper.Psi.Xaml.Impl.DeclaredElements.XamlCachedTypeMemberBase.get_Type()

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Check(IDeclaration declaration, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.FileChecker.Processor(ITreeNode node, CheckingContext context)

     at JetBrains.ReSharper.Daemon.Specific.NamingConsistencyCheck.NamingConsistencyCheckStage.CheckingProcess.Execute(Action`1 commiter)

     at JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.<>c__DisplayClasse.<DoHighlighting>b__5(IDaemonStage stage)





--- Outer ---



--- EXCEPTION #2/2 [LoggerException]

Message = “Exception of type 'System.OutOfMemoryException' was thrown.”

ExceptionPath = Root

ClassName = JetBrains.Util.LoggerException

InnerException = “Exception #1 at Root.InnerException”

HResult = COR_E_APPLICATION=80131600

StackTraceString = “

     at JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.<>c__DisplayClasse.<DoHighlighting>b__5(IDaemonStage stage)

     at JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.<>c__DisplayClass19.<DoHighlighting>b__7(IDaemonStage stage)

     at JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.<>c__DisplayClass19.<>c__DisplayClass1b.<DoHighlighting>b__8()

     at JetBrains.Application.Threading.MultiCoreFibersPool.Fibers.<>c__DisplayClassa.<EnqueueJobImpl>b__8()

     at JetBrains.Application.Threading.MultiCoreFibersPool.FiberProc()

     at JetBrains.Util.Logger.Catch(Action action)

     at JetBrains.Application.Threading.MultiCoreFibersPool.<.ctor>b__1()

     at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

     at System.Threading.ThreadHelper.ThreadStart()






---------------------------
OK   
---------------------------

2 comments
Comment actions Permalink

Hi Tyler,

This is a general OutOfMemory, which may occur because of hardware and OS configuration. This is a known to occur on Windows XP (mostly), as well as other 32-bit OS with low amount of RAM and Virtual Memory set up in the system.

Do you use VS2010 on Windows XP 32 bit?
Thanks.

0
Comment actions Permalink

Hey Alex,

Yep, I was.  I did restart Visual Studio and it seems like it has been okay since then.  We will be upgrading to Windows 7 here soon so it's probably a non-issue for me now.

Thanks!

Tyler

0

Please sign in to leave a comment.