Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

web.config

5 réponses
Avatar
bolo
Bonjour,

j'utilise un fichier webConfing pour limiter l'access de=20
certain r=E9pertoire

dans mon r=E9pertoire principal j'ai mis ce fichier web=20
config
Code:
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode=3D"Off"/>
<pages validateRequest=3D"false" />
<authentication mode=3D"Forms">
<forms loginUrl=3D"index.aspx?statut=3Dno"=20
timeout=3D"20">
<credentials passwordFormat=3D"MD5">
<user name=3D"*********" password=3D"*******" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users=3D"*" />
</authorization>
</system.web>
</system.web>
<appSettings>
<add key=3D"BASE"=20
value=3D"Provider=3DMicrosoft.Jet.OLEDB.4.0;Data=20
Source=3D*******" />
</appSettings>
</configuration>


dans les r=E8pertoires a acces limit=E9s
Code:
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<authorization>
<deny users=3D"?">
</system.web>
<appSettings>
<add key=3D"BASE"=20
value=3D"Provider=3DMicrosoft.Jet.OLEDB.4.0;Data=20
Source=3DD************" />
</appSettings>
</configuration>

mais j'ai ce messag d'erreur
Citation:
untime Error
Description: An application error occurred on the server.=20
The current custom error settings for this application=20
prevent the details of the application error from being=20
viewed remotely (for security reasons). It could, however,=20
be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error=20
message to be viewable on remote machines, please create a=20
<customErrors> tag within a "web.config" configuration=20
file located in the root directory of the current web=20
application. This <customErrors> tag should then have=20
its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode=3D"Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be=20
replaced by a custom error page by modifying=20
the "defaultRedirect" attribute of the application's=20
<customErrors> configuration tag to point to a custom=20
error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode=3D"RemoteOnly"=20
defaultRedirect=3D"mycustompage.htm"/>
</system.web>
</configuration>



Merci pour le coup de main

5 réponses

Avatar
YJLAMOTTE
Bonjour,

Mets temporairement le CustomError a Off (attention a la casse) pour voir le message d'erreur exact..
et revient nous voir..


"bolo" wrote:

Bonjour,

j'utilise un fichier webConfing pour limiter l'access de
certain répertoire

dans mon répertoire principal j'ai mis ce fichier web
config
Code:
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
<pages validateRequest="false" />
<authentication mode="Forms">
<forms loginUrl="index.aspx?statut=no"
timeout="20">
<credentials passwordFormat="MD5">
<user name="*********" password="*******" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="*" />
</authorization>
</system.web>
</system.web>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=*******" />
</appSettings>
</configuration>


dans les rèpertoires a acces limités
Code:
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<authorization>
<deny users="?">
</system.web>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D************" />
</appSettings>
</configuration>

mais j'ai ce messag d'erreur
Citation:
untime Error
Description: An application error occurred on the server.
The current custom error settings for this application
prevent the details of the application error from being
viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error
message to be viewable on remote machines, please create a
<customErrors> tag within a "web.config" configuration
file located in the root directory of the current web
application. This <customErrors> tag should then have
its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be
replaced by a custom error page by modifying
the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom
error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly"
defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>



Merci pour le coup de main



Avatar
bolo
Dans mon fichier je mets deja custom Error

<?xml version="1.0" encoding="utf-8" ?>
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<compilation debug="true"/>
<customErrors mode="Off"/>
<pages validateRequest="false" />
<authentication mode="Forms">
<forms loginUrl="login.aspx" timeout="20">
<credentials passwordFormat="MD5">
user name="*" password="*" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="*" />
</authorization>
</system.web>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=****" />
</appSettings>
</configuration>


-----Message d'origine-----
Bonjour,

Mets temporairement le CustomError a Off (attention a la


casse) pour voir le message d'erreur exact..
et revient nous voir..


"bolo" wrote:

Bonjour,

j'utilise un fichier webConfing pour limiter l'access




de
certain répertoire

dans mon répertoire principal j'ai mis ce fichier web
config
Code:
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
<pages validateRequest="false" />
<authentication mode="Forms">
<forms loginUrl="index.aspx?statut=no"
timeout="20">
<credentials passwordFormat="MD5">
<user name="*********"




password="*******" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="*" />
</authorization>
</system.web>
</system.web>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=*******" />
</appSettings>
</configuration>


dans les rèpertoires a acces limités
Code:
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<authorization>
<deny users="?">
</system.web>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D************" />
</appSettings>
</configuration>

