I inherited a customer facing asp.net web application, in which customers can upload files to our file servers. It works fine for all users except for one individual. Two weeks ago she tried to upload a file and received the following error:
Object reference not set to an instance of an object.
The error goes on to describe what line of code causes the error. However, this is in our production, external environment and I have debugging turned off. So this information, I am assuming is more or less bunk (the lines of code it the error is reporting really don’t make sense to me as being the cause of the error).
I know something is being accessed that is null, but I have not been able to reproduce the error in my development environment and it works fine for the rest of our user base. The same user experienced the error two weeks ago, and then tried again yesterday with a different file and received the same error.
I know this all sounds very vague, but I guess my question is does anyone have any good ideas of how to trace the user’s execution to the error so that I can get an accurate look of what line of code is REALLY causing it? Like I said I have not been able to reproduce the error, in dev, in production, internally, externally, and no other users have had a problem. My only idea was to publish a debug release to our customer facing production site but I don’t really want to do that. Thanks!
.PDBfiles, ones that don’t match won’t be any use..PDBfiles under version-control along with your releaseables, it makes it a lot easier to test issues if you have both, along with the code for that specific version (i.e. treat your compiled output and .pdb’s as you would your source).NullReferenceExceptionbeing caused by your logging code.