1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
| <?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="Mcel.WcfServiceLibrary.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<!-- Lors du déploiement du projet de bibliothèque du service, le contenu du fichier de configuration doit être ajouté au fichier app.config
de l'hôte. System.Configuration ne prend pas en charge les fichiers de configuration pour les bibliothèques. -->
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<bindings />
<services>
<service name="Mcel.WcfServiceLibrary.TownManagementService.TownService">
<endpoint address="ws" binding="wsHttpBinding" contract="Mcel.WcfServiceLibrary.TownManagementService.ITownService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8732/Design_Time_Addresses/WcfServiceLibrary/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- Pour éviter la divulgation des informations sur les métadonnées,
définissez la valeur ci-dessous sur false et supprimez le point de terminaison des métadonnées ci-dessus avant le déploiement -->
<serviceMetadata httpGetEnabled="True" />
<!-- Pour recevoir les détails d'exception des erreurs à des fins de débogage,
définissez la valeur ci-dessous sur true. Définissez-la sur false avant le déploiement
pour éviter la divulgation des informations d'exception -->
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceAuthorization principalPermissionMode="UseAspNetRoles" roleProviderName="McelRoleProvider" />
<serviceCredentials>
<userNameAuthentication userNamePasswordValidationMode="MembershipProvider" membershipProviderName="McelMembershipProvider" />
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.web>
<authentication mode="Forms"/>
<compilation debug="true" />
<membership defaultProvider="McelMembershipProvider">
<providers>
<clear />
<add name="McelMembershipProvider" type="Mcel.WcfServiceLibrary.Authentification.McelMembershipProvider, Mcel.WcfServiceLibrary" />
</providers>
</membership>
<roleManager enabled="true" cacheRolesInCookie="true" cookieName=".ASPROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All" defaultProvider="McelRoleProvider">
<providers>
<clear />
<add name="McelRoleProvider" type="Mcel.WcfServiceLibrary.Authentification.McelRoleProvider, Mcel.WcfServiceLibrary" />
</providers>
</roleManager>
</system.web>
<applicationSettings>
<Mcel.WcfServiceLibrary.Properties.Settings>
<setting name="MinRequiredPasswordLength" serializeAs="String">
<value>6</value>
</setting>
<setting name="ApplicationName" serializeAs="String">
<value>Mcel</value>
</setting>
</Mcel.WcfServiceLibrary.Properties.Settings>
</applicationSettings>
</configuration> |
Partager