Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2008, 07:01 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default Web.config or IIS Custom Error Need to Reset

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/ar.../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
__________________
Cheers :)

vinod
 
Old April 25th, 2008, 02:00 AM
Registered User
 
Join Date: Apr 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old April 25th, 2008, 07:45 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in Web.config.. ashokparchuri General .NET 10 April 30th, 2011 05:14 AM
Remote-obj under IIS and Web.Config + Global.asax lok_tan .NET Framework 2.0 1 March 17th, 2008 01:21 AM
Windows Vista - IIS Config Error tracey07 ASP.NET 2.0 Basics 1 July 26th, 2007 03:02 AM
Config of default smtp web server on IIS 5.0 kumarop Classic ASP Components 0 February 20th, 2005 04:22 AM
Modifying the WEB.CONFIG custom error element? savoym VS.NET 2002/2003 3 January 21st, 2005 02:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.