title: Wcf The server was unable to process the request due to an internal error
body: <p>I have created some wcfs. One of them when i have tried to run it produced the picture below <img src="https://i.stack.imgur.com/LB35G.png" alt=""></p>
  
  <p>When i have created the config and cs files and tried to run it with the code mentioned in the picture above after i have edited the web.config file of the web form from where it would be called the following comes up:</p>
  
  <p><img src="https://i.stack.imgur.com/xQW1I.png" alt=""> </p>
  
  <p>At this point, i read in similar posts about microsoft service trace viewer and svclog files. But since i am pretty new at this no helpful info could come out from the files. Any help would be really appreciated</p>
  
  <p>I think that posting here all the text would be a bit too big, though i can upload the photo in a cloud. I have changed a bit the name of the web service as its functions the error though remains the same. </p>
  
  <pre><code>&lt;configuration&gt;
      &lt;system.serviceModel&gt;
          &lt;bindings&gt;
              &lt;basicHttpBinding&gt;
                  &lt;binding name="BasicHttpBinding_Icheck_product" /&gt;
              &lt;/basicHttpBinding&gt;
          &lt;/bindings&gt;
          &lt;client&gt;
              &lt;endpoint address="http://localhost:51182/check_product.svc"
                  binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_Icheck_product"
                  contract="Icheck_product" name="BasicHttpBinding_Icheck_product" /&gt;
          &lt;/client&gt;
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The above is the output.config and the one below is the web.config after i added data from the above:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
  
    &lt;appSettings&gt;
      &lt;add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /&gt;
    &lt;/appSettings&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.5" /&gt;
      &lt;httpRuntime targetFramework="4.5"/&gt;
    &lt;/system.web&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="BasicHttpBinding_IEncrypt_Data" /&gt;
          &lt;binding name="BasicHttpBinding_IGetDbConnection" /&gt;
          &lt;binding name="BasicHttpBinding_Icheck_product" /&gt;
  
  
        &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="http://localhost:50776/Encrypt_Data.svc" binding="basicHttpBinding"
          bindingConfiguration="BasicHttpBinding_IEncrypt_Data" contract="Encypt_Data_Reference.IEncrypt_Data"
          name="BasicHttpBinding_IEncrypt_Data" /&gt;
        &lt;endpoint address="http://localhost:50776/GetDbConnection.svc"
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGetDbConnection"
          contract="Get_Db_Connection.IGetDbConnection" name="BasicHttpBinding_IGetDbConnection" /&gt;
  
  
        &lt;endpoint address="http://localhost:51182/check_product.svc"
      binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_Icheck_product"
      contract="Icheck_product" name="BasicHttpBinding_Icheck_product" /&gt;
  
      &lt;/client&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior&gt;
            &lt;!-- To avoid disclosing metadata information, set the values below to false before deployment --&gt;
            &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/&gt;
            &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;protocolMapping&gt;
          &lt;add binding="basicHttpsBinding" scheme="https" /&gt;
      &lt;/protocolMapping&gt;    
      &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /&gt;
    &lt;/system.serviceModel&gt;
    &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
      &lt;!--
          To browse web app root directory during debugging, set the value below to true.
          Set to false before deployment to avoid disclosing web app folder information.
        --&gt;
      &lt;directoryBrowse enabled="true"/&gt;
    &lt;/system.webServer&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Lastly the updated image of the error can be found here: <a href="https://drive.google.com/file/d/0B8Fw3rEXlvPTeURQbm9rVWtkdzg/view?usp=sharing" rel="nofollow noreferrer">link</a></p>