Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   <customErrors (http://www.velocityreviews.com/forums/t620072-customerrors.html)

Arne Garvander 06-13-2008 04:48 PM

<customErrors
 
I have <customErrors .. in my web.config but the redirect does not kick in.
What am I doing wrong?
<customErrors defaultRedirect="Error.aspx" mode="On">
<error statusCode="404" redirect="Filenotfound.aspx"/>
</customErrors>
--
Arne Garvander
Certified Geek
Professional Data Dude

Alexey Smirnov 06-13-2008 06:48 PM

Re: <customErrors
 
On Jun 13, 6:48*pm, Arne Garvander
<ArneGarvan...@discussions.microsoft.com> wrote:
> I have <customErrors .. in my web.config but the redirect does not kick in..
> What am I doing wrong?
> <customErrors defaultRedirect="Error.aspx" mode="On">
> * * * * * * * * * * * * <error statusCode="404" redirect="Filenotfound.aspx"/>
> * * * * * * * * </customErrors>
> --
> Arne Garvander
> Certified Geek
> Professional Data Dude


Arne

I suppose 404 is not working? If you call that page with the full URL
at http://servername/Filenotfound.aspx, does it work?

Arne Garvander 06-13-2008 06:58 PM

Re: <customErrors
 
I can go there directly. The automatic redirect does not work.
--
Arne Garvander
Certified Geek
Professional Data Dude


"Alexey Smirnov" wrote:

> On Jun 13, 6:48 pm, Arne Garvander
> <ArneGarvan...@discussions.microsoft.com> wrote:
> > I have <customErrors .. in my web.config but the redirect does not kick in..
> > What am I doing wrong?
> > <customErrors defaultRedirect="Error.aspx" mode="On">
> > <error statusCode="404" redirect="Filenotfound.aspx"/>
> > </customErrors>
> > --
> > Arne Garvander
> > Certified Geek
> > Professional Data Dude

>
> Arne
>
> I suppose 404 is not working? If you call that page with the full URL
> at http://servername/Filenotfound.aspx, does it work?
>


Alexey Smirnov 06-13-2008 07:38 PM

Re: <customErrors
 
On Jun 13, 8:58*pm, Arne Garvander
<ArneGarvan...@discussions.microsoft.com> wrote:
> I can go there directly. The automatic redirect does not work.
> --
> Arne Garvander
> Certified Geek
> Professional Data Dude
>
>
>
> "Alexey Smirnov" wrote:
> > On Jun 13, 6:48 pm, Arne Garvander
> > <ArneGarvan...@discussions.microsoft.com> wrote:
> > > I have <customErrors .. in my web.config but the redirect does not kick in..
> > > What am I doing wrong?
> > > <customErrors defaultRedirect="Error.aspx" mode="On">
> > > * * * * * * * * * * * * <error statusCode="404" redirect="Filenotfound.aspx"/>
> > > * * * * * * * * </customErrors>
> > > --
> > > Arne Garvander
> > > Certified Geek
> > > Professional Data Dude

>
> > Arne

>
> > I suppose 404 is not working? If you call that page with the full URL
> > athttp://servername/Filenotfound.aspx, does it work?- Hide quoted text -

>
> - Show quoted text -


So, what do you get when you go to http://server/pagedoesnotexist.aspx?
A blank page, an error... etc?

Try to get rid of defaultRedirect="Error.aspx" to see if it 404 would
work, or not (maybe you have an exception somethere, or a redirect in
case of an error). Check if path of redirect is correct, change it to
"~/Filenotfound.aspx", or "~/DIR/Filenotfound.aspx"... If it doesn't
help, look at IIS, Application Configuration, properties for aspx
files in the Application Extensions and ensure that "Verify that file
exists" is unmarked.


All times are GMT. The time now is 02:08 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57