mais j'ai ce messag d'erreur
Citation:
untime Error
Description: An application error occurred on the




server.
The current custom error settings for this application
prevent the details of the application error from being
viewed remotely (for security reasons). It could,




however,
be viewed by browsers running on the local server




machine.

Details: To enable the details of this specific error
message to be viewable on remote machines, please




create a
<customErrors> tag within a "web.config" configuration
file located in the root directory of the current web
application. This <customErrors> tag should then have
its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be
replaced by a custom error page by modifying
the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom
error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly"
defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>



Merci pour le coup de main



.



Avatar
bolo
voici le message
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 6: <customErrors mode="Off"/>
Line 7: <pages validateRequest="false" />
Line 8: <authentication mode="Forms">
Line 9: <forms loginUrl="login.aspx" timeout="20">
Line 10: <credentials passwordFormat="MD5">
-----Message d'origine-----
Dans mon fichier je mets deja custom Error

<?xml version="1.0" encoding="utf-8" ?>
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<compilation debug="true"/>
<customErrors mode="Off"/>
<pages validateRequest="false" />
<authentication mode="Forms">
<forms loginUrl="login.aspx" timeout="20">
<credentials passwordFormat="MD5">
user name="*" password="*" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="*" />
</authorization>
</system.web>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=****" />
</appSettings>
</configuration>


-----Message d'origine-----
Bonjour,

Mets temporairement le CustomError a Off (attention a la


casse) pour voir le message d'erreur exact..
et revient nous voir..


"bolo" wrote:

Bonjour,

j'utilise un fichier webConfing pour limiter l'access




de
certain répertoire

dans mon répertoire principal j'ai mis ce fichier web
config
Code:
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
<pages validateRequest="false" />
<authentication mode="Forms">
<forms loginUrl="index.aspx?statut=no"
timeout="20">
<credentials passwordFormat="MD5">
<user name="*********"




password="*******" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="*" />
</authorization>
</system.web>
</system.web>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=*******" />
</appSettings>
</configuration>


dans les rèpertoires a acces limités
Code:
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<authorization>
<deny users="?">
</system.web>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D************" />
</appSettings>
</configuration>

mais j'ai ce messag d'erreur
Citation:
untime Error
Description: An application error occurred on the




server.
The current custom error settings for this application
prevent the details of the application error from






being
viewed remotely (for security reasons). It could,




however,
be viewed by browsers running on the local server




machine.

Details: To enable the details of this specific error
message to be viewable on remote machines, please




create a
<customErrors> tag within a "web.config" configuration
file located in the root directory of the current web
application. This <customErrors> tag should then have
its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be
replaced by a custom error page by modifying
the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom
error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly"
defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>



Merci pour le coup de main



.



.



Avatar
bolo
Moi j'ai essayer ce defaire ca comme dans MSDN
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name="401kApp" loginUrl="/login.aspx"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D:wwwindependza.comdatabasesfilm.mdb" />
</appSettings>
</configuration>


et j'ai toujours rien
-----Message d'origine-----
C'est donc que ton Web.config est mal formé..

Regarde dans le MSDN l'ordre des sections de


configuration..

YJLAMOTTE

"bolo" wrote:

voici le message
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 6: <customErrors mode="Off"/>
Line 7: <pages validateRequest="false" />
Line 8: <authentication mode="Forms">
Line 9: <forms loginUrl="login.aspx" timeout="20">
Line 10: <credentials passwordFormat="MD5">
>-----Message d'origine-----
>Dans mon fichier je mets deja custom Error
>
><?xml version="1.0" encoding="utf-8" ?>
><!-- Web.Config Configuration File -->
><configuration>
><system.web>
><compilation debug="true"/>
><customErrors mode="Off"/>
><pages validateRequest="false" />
><authentication mode="Forms">
><forms loginUrl="login.aspx" timeout="20">
><credentials passwordFormat="MD5">
>user name="*" password="*" />
></credentials>
></forms>
></authentication>
><authorization>
><deny users="*" />
></authorization>
></system.web>
> <appSettings>
> <add key="BASE"
>value="Provider=Microsoft.Jet.OLEDB.4.0;Data
>Source=****" />
> </appSettings>
></configuration>
>
>
>>-----Message d'origine-----
>>Bonjour,
>>
>>Mets temporairement le CustomError a Off (attention a




la
>casse) pour voir le message d'erreur exact..
>>et revient nous voir..
>>
>>
>>"bolo" wrote:
>>
>>> Bonjour,
>>>
>>> j'utilise un fichier webConfing pour limiter




