Friday, September 7, 2012

Call to WCF service never gets back

Call to WCF service never gets back

I have a silverlight project calling a WCF service.

It has worked perfectly for months but yesterday I had problems with my TFS and had to recreate the edmx... and it has stopped working.

The call to the service is done and it's executed perfectly (debugging it I can see how it gets data from the database and goes until the return) but it never executes the "completed" event.

Any idea of where can I look at?? I'm really stucked with this because I don't know where the problem comes from...

This is the Service Web.config.

<?xml version="1.0" encoding="utf-8"?> <configuration>   <system.web>     <compilation debug="true" targetFramework="4.0">       <assemblies>         <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />       </assemblies>     </compilation>     <httpRuntime maxRequestLength="2097151" />     <customErrors mode="Off" />   </system.web>   <system.serviceModel>     <bindings>       <basicHttpBinding>         <binding name="BasicHttpBinding_IServicioFileUpload" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">           <security mode="None" />         </binding>         <binding name="BasicHttpBinding_IServicioIntranetCompany" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">           <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"></readerQuotas>         </binding>         <binding name="BasicHttpBinding_IServicioFicheros" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">           <security mode="None" />         </binding>       </basicHttpBinding>     </bindings>     <behaviors>       <serviceBehaviors>         <behavior>           <!-- Para evitar revelar información de los metadatos, establezca el valor siguiente en false y quite el extremo superior de los metadatos antes de la implementación -->           <serviceMetadata httpGetEnabled="true" />           <!-- Para recibir detalles de las excepciones en los fallos, con el fin de poder realizar la depuración, establezca el valor siguiente en true. Para no revelar información sobre las excepciones, establézcalo en false antes de la implementación -->           <serviceDebug includeExceptionDetailInFaults="false" />         </behavior>       </serviceBehaviors>     </behaviors>     <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />   </system.serviceModel>   <system.webServer>     <security>       <requestFiltering>         <requestLimits maxAllowedContentLength="2147483647" />       </requestFiltering>     </security>     <modules runAllManagedModulesForAllRequests="true" />   </system.webServer>   <connectionStrings>      <add name="Informes.Properties.Settings.Company" connectionString="Data Source=192.168.10.11;Initial Catalog=Company;Persist Security Info=True;User ID=aplicacion;Password=123456/(A" providerName="System.Data.SqlClient" />    <add name="CompanyEntities" connectionString="metadata=res://*/Modelo.ModelCompany.csdl|res://*/Modelo.ModelCompany.ssdl|res://*/Modelo.ModelCompany.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=xxx.xxx.xx.xx;initial catalog=Company;persist security info=True;user id=aplicacion;password=blablabla;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />   </connectionStrings> </configuration> 

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog