473,657 Members | 2,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Customize 404 server error in .Net

SMG
Hi All,

From where I can customize 404 error.

I.e. the error is printed below..

Server Error in '/sharekhan' Application.

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure that
it is spelled correctly.

Requested Url: /Sharekhan/asdf.aspx

Version Information: Microsoft .NET Framework Version:

Regards,
Shailesh G
Nov 19 '05 #1
3 1712
this is done through IIS

if you open IIS and go to your defatul website.
Right click and select properties.
Click on the Tab 'Custom Errors'

And from there you can change these errors.

If you are using a virtual directory, this will have to be done on the
virtual directory

"SMG" <SM*@nodmain.co m> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi All,

From where I can customize 404 error.

I.e. the error is printed below..

Server Error in '/sharekhan' Application.

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure
that
it is spelled correctly.

Requested Url: /Sharekhan/asdf.aspx

Version Information: Microsoft .NET Framework Version:

Regards,
Shailesh G

Nov 19 '05 #2
SMG
Other than that...
through the config file can I do so?
"Grant Merwitz" <gr***@workshar e.com> wrote in message
news:#H******** ******@TK2MSFTN GP10.phx.gbl...
this is done through IIS

if you open IIS and go to your defatul website.
Right click and select properties.
Click on the Tab 'Custom Errors'

And from there you can change these errors.

If you are using a virtual directory, this will have to be done on the
virtual directory

"SMG" <SM*@nodmain.co m> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi All,

From where I can customize 404 error.

I.e. the error is printed below..

Server Error in '/sharekhan' Application.

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure
that
it is spelled correctly.

Requested Url: /Sharekhan/asdf.aspx

Version Information: Microsoft .NET Framework Version:

Regards,
Shailesh G

Nov 19 '05 #3
Yes, by adding the following in the <system.web> node

<customErrors mode="RemoteOnl y" defaultRedirect ="/ErrorPage.aspx" >

<error statusCode="404 " redirect="/pagenotfound.as px" />

</customErrors>

"SMG" <SM*@nodmain.co m> wrote in message
news:Oi******** ******@TK2MSFTN GP09.phx.gbl...
Other than that...
through the config file can I do so?
"Grant Merwitz" <gr***@workshar e.com> wrote in message
news:#H******** ******@TK2MSFTN GP10.phx.gbl...
this is done through IIS

if you open IIS and go to your defatul website.
Right click and select properties.
Click on the Tab 'Custom Errors'

And from there you can change these errors.

If you are using a virtual directory, this will have to be done on the
virtual directory

"SMG" <SM*@nodmain.co m> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi All,

From where I can customize 404 error.

I.e. the error is printed below..

Server Error in '/sharekhan' Application.

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure
that
it is spelled correctly.

Requested Url: /Sharekhan/asdf.aspx

Version Information: Microsoft .NET Framework Version:

Regards,
Shailesh G


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1448
by: Shabam | last post by:
When I set validateRequest="true", and a user tries to submit html into the form, the server returns with a huge error page detailing what wasn't allowed. Is there a way to customize just this error page to something more friendly? I want to use different error pages for other things, but for this one I'd like to customize it. Is this possible?
14
759
by: deko | last post by:
The below code dials a phone number when the subform datasheet cell containing the number is double clicked. The problem is that the dialer application (c:\windows\dialer.exe) pops up windows on the screen, requiring user intervention to click "Talk" or "Hang Up". I want to customize the behavior of the application so that no pop ups are received and the application drops the line automatically and closes itself in 6 seconds - which is...
1
1194
by: henry | last post by:
Hi all, When user upload a file, there is a size limit (default is 4M). And we can change this size limit by changging the config file. If a user upload a file bigger than this size, an DNS error will be displayed. Now my question is whether we can customize this error message? Displaying a DNS error page is quite misleading to normal user. I would rather display a page saying "The file you upload should not exceed 4M" and then put a...
5
1918
by: Sun Jian | last post by:
Hi, I am trying to customize the asp.net validation to achieve the following: Upon submitting the form, client side validation will run, and it will stop at the first error detected. For example if both UserID and Password text fields are required but neither is filled in, I'd like to display the error message (a dialogbox) "Please enter the User ID". And only after the user has filled in UserID, it will display "Please enter the...
1
2681
by: JuanCarlos Gomez | last post by:
I am try to customize papersize on VBNET (PrintDialog, PritnDocument), but only have access to defined Paper Size on my Printer (FX-2180), how I can customize papersize and use it. Because all the time have access only to the defined paper. I need create an paper size (not ISO's). Please help me
1
3318
by: JT | last post by:
Hi, We have 2 servers having the same web site running on port 8080. These two servers are load balanced and have DNS name, e.g. my.server.com. Now on both of these two servers, we put the same web services, e.g. MyWebService\WS.asmx, so the URL to the web service looks like: http://my.server.com/MyWebService/WS.asmx Now here's the problem. When I try to view the WSDL via http://my.server.com/MyWebService/WS.asmx?WSDL, the
7
5059
by: DC | last post by:
Hi, there is a 500;13 page one can configure in the website properties, but ..Net Framework 1.1 also delivers the "server too busy" message sometimes and the IIS custom error page does not seem to catch that. How would I customize the error page then? Regards DC
3
1508
by: Ken Fine | last post by:
I would like to be able to move my ASP.NET applications to any of a number of servers without changing code. My apps do a lot of disk I/O and in some cases I might be specifying absoute drive mappings for whatever bad reason. This will break if apps are arbitrarily copied around. I imagine I could centralize a bunch of configurations in web.config. If my apps could reliably (and efficiently) identify what server they were running off...
1
1391
by: Alex | last post by:
Hello, When an error occurs, is it possible to customize the message abit? For example, currently after Source Error and Stack Trace it shows Version Information, but can I add the Machine IP Address and Currently Logged In Username to this as well? Possibly even the Server IP? This would greatly help us track down where the error message comes from when someone emails or prints out the message for us to resolve bugs. Thanks ...
0
8395
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8826
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7330
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.