how to let the web.config in the sub-directory to NOT to inherited from Root's web.config.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,all,

How to let the sub-directory to avoid the authentication control from Root's
webconfig?
I heard that we can add a new web.config to the sub-directory. And then we
can slove the problem.

Virtual directory is £ºhttp://localhost/main

Sub-directory is : http://localhost/main/reminder

My application used the Forms Authentication, then all files in every
directory is controlled by the Forms Authentication. But now i want a
sub-directory to avoid this. (user can access this directory directly,
Needn't to Login.)

In my application, the user can access the http://localhost/main/reminder
and needn't to authentication.


When I add the new web.config(cancel the forms authentication section), and
when I access this URL(http://localhost/main/reminder), The following error
shown:

*****************************************************
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.

Source Error:


Line 38: by Microsoft that offers a single logon and core profile
services for member sites.
Line 39: -->
Line 40: <authentication mode="None">
Line 41: <!--<forms name=".ASPXAUTH" loginUrl="Login.aspx"
protection="All" timeout="80" path="/"/>-->
Line 42: </authentication>


Source File: C:\Projects.Net\SalesChecking\Reminder_Update\web.config
Line: 40
******************************************

Can anyone give me some suggestion about it?

Any suggestion about this are appreciated. Thanks!

Benny Ng


.



Relevant Pages

  • Re: Access denied ( From one site to another, that is in another server)
    ... Hi, Bassel, ... An error occurred during the processing of a configuration file ... > server. ... > | Integrated Authentication ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • PuTTY and SSH2 on OpenVMS - Not
    ... Has anyone successfully used public-key authentication to ... > Event Log: Pageant is running. ... i use the SSH e.a.k 1.1 on OpenVMS with password authentication. ... ## SSH 2.0 Client Configuration File ...
    (comp.os.vms)
  • PuTTY and SSH2 on OpenVMS - Not
    ... Has anyone successfully used public-key authentication to ... > Event Log: Pageant is running. ... i use the SSH e.a.k 1.1 on OpenVMS with password authentication. ... ## SSH 2.0 Client Configuration File ...
    (comp.security.ssh)
  • Web.config File Problem
    ... I want to implement the forms based authentication. ... for a sub directory in my webapplication. ... I have allready applied Forms based authentication in my webapplication,, ... An error occurred during the processing of a configuration file required to service this request. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Spell check no longer works on Exchange 2003 Front End Server after applying E2K3 SP1
    ... make sure that that the authentication ... methods set on the /Spell virtual directory are inherited from the ... Click Edit next to Anonymous access and authentication control. ... Click Integrated Windows authentication, ...
    (microsoft.public.exchange.clients)