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"/>
- answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Bouthaina TlijaniPosted Feb 1, 2018, 5:41 AM
Sanwar RanwaPosted Feb 1, 2018, 5:27 AM