473,320 Members | 1,695 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 2298
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert | last post by:
did you solve this problem? It seems to be still present here with py2.3.5. Robert -- From: Manish Jethani <manish.j@gmx.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;...
3
by: Marcus | last post by:
I'm running into a situation that has me adding a value of "Unknown" to a reference table. I am being pulled between two trains of thought, and was curious to get other's input on in. I give an...
1
by: Rob Oaks | last post by:
I have noticed the presence of declarations like this: UNKNOWN { height: 30px } in the style sheets used by some highly regarded CSS folks. This declaration usually (but not always) follows...
2
by: jon morgan | last post by:
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...
2
by: John Baker | last post by:
Hi: I have two systems, one a W98 and the other XP Home. I have Access 2000 installed on both, and have run into a difference in the way the two behave. I have a table on which I wish to reset...
3
by: Ed L. | last post by:
On 7.4.6, is there any problem with defining one column of a view to be a string literal? For example ... $ psql -c "create view fooview as select 'bar' as footype" WARNING: column "footype"...
3
by: David T. Ashley | last post by:
Hi, Red Hat Enterprise Linux 4.X. I'm writing command-line PHP scripts for the first time. I get the messages below. What do they mean? Are these operating system library modules, or...
0
by: Shaun | last post by:
Hi all, I'm trying to implement a custom session handler that writes session data to a MySQL database. It works fine about 99% of the time. Trouble is, at random intervals, I get entries like...
9
by: Klaus Johannes Rusch | last post by:
IE7 returns "unknown" instead of "undefined" when querying the type of an unknown property of an object, for example document.write(typeof window.missingproperty); Has "unknown" been defined...
7
by: John | last post by:
Hi Everyone, I'm having this extremely annoying problem with Internet Explorer 6, giving me an error message saying "unknown runtime error" whenever I try to alter the contents of a <divelement...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.