1

I am deploying a web site written by someone else. It requires quite a lot of resouces which I am not sure I have them all. Now the site is encountering "Object reference not set to an instance of an object" error, which I belive is caused by some missing resouces.

There may be 2 kinds of situations.

  • some files are missing.
  • files are there but missing some content in it.

I am wondering if there's a way to detect what resource are being looked for when the error happend. Could IIS logging or tracing be helpful? Or any other suggestions?

Thanks.

smwikipedia
  • 61,609
  • 92
  • 309
  • 482
  • Please add the stacktrace from the thrown exception. – Martijn B Oct 29 '11 at 07:45
  • Thanks. I already got the stacktrace, but that only tells me where the exception is thrown. Since I don't have the source code, I still don't know what resource is missing. – smwikipedia Oct 29 '11 at 08:09
  • This is a difficult one because there is so little information to work with. What you could try is to load the specific assembly where the exception is thrown from, into a .net decompiler (dotPeek, reflector) and try to find the line where the exception is thrown. Maybe this would tell you what is missing or puts you in the right direction. – Martijn B Oct 30 '11 at 12:35
  • That's a bit helpful. Thanks. – smwikipedia Nov 01 '11 at 12:57

0 Answers0