Hello Guys,
I want to deploy my wcf service in iis and actually i'm getting this error :
ERREUR HTTP 500.19 - INTERNAL SERVER ERROR
You cannot access the page you requested because the related configuration data for the page is not valid.
this is my web.config
- <?xml version="1.0" encoding="utf-8"?>
- <configuration>
- <connectionStrings>
- <add name="MyDbConn" connectionString="Data Source= BTI-LAPTOP\SQLEXPRESS2014; Integrated Security=true;Initial Catalog= icemwebappDB; uid=YourUserName; Password=yourpassword; " providerName="System.Data.SqlClient" />
- </connectionStrings>
- <appSettings>
- <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
- </appSettings>
- <system.web>
- <compilation debug="true" targetFramework="4.5" />
- <httpRuntime targetFramework="4.5"/>
- </system.web>
- <system.serviceModel>
- <services>
- <service behaviorConfiguration="CodeDefautServiceBehavior" name="icemRESTws.AccessService">
- <endpoint address="" behaviorConfiguration="RESTEndpointBehavior"
- binding="webHttpBinding" contract="icemRESTws.IAccessService" />
- </service>
- </services>
- <behaviors>
- <endpointBehaviors>
- <behavior name="RESTEndpointBehavior">
- <webHttp />
- </behavior>
- </endpointBehaviors>
- <serviceBehaviors>
- <behavior name="CodeDefautServiceBehavior">
- <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
- <serviceDebug includeExceptionDetailInFaults="false" />
- </behavior>
- <behavior name="">
- <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
- <serviceDebug includeExceptionDetailInFaults="false" />
- </behavior>
- </serviceBehaviors>
- </behaviors>
- <protocolMapping>
- <add binding="basicHttpsBinding" scheme="https" />
- </protocolMapping>
- <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
- </system.serviceModel>
- <system.webServer>
- <httpProtocol>
- <customHeaders>
- <add name="Access-Control-Allow-Origin" value="*" />
- </customHeaders>
- </httpProtocol>
- <modules runAllManagedModulesForAllRequests="true"/>
- <!--
- Pour parcourir le répertoire racine de l'application Web lors du débogage, définissez la valeur ci-dessous sur true.
- Définissez-la sur false avant le déploiement pour ne pas divulguer d'informations du dossier de l'application Web.
- -->
- <directoryBrowse enabled="true"/>
- </system.webServer>
- </configuration>
help please :(