469,920 Members | 2,142 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,920 developers. It's quick & easy.

How to find "Unknown Module"

Hi,

Just how do you track down the location of an exception when all you get is
a message saying "NullReferenceException occured in Unknown Module" ?

It seems like the proverbial needle in a haystack when the debugger doesn't
show you the line in your program that triggered the external error.

Thanks for any help

Jon
Nov 22 '05 #1
2 2080
If you search all these newsgroups for "Unknown Module", you will find a lot
of similar inquiries. I believe there is a bug in the .net ide, I asked
about it, I got no reply. I have a situation that is similar to yours that I
can recreate in the ide but not when I run the exe outside the ide. Does
your problem show up in the ide only?

"jon morgan" wrote:
Hi,

Just how do you track down the location of an exception when all you get is
a message saying "NullReferenceException occured in Unknown Module" ?

It seems like the proverbial needle in a haystack when the debugger doesn't
show you the line in your program that triggered the external error.

Thanks for any help

Jon

Nov 22 '05 #2
Hello Alan,

Thanks for replying. Yes I know there are lots of similar queries and we do
indeed share exactly the same symptoms: the error occurs in the ide and not
when running the exe.

As I understand it this sort of "first chance" exception is handled by the
CLR when the debugger doesn't jump in. Well fine, but you'd have thought
that there should be some way of telling the debugger not to break unless
it's going to tell you where you are in your own code.

Maybe it's possible to add the "Null Reference Exception" in the Exceptions
dialog (Debug>Exceptions) - there's a nice button there to do it , but how ?

The frustration of course is that whilst I'm perfectly happy to ignore
exceptions that supposedly can't hurt my exe, I've got no guarantee that
once my app. gets out there in the real world, someone will run it on a
system where this apparently innocuous error turns into a show stopper.

Ah well, let's see what v2 has to offer and thanks again for replying.
Jon


"AMercer" <AM*****@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
If you search all these newsgroups for "Unknown Module", you will find a
lot
of similar inquiries. I believe there is a bug in the .net ide, I asked
about it, I got no reply. I have a situation that is similar to yours
that I
can recreate in the ide but not when I run the exe outside the ide. Does
your problem show up in the ide only?

"jon morgan" wrote:
Hi,

Just how do you track down the location of an exception when all you get
is
a message saying "NullReferenceException occured in Unknown Module" ?

It seems like the proverbial needle in a haystack when the debugger
doesn't
show you the line in your program that triggered the external error.

Thanks for any help

Jon

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Robert | last post: by
3 posts views Thread by Marcus | last post: by
2 posts views Thread by jon morgan | last post: by
3 posts views Thread by David T. Ashley | last post: by
9 posts views Thread by Klaus Johannes Rusch | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.