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

An unhandled exception of type 'System.MethodAccessException' occurred in ChoETL.NACHA.NETStandard.dll #57

Open
chatbot702107 opened this issue Nov 30, 2023 · 0 comments

Comments

@chatbot702107
Copy link

Upon hitting this line of code, seeing this error below. Any ideas on what is going on with this?

Line of code blowing up is this (trying to use this ChoETL in a .NET 7 console app by the way):
foreach (var data in new ChoNACHAReader(filename))

Exception Type: System.MethodAccessException
TargetSite: Void .ctor(System.String, ChoETL.NACHA.ChoNACHAConfiguration)
Message: Attempt by method 'ChoETL.NACHA.ChoNACHAReader..ctor(System.String, ChoETL.NACHA.ChoNACHAConfiguration)' to access method 'ChoETL.ChoFileRecordConfiguration.GetEncoding(System.String)' failed.
Data: System.Collections.ListDictionaryInternal
HelpLink: NULL
Source: ChoETL.NACHA.NETStandard
HResult: -2146233072


An unhandled exception of type 'System.MethodAccessException' occurred in ChoETL.NACHA.NETStandard.dll
Attempt by method 'ChoETL.NACHA.ChoNACHAReader..ctor(System.String, ChoETL.NACHA.ChoNACHAConfiguration)' to access method 'ChoETL.ChoFileRecordConfiguration.GetEncoding(System.String)' failed.

@chatbot702107 chatbot702107 changed the title n unhandled exception of type 'System.MethodAccessException' occurred in ChoETL.NACHA.NETStandard.dll An unhandled exception of type 'System.MethodAccessException' occurred in ChoETL.NACHA.NETStandard.dll Nov 30, 2023
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