-
Notifications
You must be signed in to change notification settings - Fork 0
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
dynamic => NullReferenceException' in ReflectSoftware.Insight.Extensions.NLog.dll #1
Comments
Thanks, let me take a look and try to reproduce. |
Are you able to reproduce with the ReflectInsight NLog sample? |
yes, but let me clarify, these errors doesn't throws up to caller code. I just noticed issue in ReflectInsight Live Viewer and in VS output. In viewer instead of seeing expected data I seeing "Internal Exception:[NullReferenceException->Object reference not set to an instance of an object.]" So to see more information about errors I enabled 'Break When Throw' in VS (Exception settings) for NullReferenceException and SecurityException exceptions. |
Thanks for clarification. What version of ReflectInsight viewer are you using? |
hm. ok here is my Config files
NLog.config
I don't know why exception didn't appear in output window. Maybe because I use 'Break When Throw' option |
Thanks, ok let me work with this. |
I quickly just noticed in your app.config the NLog section is commented out. Could be culprit. When I get home I'll debug with your configs and see whats up. |
Thanks. |
No luck. I've modified the sample NLog application with your code and configuration and ran it on another machine which has VS 2015 and ReflectInsight Viewer 5.7.0. App runs and logs without issues.
Thanks |
Exception thrown: 'System.NullReferenceException' in ReflectSoftware.Insight.Extensions.NLog.dll
at ReflectSoftware.Insight.Extensions.NLog.NLogTarget.SendMessage(ActiveStates states, MessageType mType, LogEventInfo logEvent)
and after this exception another exception occur:
Exception thrown: 'System.Security.SecurityException' in mscorlib.dll
Additional information: Requested registry access is not allowed.
Code to reproduce:
Libraries used:
Nlog 4.4.12
Newtonsoft.Json 10.0.0.3
ReflectSoftware.Insight.Extensions.NLog 5.7.1
The text was updated successfully, but these errors were encountered: