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 6744701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:06:54+00:00 2026-05-26T12:06:54+00:00

Have developed an MVC3 application which monitors when users access static content on the

  • 0

Have developed an MVC3 application which monitors when users access static content on the web server, debiting the users balance each time. This logic happens in the “Application_AuthenticateRequest” event of Global.asax (I’ve read previously this is the correct place to put such logic).

MvcMailer has been implemented to send out various notifications to the user (account created, reset password etc). We’d like to implement a “low balance” notification, but don’t seem to be able to send one at “Application_AuthenticateRequest” as no full HttpContext is available…? The full error which appears when “PopulateBody” is called is:

ArgumentNullException was unhandled by user code.
Value cannot be null.
Parameter name: routeData

Any suggestions how to work around this? Was thinking about sending notifications at another event at Global.asax, but will also need to fire for static content…?

Thanks in advance!

  • 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-26T12:06:55+00:00Added an answer on May 26, 2026 at 12:06 pm

    You could set something in the context for that request which you then read (or determine instead) in Application_EndRequest and send the request out from there. Better yet, simply store it in the cache and look for it on Application_EndRequest or make the entire determination on EndRequest if the count is high enough, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly large MVC3 application, of which I have developed a small
Have developed a small Windows application using SQL Server as its database. I need
I have developed a Java EE web application. This application allows a user to
I have developed a basic Chat application in Java. It consists of a server
I have developed a simple server using Tomcat which runs a servlet. The servlet
I have developed an application using VB.NET, Visual Studio 2008 and the SQL Server
i develop a asp.net mvc3 shop application which is multi tenant. Each customer (around
Here's the issue at hand: I have developed an ASP.NET MVC3 application using Razor.
I need to develop a web application, i have two choices mvc3 straight forward
I have developed a MVC3 application in that I want use the Check boxlist

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.