l'access
>de
>>> certain rÃf©pertoire
>>>
>>> dans mon rÃf©pertoire principal j'ai mis ce




fichier web
>>> config
>>> Code:
>>> <!-- Web.Config Configuration File -->
>>> <configuration>
>>> <system.web>
>>> <customErrors mode="Off"/>
>>> <pages validateRequest="false" />
>>> <authentication mode="Forms">
>>> <forms loginUrl="index.aspx?




statut=no"
>>> timeout="20">
>>> <credentials passwordFormat="MD5">
>>> <user name="*********"
>password="*******" />
>>> </credentials>
>>> </forms>
>>> </authentication>
>>> <authorization>
>>> <deny users="*" />
>>> </authorization>
>>> </system.web>
>>> </system.web>
>>> <appSettings>
>>> <add key="BASE"
>>> value="Provider=Microsoft.Jet.OLEDB.4.0;Data
>>> Source=*******" />
>>> </appSettings>
>>> </configuration>
>>>
>>>
>>> dans les rÃf¨pertoires a acces limitÃf©s
>>> Code:
>>> <!-- Web.Config Configuration File -->
>>> <configuration>
>>> <system.web>
>>> <authorization>
>>> <deny users="?">
>>> </system.web>
>>> <appSettings>
>>> <add key="BASE"
>>> value="Provider=Microsoft.Jet.OLEDB.4.0;Data
>>> Source=D************" />
>>> </appSettings>
>>> </configuration>
>>>
>>> mais j'ai ce messag d'erreur
>>> Citation:
>>> untime Error
>>> Description: An application error occurred on the
>server.
>>> The current custom error settings for this




application
>>> prevent the details of the application error from
being
>>> viewed remotely (for security reasons). It could,
>however,
>>> be viewed by browsers running on the local server
>machine.
>>>
>>> Details: To enable the details of this specific




error
>>> message to be viewable on remote machines, please
>create a
>>> <customErrors> tag within a "web.config"




configuration
>>> file located in the root directory of the current




web
>>> application. This <customErrors> tag should then




have
>>> its "mode" attribute set to "Off".
>>>
>>> <!-- Web.Config Configuration File -->
>>>
>>> <configuration>
>>> <system.web>
>>> <customErrors mode="Off"/>
>>> </system.web>
>>> </configuration>
>>>
>>>
>>> Notes: The current error page you are seeing can be
>>> replaced by a custom error page by modifying
>>> the "defaultRedirect" attribute of the




application's
>>> <customErrors> configuration tag to point to a




custom
>>> error page URL.
>>>
>>> <!-- Web.Config Configuration File -->
>>>
>>> <configuration>
>>> <system.web>
>>> <customErrors mode="RemoteOnly"
>>> defaultRedirect="mycustompage.htm"/>
>>> </system.web>
>>> </configuration>
>>>
>>>
>>>
>>> Merci pour le coup de main
>>>
>>.
>>
>.
>



.



Avatar
YJLAMOTTE
Essaye de mettre la partie <appSettings> avant la partie <system.web>
Si ca ne marche toujours pas ajoute/supprime des sections afin d'identifier celle qui pose pb..

YJLAMOTTE

"bolo" wrote:

Moi j'ai essayer ce defaire ca comme dans MSDN
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name="401kApp" loginUrl="/login.aspx"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D:wwwindependza.comdatabasesfilm.mdb" />
</appSettings>
</configuration>


