Then you need to use the debugger better - start with the calling method, and make sure you get to the call.
Until you can get to a breakpoint that works, you can't even start looking for the null value without adding piles of logging code to your app to find out what value is null when it shouldn't be.
And sorry - but we can't do that for you!
Quote:
I do reach the method call (that is the
BLL_Configuration.readParameter() ;
line);
whenever I try to step in or step over I get the exception.
By the way , if I put a breakpoint on the first line of code
of the
readParameter
method, this is never reached.
So check three things:
1) Is there a static constructor for the BLL_Configuration class? If so, breakpoint that.
2) Does the BLL_Configuration class contain any static variables with initial values? Do any of those depend on other things? Could any of the initializers be throwing the exception?
3) Does the exception include file and / or line information? It usually does...
Remember that static initialization will occur before any static method is called, so it's very likely that the problem is somewhere there.