Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4337150
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:54:16+00:00 2026-05-21T10:54:16+00:00

I inherited a customer facing asp.net web application, in which customers can upload files

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:54:17+00:00Added an answer on May 21, 2026 at 10:54 am
    1. Are you SURE that the information that you’re getting in the exception is erroneous? It’s so easy to make that assumption, we’ve all done it, only to be proven wrong when you’ve spent a little longer looking at it.
    2. Make sure you’ve got PDB (Debug Symbols) deployed. You can still push these out even if the site is built in “Release”, rather than “Debug” to ensure that you get appropriate line numbers in your stack trace.
      1. Make sure you deploy the matching .PDB files, ones that don’t match won’t be any use.
      2. Keep the .PDB files 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).
    3. Add some additional instrumentation to the code that logs, using something like log4net (don’t write your own logging system – other people are better at it than you, or I!) that logs as much state as possible around the area that’s encountering the issue.
      1. Make it so that the logging can be switched on or off based on a configuration setting. log4net makes it easy to do this.
      2. Make sure your logging code checks all objects that it inspects for null prior to using them, so you don’t end up with a NullReferenceException being caused by your logging code.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've inherited an ecommerce ASP.NET (c# code behind) web application. We've recently moved servers
I am working on an ASP.Net web application that must print dynamically created labels
I have inherited an ASP.NET 3.5 application that relies heavily on sessions and storing
I have inherited from a very small ASP.NET WebForms project, and my customer would
I've inherited a customization of Campaign Response in which the Customer attribute is read-only
I have inherited an ASP.net 2.0 VB project and have been given a list
Background: I've inherited a web application that is intended to create on-the-fly connections between
I have 3 abstract classes (Customer, Tender, Site). For Customer has inherited class such
I have inherited a project, that provides an order form to a customer. The
I inherited a Windows Forms app written in VB.Net. Certain parts of the app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.