WCF 2nd operation fails.
-
I have not done any research into this yet (it'd Friday evening and I don't have the patience left) but I have a rather weird problem. Using VS2008, Silverlight 3... I have built a WCF service (NOT web service) and a silverlight UI, this works fine, pulls back data from the database and displays it in a datagrid. Except if I stop and restart the app it fails, EVERY time. Oh it throws some generic "service does not like you" error that I'm told is the catch all error. Any suggestions and research links will be appreciated tomorrow morning, till then have a good evening all.
Never underestimate the power of human stupidity RAH
-
I have not done any research into this yet (it'd Friday evening and I don't have the patience left) but I have a rather weird problem. Using VS2008, Silverlight 3... I have built a WCF service (NOT web service) and a silverlight UI, this works fine, pulls back data from the database and displays it in a datagrid. Except if I stop and restart the app it fails, EVERY time. Oh it throws some generic "service does not like you" error that I'm told is the catch all error. Any suggestions and research links will be appreciated tomorrow morning, till then have a good evening all.
Never underestimate the power of human stupidity RAH
It would be better if you listed specifics of your program. First of all, do you keep the data connection open all the time? If so the first thing to look at is making your connection to the database short lived. So every round trip requires creating a client, doing client.Open(), making the call and client.Close() followed by the async response handler. Make sure you are always closing your client and not leaving behind any connections that could cause problems.
-
It would be better if you listed specifics of your program. First of all, do you keep the data connection open all the time? If so the first thing to look at is making your connection to the database short lived. So every round trip requires creating a client, doing client.Open(), making the call and client.Close() followed by the async response handler. Make sure you are always closing your client and not leaving behind any connections that could cause problems.
Thanks Michael, step one is now defined. I assume the data connection is NOT the one between service and the database but the connection between the client and the service. [edit] Step one fixed the problem, thank you [/edit]
Never underestimate the power of human stupidity RAH
-
I have not done any research into this yet (it'd Friday evening and I don't have the patience left) but I have a rather weird problem. Using VS2008, Silverlight 3... I have built a WCF service (NOT web service) and a silverlight UI, this works fine, pulls back data from the database and displays it in a datagrid. Except if I stop and restart the app it fails, EVERY time. Oh it throws some generic "service does not like you" error that I'm told is the catch all error. Any suggestions and research links will be appreciated tomorrow morning, till then have a good evening all.
Never underestimate the power of human stupidity RAH
-
Yes the UI. I turns out that was only 1 of the problems I had :)
Never underestimate the power of human stupidity RAH