WCF/WF - An exception occurred during the operation,making the result invalid

Asked By gopal krish on 23-May-12 04:07 AM
hi..

i have coonfigured my wcf service into https

my https code is below in my wcf service

<?xml version="1.0"?>
<configuration>


  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  
  <system.serviceModel>
    <services>
      <service behaviorConfiguration="Namespace.WcfService1" name="Namespace.Service1">
        <endpoint address="https://sample.example.com/wcfservice/Service1.svc" binding="basicHttpBinding" bindingConfiguration="Binding" contract="Namespace.IMyService"/>
        <host>
          <baseAddresses>
            <add baseAddress="https://sample.example.com/wcfservice/Service1.svc"/>
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="Namespace.WcfService1">
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpsGetEnabled="true" httpsGetUrl="https://sample.example.com/wcfservice/Service1.svc"/>
          <!-- 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 -->
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="false" />
    <bindings>
      <basicHttpBinding>
        <binding name="Binding">
          <security mode="Transport">
            <transport clientCredentialType="None"/>
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
  </system.serviceModel>
  
 <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
   <handlers>


     <add name="svc-ISPI-2.0" path="*.svc" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
   </handlers>
  </system.webServer>
  
</configuration>

i can reference my https enabled wcf service into my silverlight application.

when when i try to login i received the below error and i could able to login.
"

An exception occurred during the operation,making the result invalid"



how to handle this..


need ur suggestions ..


regards
gopal.s

Somesh Yadav replied to gopal krish on 23-May-12 04:14 AM
Try this,
http://www.codeproject.com/Questions/168635/An-exception-occurred-during-the-operation-making
Jitendra Faye replied to gopal krish on 23-May-12 04:23 AM
I think this is because of your end point.

try to set like this-


<endpoint address="http://localhost:52878/webService.svc" binding="customBinding"
         bindingConfiguration="CustomBinding_webService" contract="ServiceReference1.webService"
         name="CustomBinding_webService" />