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

Logger Initialization issue -> System.TypeInitializationException: The type initializer for 'Gemstone.Diagnostics.Logger' threw an exception. #4

Open
desuryan opened this issue Sep 25, 2024 · 0 comments

Comments

@desuryan
Copy link

I am trying to create a sample project by using the library. It shows the below error while I am initializing a new instance of Gemstone.PhasorProtocols.MultiProtocolFrameParser class. The error message is as below.

Unhandled exception. System.TypeInitializationException: The type initializer for 'Gemstone.PhasorProtocols.MultiProtocolFrameParser' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Gemstone.Diagnostics.Logger' threw an exception.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Gemstone.Diagnostics.Logger..cctor()
--- End of inner exception stack trace ---
at Gemstone.Diagnostics.Logger.AppendStackMessages(String key, String value)
at Gemstone.PhasorProtocols.MultiProtocolFrameParser..cctor()
--- End of inner exception stack trace ---
at Gemstone.PhasorProtocols.MultiProtocolFrameParser..ctor()
at DeviceToData.Program.Main(String[] args) in C:\Users\20327182\source\repos\pmu-adapter\pmu-adapter\Program.cs:line 15

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