none
Wcf Improper functioning after heavy downloading RRS feed

  • Question

  • Hi ,

    A day earlier I tried to Sync for a table which has nearly 12 lac rows and 99 columns.

    But even after one hour there was no activity.Therefore I stopped the application.

    When I started again the earlier scopes which were successfully Synched ,even they cannot be executed successfully.

    <bindings>

    <

    wsHttpBinding>

    <

    binding name="NewBinding0" closeTimeout="00:50:00" openTimeout="00:50:00" sendTimeout="00:50:00" receiveTimeout="00:50:00" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647">

    <

    readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />

    <

    reliableSession enabled="true" />

    <

    security mode="None">

    <

    transport clientCredentialType="None" />

    <

    message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="false" />

    </

    security>

    </

    binding>

    </

    wsHttpBinding>

    </

    bindings>

    <

    diagnostics wmiProviderEnabled="true">

    <

    messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" />

    </

    diagnostics>

    <

    services>

    <

    service behaviorConfiguration="DBSyncWcfService.Service1Behavior" name="DBSyncWcfService.DBSyncService">

    <

    endpoint binding="wsHttpBinding" bindingConfiguration="NewBinding0" name="ABC" contract="DBSyncWcfService.IDBSyncContract" address="http://192.168.5.170:9999/" />

    <

    host>

    <

    baseAddresses>

    <

    add baseAddress="http://192.168.5.170:9999/" />

    </

    baseAddresses>

    </

    host></service></services>

    <

    behaviors>

    <

    serviceBehaviors>

    <

    behavior name="DBSyncWcfService.Service1Behavior">

    <

    serviceCredentials>

    <

    windowsAuthentication allowAnonymousLogons="true" />

    </

    serviceCredentials>

    <

    serviceMetadata httpGetEnabled="true" />

    <

    serviceDebug includeExceptionDetailInFaults="true" /></behavior></serviceBehaviors>

    In client below is the

    I restarted the WCf but to no avail.Is there any stuff which I am missing...

    I am mentioning below settings in Config file.

    <

    WSHttpBinding

    binding = new WSHttpBinding();

    //binding.ReaderQuotas.MaxArrayLength = 10485760;

    //binding.MaxReceivedMessageSize = 10485760;

    binding.Security.Mode =

    SecurityMode.None;

    binding.Security.Transport.ClientCredentialType =

    HttpClientCredentialType.None;

    binding.Security.Message.ClientCredentialType =

    MessageCredentialType.Windows;

    binding.Security.Message.EstablishSecurityContext =

    false;

    //binding.Security.Message.NegotiateServiceCredential = true;

    binding.ReliableSession.Enabled =

    true;

    binding.ReaderQuotas.MaxArrayLength = 2147483647;

    binding.ReaderQuotas.MaxDepth = 2147483647;

    binding.ReaderQuotas.MaxNameTableCharCount = 2147483647;

    binding.ReaderQuotas.MaxBytesPerRead = 2147483647;

    binding.MaxReceivedMessageSize = 2147483647;

    binding.ReaderQuotas.MaxStringContentLength = 2147483647;

    binding.MaxBufferPoolSize = 2147483647;

    binding.ReaderQuotas.MaxArrayLength = 2147483647;

    binding.ReaderQuotas.MaxDepth = 2147483647;

    binding.SendTimeout =

    TimeSpan.FromMinutes(50);

    binding.CloseTimeout =

    TimeSpan.FromMinutes(50);

    binding.OpenTimeout =

    TimeSpan.FromMinutes(50);

    binding.ReceiveTimeout =

    TimeSpan.FromMinutes(50);

    //EndpointIdentity.CreateUpnIdentity("user@domain");

    ChannelFactory<IDBSyncContract> factory = new ChannelFactory<IDBSyncContract>(binding, new EndpointAddress(endPointURL));

    dbProxy = factory.CreateChannel();

    Friday, November 16, 2012 5:45 AM

All replies

  • do you get any error? have you tried looking at a WCF trace?
    Friday, November 16, 2012 5:53 AM
    Moderator
  • I made an IIS reset.

    It worked.May I know any stuff about this behaviour how it worked and why even Sync from other machines did not worked.

    Regards,

    Sachin K

    Friday, November 16, 2012 5:58 AM
  • Hi June,

    Thanks for the Reply.I do have  Wcf trace.

    But there was no trace on Logs.

    Friday, November 16, 2012 6:54 AM
  • i suggest you check you're WCF trace configuration...that should have something on the logs, otherwise you might not be logging traces in detail...
    you may aslo fiddler or even enable Sync Framework tracing itself.
    Friday, November 16, 2012 7:09 AM
    Moderator
  • Hi June,

    1.Impact of Enabling  Sync Framework  Tracing.

    Will it help with Sync Framework Sessions acting at Server (WCF) end.?

    2.Also how to cope up with such huge data (say 20-30 lacs rows)

    Is it safe to do.

    3.Also logs did not reflect anything(wcftrace.svclog).

    In fact last hit was on log of yesterday..i.e still there must be some activity left on server side...

    Also how the framework will act with multiple clients to one server...

    Thanks in Advance.

    Friday, November 16, 2012 10:11 AM