Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a problem with a web page that we've developed.

It is a one-page website that users are provided a link to (via an email). The site produces all the line items we want them to bid on, each on a separate line.

The users can then enter the make/model, and price per item, and any comments about each item.

We've been receiving a lot of errors recently that either look like:
1) Object reference not set to an instance of an object.
Exception of type 'System.Web.HttpUnhandledException' was thrown (via email message to programmers).
OR
2) Error saving Quote (on the website error page).

We recently added the ability for users that make bids, to add their attachments to their bid. We then save their attachments with their bid information. Since this piece has been added, we've been experiencing much higher levels of error messages (mainly error #1).

When we've been tracing through the code the biggest problem we've noticed (thus far) is the Application_Start event handler seems to be getting called multiple times. This leads to the clearing out of our session variables and Object Reference errors. The biggest problem we are seeing, is that it seems random. It can run any number of times successfully, but suddenly we end up with a slew of errors in a short while, then later, nothing again for a long time.

Has anyone else run into a situation where their code has been triggering multiple intstances of the Application_Start event handler? My understanding is that it should only fire the first time a web-server starts the application. After that, unless the application is shut down, the event shouldn't be triggered/fired again.

Regards
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900