المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : WCF Connection



C# Programming
09-29-2010, 11:50 PM
Hello everyone,

ActiveDB.DBContractsClient _Proxy = new ActiveDB.DBContractsClient();

_Proxy.Open();

_Proxy.ExecuteQuery("Select 1", new object[] { });

_Proxy.Close();

_Proxy.Open();
_Proxy.Close();


I have the following code to demonstrate my problem. Till the point where is the second open it works fine, but when it tries to open to connection for the second time it says cannot open object because it is disposed.

Am I doing something worng or any ideas on how i may fix it?

Thank you for any help.