BO Mapper error after upgrading to VS 2012 and v1.7.6


Author
Message
Jeff Pagley
Jeff Pagley
StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
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!
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Jeff.

Have you tried running VS2012 as "Administrator"?
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Thanks for the repro info, Jeff.  I'll take a look at it.
Jeff Pagley
Jeff Pagley
StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
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
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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.
Jeff Pagley
Jeff Pagley
StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
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. 
Jeff Pagley
Jeff Pagley
StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
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
Tags
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search