et j'ai toujours rien
>-----Message d'origine-----
>C'est donc que ton Web.config est mal formé..
>
>Regarde dans le MSDN l'ordre des sections de
configuration..
>
>YJLAMOTTE
>
>"bolo" wrote:
>
>> voici le message
>> 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 6: <customErrors mode="Off"/>
>> Line 7: <pages validateRequest="false" />
>> Line 8: <authentication mode="Forms">
>> Line 9: <forms loginUrl="login.aspx" timeout="20">
>> Line 10: <credentials passwordFormat="MD5">
>> >-----Message d'origine-----
>> >Dans mon fichier je mets deja custom Error
>> >
>> ><?xml version="1.0" encoding="utf-8" ?>
>> ><!-- Web.Config Configuration File -->
>> ><configuration>
>> ><system.web>
>> ><compilation debug="true"/>
>> ><customErrors mode="Off"/>
>> ><pages validateRequest="false" />
>> ><authentication mode="Forms">
>> ><forms loginUrl="login.aspx" timeout="20">
>> ><credentials passwordFormat="MD5">
>> >user name="*" password="*" />
>> ></credentials>
>> ></forms>
>> ></authentication>
>> ><authorization>
>> ><deny users="*" />
>> ></authorization>
>> ></system.web>
>> > <appSettings>
>> > <add key="BASE"
>> >value="Provider=Microsoft.Jet.OLEDB.4.0;Data
>> >Source=****" />
>> > </appSettings>
>> ></configuration>
>> >
>> >
>> >>-----Message d'origine-----
>> >>Bonjour,
>> >>
>> >>Mets temporairement le CustomError a Off (attention a
la
>> >casse) pour voir le message d'erreur exact..
>> >>et revient nous voir..
>> >>
>> >>
>> >>"bolo" wrote:
>> >>
>> >>> Bonjour,
>> >>>
>> >>> j'utilise un fichier webConfing pour limiter
l'access
>> >de
>> >>> certain rÃf©pertoire
>> >>>
>> >>> dans mon rÃf©pertoire principal j'ai mis ce
fichier web
>> >>> config
>> >>> Code:
>> >>> <!-- Web.Config Configuration File -->
>> >>> <configuration>
>> >>> <system.web>
>> >>> <customErrors mode="Off"/>
>> >>> <pages validateRequest="false" />
>> >>> <authentication mode="Forms">
>> >>> <forms loginUrl="index.aspx?
statut=no"
>> >>> timeout="20">
>> >>> <credentials passwordFormat="MD5">
>> >>> <user name="*********"
>> >password="*******" />
>> >>> </credentials>
>> >>> </forms>
>> >>> </authentication>
>> >>> <authorization>
>> >>> <deny users="*" />
>> >>> </authorization>
>> >>> </system.web>
>> >>> </system.web>
>> >>> <appSettings>
>> >>> <add key="BASE"
>> >>> value="Provider=Microsoft.Jet.OLEDB.4.0;Data
>> >>> Source=*******" />
>> >>> </appSettings>
>> >>> </configuration>
>> >>>
>> >>>
>> >>> dans les rÃf¨pertoires a acces limitÃf©s
>> >>> Code:
>> >>> <!-- Web.Config Configuration File -->
>> >>> <configuration>
>> >>> <system.web>
>> >>> <authorization>
>> >>> <deny users="?">
>> >>> </system.web>
>> >>> <appSettings>
>> >>> <add key="BASE"
>> >>> value="Provider=Microsoft.Jet.OLEDB.4.0;Data
>> >>> Source=D************" />
>> >>> </appSettings>
>> >>> </configuration>
>> >>>
>> >>> mais j'ai ce messag d'erreur
>> >>> Citation:
>> >>> untime Error
>> >>> Description: An application error occurred on the
>> >server.
>> >>> The current custom error settings for this
application
>> >>> prevent the details of the application error from
>> being
>> >>> viewed remotely (for security reasons). It could,
>> >however,
>> >>> be viewed by browsers running on the local server
>> >machine.
>> >>>
>> >>> Details: To enable the details of this specific
error
>> >>> message to be viewable on remote machines, please
>> >create a
>> >>> <customErrors> tag within a "web.config"
configuration
>> >>> file located in the root directory of the current
web
>> >>> application. This <customErrors> tag should then
have
>> >>> its "mode" attribute set to "Off".
>> >>>
>> >>> <!-- Web.Config Configuration File -->
>> >>>
>> >>> <configuration>
>> >>> <system.web>
>> >>> <customErrors mode="Off"/>
>> >>> </system.web>
>> >>> </configuration>
>> >>>
>> >>>
>> >>> Notes: The current error page you are seeing can be
>> >>> replaced by a custom error page by modifying
>> >>> the "defaultRedirect" attribute of the
application's
>> >>> <customErrors> configuration tag to point to a
custom
>> >>> error page URL.
>> >>>
>> >>> <!-- Web.Config Configuration File -->
>> >>>
>> >>> <configuration>
>> >>> <system.web>
>> >>> <customErrors mode="RemoteOnly"
>> >>> defaultRedirect="mycustompage.htm"/>
>> >>> </system.web>
>> >>> </configuration>
>> >>>
>> >>>
>> >>>
>> >>> Merci pour le coup de main
>> >>>
>> >>.
>> >>
>> >.
>> >
>>
>.
>