|
Subject:
|
Web.config or IIS Custom Error Need to Reset
|
|
Posted By:
|
vinod_yadav1919
|
Post Date:
|
4/18/2008 7:01:30 AM
|
Hi All
Why Custom error page is not showing ? Note-I have knowledge abt Mode- On,Off,RemoteOnly
my web.config looks like <system.web> <customErrors mode="On" defaultRedirect="CustomErrorPage.html" /> <authentication mode="Windows" /> <identity impersonate="true" /> <authorization> <allow users="mydomainname\UserID1919" /> <deny users="*" /> </authorization> </system.web>
Do I need to modify any setting so that other than "mydomainname\UserID1919" should not allow to get access into the webapplication.
well if other user i.e."mydomainname\UserID2020" try to provide his/her credentials ,rather than showing "CustomErrorPage.html" Page, it is showing like this. ___ Server Error in '/MyApplication' Application. --------------------------------------------------------------------- Access is denied. Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: You do not have permission to view this directory or page using the credentials you supplied. Contact the Web server's administrator for help. _________________________________________________
I tried both the link http://geekswithblogs.net/ranganh/archive/2005/04/25/37613.aspx http://www.aspdev.org/articles/web.config/
Do i need to modify something in IIS.
Any pointer will be a great help
Cheers :)
vinod
|
|
Reply By:
|
nehasingla385
|
Reply Date:
|
4/25/2008 2:00:45 AM
|
To Give custom errors you can include </configuration> <customErrors mode="on" defaultredirest="customError.html"> <error statusCode="403" redirect="/accessdenied.html" /> <error statusCode="404" redirect="/pagenotfound.html" /> </customErrors>
you can also set CustomErrors mode="RemoteOnly" if you want to display it to local users only.
Thanks neha
|
|
Reply By:
|
vinod_yadav1919
|
Reply Date:
|
4/25/2008 7:45:33 AM
|
Hi Neha!! I already did it,rather than redirecting to the "redirect" page it was showing: Server Error in '/MyApplication' Application. --------------------------------------------------------------------- Access is denied. Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: You do not have permission to view this directory or page using the credentials you supplied. Contact the Web server's administrator for help. _________________________________________________
Now do you ever tried it or u have any proof of concept it will work,if yest did you modified any IIS setting.
Any pointer would be great help.
Thanks,
Cheers :)
vinod
|