Why would a error get thrown inside my try-catch?

Posted by George Johnston on Stack Overflow See other posts from Stack Overflow or by George Johnston
Published on 2010-04-23T19:44:19Z Indexed on 2010/04/23 19:53 UTC
Read the original article Hit count: 326

I'm pushing a copy of our application over to a new dev server (IIS7) and the application is blowing up on a line inside of a try-catch block. It doesn't happen locally, it actually obey's the rules of a try-catch block, go figure. Any idea why this would be happening? Shouldn't it just be failing silently? Is there something environmental I need to enable/disable?

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Line 229:           Try
Line 230:
Here >> :               _MemoryStream.Seek(6 * StartOffset, 0)
Line 232:               _MemoryStream.Read(_Buffer, 0, 6)
Line 233:
                     Catch ex As IOException

                     End Try

Although it doesn't matter for answering this question, I thought I would mention that it's third party code for the Geo IP lookup.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about vb.net