Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WCF Service Communication Exception after Sometime

WCF Service Communication Exception after Sometime

Scheduled Pinned Locked Moved WPF
helpcsharpwcfsysadmindata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vinodkrebc
    wrote on last edited by
    #1

    Dear All, We are using multiple WCF service in our silverlight project. The problem is when we leave the service Idle for 3-4 minutes we get problem. The exception is below:: {System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState) at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState) --- End of inner exception stack trace --- at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result) --- End of inner exception stack trace --- at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result) at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result) at TS.HrmsPortalApp.ExpenseSVC.ExpenseSVCClient.ExpenseSVCClientChannel.EndGetExpensePolicyDetail(IAsyncResult result) at TS.HrmsPortalApp.ExpenseSVC.ExpenseSVCClient.TS.HrmsPortalApp.ExpenseSVC.ExpenseSVC.EndGetExpensePolicyDetail(IAsyncResult result) at TS.HrmsPortalApp.ExpenseSVC.ExpenseSVCClient.OnEndGetExpensePolicyDetail(IAsyncResult result) at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)} The service works fine and keeping service idle for only 2-3 minutes throws the above exception. We have set the timeout to 20 minutes. I don't know what exactly the problem is. I would be very thankful to all of you if you could help me to get this problem resolved. I have already increased the max sizes for various parameters.

    Vinod Kumar Prajapati Software Engineer Tirsoft Systems Pvt Ltd

    D 1 Reply Last reply
    0
    • V vinodkrebc

      Dear All, We are using multiple WCF service in our silverlight project. The problem is when we leave the service Idle for 3-4 minutes we get problem. The exception is below:: {System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState) at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState) --- End of inner exception stack trace --- at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result) --- End of inner exception stack trace --- at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result) at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result) at TS.HrmsPortalApp.ExpenseSVC.ExpenseSVCClient.ExpenseSVCClientChannel.EndGetExpensePolicyDetail(IAsyncResult result) at TS.HrmsPortalApp.ExpenseSVC.ExpenseSVCClient.TS.HrmsPortalApp.ExpenseSVC.ExpenseSVC.EndGetExpensePolicyDetail(IAsyncResult result) at TS.HrmsPortalApp.ExpenseSVC.ExpenseSVCClient.OnEndGetExpensePolicyDetail(IAsyncResult result) at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)} The service works fine and keeping service idle for only 2-3 minutes throws the above exception. We have set the timeout to 20 minutes. I don't know what exactly the problem is. I would be very thankful to all of you if you could help me to get this problem resolved. I have already increased the max sizes for various parameters.

      Vinod Kumar Prajapati Software Engineer Tirsoft Systems Pvt Ltd

      D Offline
      D Offline
      Daniel Vaughan
      wrote on last edited by
      #2

      Hi Vinod, Have you updated both the server web.config and the client Servicereference.Clientconfig, with the longer timeout settings? Cheers, Daniel

      Daniel Vaughan Twitter | Blog | Microsoft MVP | Projects: Calcium SDK, Clog | LinkedIn

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups