By Jeff Pagley - 1/26/2013
After I upgraded to v1.7.6 and VS 2012, I am getting this error when I click the BO Mapper from the menu:
NotImplementedException Value does not fall within the expected range.
Source :
Stack Trace:
at Microsoft.VisualStudio.CSharp.Services.Language.Interop.IProject.CreateFileCodeModelThroughProjectRoot(String FileName) at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CodeModelProjectCache.FindOrCreateItem(FileName fileName) at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CodeModelRoot.CreateFileCodeModel(FileName fileName) at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CCodeElementFactory.CreateCodeElementFromTypeRef[T](CSharpType pTypeRef, SourceFileParseTree pData, TypeDeclarationNode pInsertNode) at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CExtNamespaceCollection.<>c__DisplayClass7.<GetChildren>b__5(KeyValuePair`2 pair) at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext() at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CExtNamespaceCollection.GetChildren(CodeModelRoot root, CSharpNamespace ns) at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CExtNamespaceCollection..ctor(CodeModelRoot root, CExtCodeNamespace parent, CSharpNamespaceReference namespaceDefinition) at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CExtNamespaceCollection.Create(CodeModelRoot root, CExtCodeNamespace parent, CSharpNamespaceReference namespaceDefinition) at Microsoft.VisualStudio.CSharp.Services.Language.CodeModel.CExtCodeNamespace.get_Members() at EnvDTE.CodeNamespace.get_Members() at MicroFour.StrataFrame.Extensibility.ExtensibilityBasics.ᜀ(CodeElement A_0, Project A_1, String A_2, Boolean A_3) at MicroFour.StrataFrame.Extensibility.ExtensibilityBasics.GetAvailableClasses(Project Prj, Boolean IncludeReferences, Boolean IsWebProject, String BaseClassName, Boolean ParseNestedTypes) at MicroFour.StrataFrame.Extensibility.ExtensibilityBasics.GetAvailableBusinessObjects(Project Prj, Boolean IncludeReferences, Boolean IsWebProject) at MicroFour.StrataFrame.AddIns.PartialClassBuilderDialog.ᜋ()
Please help.
Thanks,
Jeff
|
By Jeff Pagley - 1/26/2013
After some additional testing, the error seems to be random. Sometimes I get the error after starting my project in VS 2012 and sometimes I don't. If I get the error, I restart VS 2012 and it goes away.
|
By StrataFrame Team - 1/26/2013
Hrm, Jeff, I've never run into that error on VS 2012. Do you have any non-coding projects in your solution? Like a SQL Server Data Project, or a Setup Project, or anything that isn't a standard CS or VB application or assembly? The error is coming from when it walks the tree of projects to find all of the business objects that are visible.
|
By Jeff Pagley - 1/27/2013
Hi Ben,
After doing some more testing, I was able to recreate the error. The error occurs when I launch my solution and it loads a SF form or SF user control in the designer on startup. The error does not occur when I launch my solution and it loads any other type of non-strataframe form or user control in the designer on startup.
Jeff
|
By StrataFrame Team - 1/27/2013
Thanks for the repro info, Jeff. I'll take a look at it.
|
By Ivan George Borges - 1/27/2013
Hi Jeff.
Have you tried running VS2012 as "Administrator"?
|
By Jeff Pagley - 1/27/2013
I am running VS 2012 as an administrator. Also, I have done a bit more testing and I found the problem occurs ONLY when a SF BO is part of the SF form or SF user control. If there is not a SF BO on the SF form or SF user control, the error does not occur. I hope this helps!
|
|