voici ce que j'ai écrit dans web.config
<?xmlversion="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config -->
<configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<connectionStrings>
<addname="ConnectionString"
connectionString="Data Source=.\SQLEXPRESS;
AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;
Integrated Security=True;Connect Timeout=30;
User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<!-- Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only during development.-->
<compilationdebug="false"defaultLanguage="c#" />
<!--The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user. -->
<!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. -->
<customErrorsmode="RemoteOnly"defaultRedirect="GenericErrorPage.htm">
<errorstatusCode="403"redirect="NoAccess.htm" />
<errorstatusCode="404"redirect="FileNotFound.htm" />
</customErrors>
<!-- Interdiction d'aller dans n'importe quelle page du catalogue si l'utilisateur n'est pas authentifier -->
<roleManagerenabled="true"/>
<authenticationmode="Forms">
<formsloginUrl="Login.aspx" />
</authentication>
</system.web>
<!-- On interdit l'acces a toutes les pages du catalogue
si l'utilisateur authentifi, n'appartient pas a la zone
Client ou Admin de La Découpe -->
<locationpath="55K_photos_page0.aspx">
<system.web>
<authorization>
<allowroles="Clients, Administrateur" />
<denyusers="*" />
</authorization>
</system.web>
</location>
<locationpath="55K_description.aspx">
<system.web>
<authorization>
<allowroles="Clients, Administrateur" />
<denyusers="*" />
</authorization>
</system.web>
<!-- on continue comme ça pendant 300 lignes -->
<!--
Fin de la zone reservee au client
--><!--
Necessaire pour la recuperation du mot de passe
--><
system.net
>
<
mailSettings
>
<
smtp
from
=
"
webmaster@monsite.com
"
>
<
network
host
=
""
password
=
""
userName
=
""
/>
</
smtp
>
</
mailSettings
>
</
system.net
><!--
Ici, il n'a que l'administrateur du catalogue qui a acces a cette page
--><
location
path
=
"
Admin.aspx
"
>
<
system.web
>
<
authorization
>
<
allow
roles
=
"
Administrateur
"
/>
<
deny
users
=
"
*
"
/>
</
authorization
>
</
system.web
>
</
location
></
configuration
>
Je tiens à préciser que default.aspx n'entre pas en compte dans l'authorization elle est affiché cache...
Ben ensuite, l'icône du répertoire ressemble à une boite avec un ver qui sort (c'est pas un répertoire simple ou un répertoire avec une planète dessus), au niveau des droits, j'ai coché :
Lecture, accès au journal, indexer cette ressource
Ben y'a pas d'erreur affiché, juste msn qui pète un câble en affichant le fait que la page n'existe pas...