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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:06:52+00:00 2026-05-28T07:06:52+00:00

I hav asp.net mvc 3 application. When user pass id of non existing object

  • 0

I hav asp.net mvc 3 application.

When user pass id of non existing object I return 404 view in this way:

Response.StatusCode = 404;
return View("404");

Locally all works fine and I have my custom error page. But on production, I have standart asp.net 404 page. I try to set customErrors either to “on” or “off” – results is the same.

  • 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-28T07:06:53+00:00Added an answer on May 28, 2026 at 7:06 am

    Found solution here: Routing for custom ASP.NET MVC 404 Error page

    Set another magic setting in web config under system.webServer section:

    <httpErrors errorMode="Detailed" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to work out whether I am misunderstanding something about ASP.NET MVC
i hav an html file which displays table view ,how to load this on
hi i hav a code like this in the end i m getting error
In my applications i hav a terms and conditions view describing terms to use
I am trying to use the javascript extension in a blackberry webworks application.I hav
i am new to this iphone.... i hav navigation controller ,itoolbar having the button
I might be very stupid to ask this question. But I really hav no
I hav two models, User and Account, they have a many-to-many relationship through AccountUsers.
Can we create an object of a class inside another class in php?I hav
I hav a model called User ( table: users ). I hav populated the

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.