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

  • Home
  • SEARCH
  • 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 1032821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:08:22+00:00 2026-05-16T14:08:22+00:00

Hi if a request from my website is containing some errors(database linking errors) then

  • 0

Hi if a request from my website is containing some errors(database linking errors) then asp.net host server error page is displaying but i want to avoid the error page and i hav to display my own custom designed error page instead.

  • 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-16T14:08:23+00:00Added an answer on May 16, 2026 at 2:08 pm

    Add the customErrors element as shown below to your web.config file in the appropriate place:

    <configuration>
        ...
    
        <system.web>
            <customErrors mode="On" defaultRedirect="~/ErrorPages/Oops.aspx" />
    
            ...
        </system.web>
    </configuration>
    

    Setting the mode attribute to On ensures that the error page is shown to everybody. You can set the attribute to RemoteOnly if you want to show the error page to remote users only; local users will then see the error page containing the exception details instead, which may simplify development.

    If you want to read more about this subject, I’d recommend to have a look at the following article from the official ASP.NET site: Displaying a Custom Error Page

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

Sidebar

Related Questions

I have a working SOAP request from my website to a .net based API.
I have a website running ASP.NET (C#) on server A . I need my
i using get_headers Function in PHP to request headers from website in local server
Hello I have a page in an ASP.NET (website) project that writes a file
I've been experimenting with using mvc-mini-profiler on a ASP.NET website. All of the request
i want to send request from android to java tomcat server using servlet, then
I got a request from a client asking to encrypt some images to prevent
We are using the Mono (2.10) XSP4 webserver to host an ASP.Net MVC3 web-application
I need to call a web service from my classic ASP website. I have
As the title says, Does ASP .NET c# HttpWebRequest support HTTPS Authentication via username:password@www.website.com?

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.