473,506 Members | 17,000 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 1703
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.com> wrote in message
news:%2****************@TK2MSFTNGP15.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***@workshare.com> wrote in message
news:#H**************@TK2MSFTNGP10.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.com> wrote in message
news:%2****************@TK2MSFTNGP15.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="RemoteOnly" defaultRedirect="/ErrorPage.aspx" >

<error statusCode="404" redirect="/pagenotfound.aspx" />

</customErrors>

"SMG" <SM*@nodmain.com> wrote in message
news:Oi**************@TK2MSFTNGP09.phx.gbl...
Other than that...
through the config file can I do so?
"Grant Merwitz" <gr***@workshare.com> wrote in message
news:#H**************@TK2MSFTNGP10.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.com> wrote in message
news:%2****************@TK2MSFTNGP15.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
1437
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...
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...
1
1188
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...
5
1912
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...
1
2677
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...
1
3296
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...
7
5040
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...
3
1500
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...
1
1383
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...
0
7218
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,...
0
7103
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...
0
7307
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,...
0
7478
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...
0
5614
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,...
0
4701
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...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.