No, that will not help him.
He wants one application with a subdirectory, not 2 applications.
Benny :
If "SalesChecking" is your "main" application, and is defined as an
Application is IIS, and "Reminder_Update" is your "reminder"
directory, which is *not* configured as an Application, you should
be able to place a properly configured web.config in it which changes
the authorization mode for that directory, without needing the "reminder"
subdirectory to be an application of its own, and without changing
the authentication scheme.
Please notice the phrase "a properly configured web.config",
and please notice that there's both "authorization" and "authentication" involved.
I mention that because the web.config you currently have is
configured to request Forms Authorization from the base directory:
Line 41: <forms name=".ASPXAUTH" loginUrl="Login.aspx"
protection="All" timeout="80" path="/"/>
You can simply delete the whole authentication section
of that web.config and replace it with :
<authorization>
<allow users="*" />
</authorization>
That should fix your error problem *and* allow your users
to use the resources in the "reminder" subdirectory freely.
I could have just posted the code to replace,
but I wanted you to understand *why* that needs to be done.
Also, you should review the differences in meaning between
"authentication" and "authorization", for future use.
In this case, you only need to change the "authorization" permissions;
you don't have to change the "authentication" permissions.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
Foros de ASP.NET en Español :
http://asp.net.do/foros/
======================================
"ViewState" <> wrote in message
news:%...
> try to make a application directory where the web.config will be located
> "Benny Ng" <> escreveu na mensagem
> news:...
>> 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