Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open file #116

Open
HolyOne opened this issue Apr 8, 2023 · 0 comments
Open

Cannot open file #116

HolyOne opened this issue Apr 8, 2023 · 0 comments

Comments

@HolyOne
Copy link

HolyOne commented Apr 8, 2023

When I export this tree to gedcom 7 format, the library cant open it
It has no problem opening if I export in gedcom5 format

sample.zip

Here is the error

System.ArgumentOutOfRangeException HResult=0x80131502 Message=Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') Source=System.Private.CoreLib StackTrace: at System.ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessException() at System.Collections.Generic.List1.get_Item(Int32 index)
at GeneGenie.Gedcom.Parser.GedcomRecordReader.ReadSourceRecord()
at GeneGenie.Gedcom.Parser.GedcomRecordReader.Parser_TagFound(Object sender, EventArgs e)
at GeneGenie.Gedcom.Parser.GedcomParser.GedcomParse(String data)
at GeneGenie.Gedcom.Parser.GedcomRecordReader.ReadGedcom(String gedcomFile)
at GeneGenie.Gedcom.Parser.GedcomRecordReader.CreateReader(String gedcomFilePath)
at WebTree.Code.Service.FamilyTreeReader.Load() in G:\Projects\WebTree\WebTree\Code\Service\FamilyTreeReader.cs:line 33
at WebTree.Code.Service.FamilyTreeReader..ctor(IWebHostEnvironment _env, IOptions1 _settings) in G:\Projects\WebTree\WebTree\Code\Service\FamilyTreeReader.cs:line 26 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired)
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.DefaultPageModelFactoryProvider.<>c__DisplayClass3_0.b__0(PageContext pageContext)
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.CreateInstance()
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.d__21.MoveNext()

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant