PC Review


Reply
Thread Tools Rate Thread

custom error 404

 
 
Hemant
Guest
Posts: n/a
 
      21st Oct 2009
Hi,
I am working on vb.net 2005.
To handle error 404 i have added following error to the web config.
<customErrors mode="On" defaultRedirect="~/error.aspx">
<error statusCode="404" redirect="~/default.aspx" />

</customErrors>

it is working on my local machine . where i have not put my code in inetpub
..

but while i do the same at the production i am getting message like where my
application is at the inetpub .

on production application is running on window 2000 .

Internet explorer cannot display the webpage.

am i wrong any where ?

please suggest me.



thanks,

hemant



 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      23rd Oct 2009
On Oct 21, 10:03*am, "Hemant" <Hem...@nomail.com> wrote:
> Hi,
> I am working on vb.net 2005.
> To handle error 404 i have added following error to the web config.
> <customErrors mode="On" defaultRedirect="~/error.aspx">
> <error statusCode="404" redirect="~/default.aspx" />
>
> </customErrors>
>
> it is working on my local machine . where i have not put my code in inetpub
> .
>
> but while i do the same at the production i am getting message like wheremy
> application is at the inetpub .
>
> on production application is running on window 2000 .
>
> Internet explorer cannot display the webpage.
>
> am i wrong any where ?
>
> please suggest me.
>
> thanks,
>
> hemant


Setup IIS log file (if not enabled) and check where the requests go.
Note, that CustomErrors setup in the web.config file would work for
ASP.NET extensions only and, for example, 404 custom error will not
happen for *.html file extension because it is handled by IIS.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to catch error 401 access denied and redirect to custom error page ? rote Microsoft ASP .NET 4 4th Aug 2008 08:27 PM
Error when adding custom help file to custom function Sabotuer99 Microsoft Excel Programming 1 19th Jul 2008 01:46 PM
Can we show error message in Custom error defaultRedirect page ad Microsoft ASP .NET 2 5th Jul 2005 09:32 PM
custom error page cares about type of error dee Microsoft ASP .NET 0 28th Jun 2005 05:28 PM
Custom validator doesnt show error message but shows server error =?Utf-8?B?cG11ZA==?= Microsoft ASP .NET 8 11th Feb 2005 09:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:59 AM.