c# - WCF timeout error with code running fine -


i have project uses wcf service database queries, builds "environment" object (which consists of different database class objects) , returns inside "workspace" object client. it's been running fine.

i added "database" type service correct contract , method updates. when call method client times out after 1 minute. in debugging take 3-5 seconds hit end of service method. nothing happens rest of minute until on client side see timeout problem. there no errors/exceptions thrown.

please see below:

calling client:

490  m_scanworkspace = m_connection.scanproxy.createenvironments 

end of service method:

477   return tworkspace; 478 } 

it takes 3-5 seconds line 478 in service. f10 shows it's complete.

nothing happens until 1 minute later when line 490 in client shows timeout error. while debugging can see valid object in tworkspace.

firstly, set wcf tracing using diagnostics namespace. use first example on tutorial , wcf dump out log of activity, can open in log viewer. tell call failing, pinpoint problem.

wcf great, error messages gives cryptic , close useless. timeout after 1 minute doesn't mean timeout mean - i.e. couldn't find server. other issues.

more there threshold exceeded causes response object incomplete. array length, string content length, message size, , on. find of these detailed here: https://stackoverflow.com/a/480191/146077

good luck!


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -