OVH Cloud OVH Cloud

Problème d'authenfication

2 réponses
Avatar
bolo
Bonjour,

j'utilise un fichier webconfig pour authenfication d'un=20
r=E9pertoire mais lorsque je tante d'acceder a ce r=E9pertoire=20
j'ai ce message d'erreur
[code]onfiguration Error
Description: An error occurred during the processing of a=20
configuration file
required to service this request. Please review the=20
specific error details
below and modify your configuration file appropriately.

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

Source Error:


Line 3: <system.web>
Line 4: <customErrors mode=3D"Off"/>
Line 5: <authentication mode=3D"Forms">
Line 6: <forms name=3D"401kApp"=20
loginUrl=3D"login.aspx"/>
Line 7: </authentication>


Source File:=20
D:\www\independza.com\website\central\admin\web.config =20
Line:
5[/code]

2 réponses

Avatar
Paul Bacelar
>"This error can be caused by a virtual directory not being configured as an


application in IIS."

Avez-vous verifieé que votre répertoire est la racine d'une application Web
dans IIS ?
--
Paul Bacelar
Demandeur d'emploi

"bolo" wrote in message
news:8bdd01c49670$27acdc00$
Bonjour,

j'utilise un fichier webconfig pour authenfication d'un
répertoire mais lorsque je tante d'acceder a ce répertoire
j'ai ce message d'erreur
[code]onfiguration 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 3: <system.web>
Line 4: <customErrors mode="Off"/>
Line 5: <authentication mode="Forms">
Line 6: <forms name="401kApp"
loginUrl="login.aspx"/>
Line 7: </authentication>


Source File:
D:wwwindependza.comwebsitecentraladminweb.config
Line:
5[/code]
Avatar
Pascal Mercier
Essaye une configuration de ce type:

<authentication mode="Forms">
<forms name="401kApp" loginUrl="/login.aspx" protection="All"
timeout="30" path="/" />
</authentication>

Il est préférable d'indiquer un chemin absolu pour le chemin de la page de
login. Bien entendu la page doit être présente dans le site.

Voir dans la documentation
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfforms.asp.

Pascal Mercier - Microsoft France



"bolo" wrote in message
news:8bdd01c49670$27acdc00$
Bonjour,

j'utilise un fichier webconfig pour authenfication d'un
répertoire mais lorsque je tante d'acceder a ce répertoire
j'ai ce message d'erreur
[code]onfiguration 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 3: <system.web>
Line 4: <customErrors mode="Off"/>
Line 5: <authentication mode="Forms">
Line 6: <forms name="401kApp"
loginUrl="login.aspx"/>
Line 7: </authentication>


Source File:
D:wwwindependza.comwebsitecentraladminweb.config
Line:
5[/code]