Home

Why do I get a NULL reference exception?

var _athenaProviderConnectionString =
ConfigurationManager.ConnectionStrings["CPPAthenaProviderConnectionString"].ConnectionString;
_athenaProviderConnectionString.Dump();

I edited LinqPad.exe.config to contain




When I try to run this as a set of statements or wrapped in a program I get a blue squiggly line under var with a message that a null reference exception was thrown. Ideas on what I am doing wrong?

Kevin

Comments

Sign In or Register to comment.