web.config

Le
bolo
Bonjour,

j'utilise un fichier webConfing pour limiter l'access de
certain rpertoire

dans mon rpertoire 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 rpertoires a acces limits
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
  • Partager ce contenu :
Vos réponses
Trier par : date / pertinence
YJLAMOTTE
Le #12511031
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:
<configuration>
<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>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=*******" />
</appSettings>
</configuration>


dans les rèpertoires a acces limités
Code:
<configuration>
<authorization>
<deny users="?">
<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".


<configuration>
<customErrors mode="Off"/>
</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.


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



Merci pour le coup de main



bolo
Le #12511011
Dans mon fichier je mets deja custom Error

<configuration>
<compilation debug="true"/>
<customErrors mode="Off"/>
<pages validateRequest="false" />
<authentication mode="Forms">
<credentials passwordFormat="MD5">
user name="*" password="*" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="*" />
</authorization>
<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:
<configuration>
<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>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=*******" />
</appSettings>
</configuration>


dans les rèpertoires a acces limités
Code:
<configuration>
<authorization>
<deny users="?">
<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".


<configuration>
<customErrors mode="Off"/>
</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.


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



Merci pour le coup de main



.



bolo
Le #12511001
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: Line 10: <credentials passwordFormat="MD5">
-----Message d'origine-----
Dans mon fichier je mets deja custom Error

<configuration>
<compilation debug="true"/>
<customErrors mode="Off"/>
<pages validateRequest="false" />
<authentication mode="Forms">
<credentials passwordFormat="MD5">
user name="*" password="*" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="*" />
</authorization>
<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:
<configuration>
<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>
<appSettings>
<add key="BASE"
value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=*******" />
</appSettings>
</configuration>


dans les rèpertoires a acces limités
Code:
<configuration>
<authorization>
<deny users="?">
<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".


<configuration>
<customErrors mode="Off"/>
</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.


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



Merci pour le coup de main



.



.



bolo
Le #12510981
Moi j'ai essayer ce defaire ca comme dans MSDN
<configuration>
<customErrors mode="Off"/>
<authentication mode="Forms">
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<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: Line 10: <credentials passwordFormat="MD5">
>-----Message d'origine-----
>Dans mon fichier je mets deja custom Error
>
> > ><configuration>
> ><compilation debug="true"/>
><customErrors mode="Off"/>
><pages validateRequest="false" />
><authentication mode="Forms">
> ><credentials passwordFormat="MD5">
>user name="*" password="*" />
></credentials>
></forms>
></authentication>
><authorization>
><deny users="*" />
></authorization>
> > <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:
>>> >>> <configuration>
>>> >>> <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>
>>> >>> >>> <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:
>>> >>> <configuration>
>>> >>> <authorization>
>>> <deny users="?">
>>> >>> <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".
>>>
>>> >>>
>>> <configuration>
>>> >>> <customErrors mode="Off"/>
>>> >>> </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.
>>>
>>> >>>
>>> <configuration>
>>> >>> <customErrors mode="RemoteOnly"
>>> defaultRedirect="mycustompage.htm"/>
>>> >>> </configuration>
>>>
>>>
>>>
>>> Merci pour le coup de main
>>>
>>.
>>
>.
>



.



YJLAMOTTE
Le #12510961
Essaye de mettre la partie 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
<configuration>
<customErrors mode="Off"/>
<authentication mode="Forms">
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<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: >> Line 10: <credentials passwordFormat="MD5">
>> >-----Message d'origine-----
>> >Dans mon fichier je mets deja custom Error
>> >
>> > >> > >> ><configuration>
>> > >> ><compilation debug="true"/>
>> ><customErrors mode="Off"/>
>> ><pages validateRequest="false" />
>> ><authentication mode="Forms">
>> > >> ><credentials passwordFormat="MD5">
>> >user name="*" password="*" />
>> ></credentials>
>> ></forms>
>> ></authentication>
>> ><authorization>
>> ><deny users="*" />
>> ></authorization>
>> > >> > <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:
>> >>> >> >>> <configuration>
>> >>> >> >>> <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>
>> >>> >> >>> >> >>> <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:
>> >>> >> >>> <configuration>
>> >>> >> >>> <authorization>
>> >>> <deny users="?">
>> >>> >> >>> <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".
>> >>>
>> >>> >> >>>
>> >>> <configuration>
>> >>> >> >>> <customErrors mode="Off"/>
>> >>> >> >>> </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.
>> >>>
>> >>> >> >>>
>> >>> <configuration>
>> >>> >> >>> <customErrors mode="RemoteOnly"
>> >>> defaultRedirect="mycustompage.htm"/>
>> >>> >> >>> </configuration>
>> >>>
>> >>>
>> >>>
>> >>> Merci pour le coup de main
>> >>>
>> >>.
>> >>
>> >.
>> >
>>
>.
>



Poster une réponse
Anonyme