Change "Access is Denied" default page in web application

  • Thread starter Thread starter Curt_C [MVP]
  • Start date Start date
Hi!
I'm using Windows Authentication in my application, restricting permissions
with authorization for specific users. But when someone try to access and
don't have permissions, the default page "Access is Denied" appears...

Can I figure out this and show my own page?

HSH
Ueslei
 
In IIS I changed the 401.2 error page, but It still showing the same error
message...

What exactly I need change?

HSH
Ueslei
 
haber iletisinde þunlarý said:
Hi!
I'm using Windows Authentication in my application, restricting permissions
with authorization for specific users. But when someone try to access and
don't have permissions, the default page "Access is Denied" appears...

Can I figure out this and show my own page?

HSH
Ueslei
sorry for polluting if u know all these but
may be this will work
in web.config file make these changes if u don't
<customErrors mode="on">
'maybe your mode is "RemoteOnly" or "off"
'if it is "RemoteOnly" then it is just returns the default error page to
local
<error redirect="url" statusCode="code">
</customErrors>

good luck
 
Back
Top