Or Add reliableSession binding setting into client side as well.
Thursday, March 20, 2014
How to solve problem, Only WS-ReliableMessaging messages are processed by this endpoint
Remove reliableSession binding from WCF server side setting.
Wednesday, March 19, 2014
How to enable WCF tracing to debug weird problem?
Got a weird WCF timeout exception
The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue
The read operation failed, see inner exception.
After tried all of settings related to timeout, decided to enable WCF tracing to see what exactly happened on server side.
Found one serialization exception in the log, solved the problem.
Put following setting to enable WCF tracing:
http://msdn.microsoft.com/en-us/library/ms733025.aspx
The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue
The read operation failed, see inner exception.
After tried all of settings related to timeout, decided to enable WCF tracing to see what exactly happened on server side.
Found one serialization exception in the log, solved the problem.
Put following setting to enable WCF tracing:
http://msdn.microsoft.com/en-us/library/ms733025.aspx
How to valid phone by Knockout Validation plugin ?
Add Knockout Validation reference into project from
https://github.com/ericmbarnard/Knockout-Validation
https://github.com/ericmbarnard/Knockout-Validation
self.Telephone = ko.observable("").extend({
required: true,
pattern: {
message: '*Invalid Phone Number. (Format: 999-999-9999)',
params: /\d{3}-\d{3}-\d{4}/
}
});
Wednesday, March 12, 2014
How to cast base class into derived class by JavaScriptSerializer
BaseClass b = new BaseClass(){};
System.Web.Script.Serialization.JavaScriptSerializer ser = new System.Web.Script.Serialization.JavaScriptSerializer();
var json = ser.Serialize(b);
DerivedClass d = ser.Deserialize(json);
Subscribe to:
Posts (Atom)