string rootpath = HttpContext.Current.Request.ApplicationPath;
Or
string rootpath = Url.Content("~"),
Monday, March 24, 2014
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.
Or Add reliableSession binding setting into client side as well.
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}/
}
});
Subscribe to:
Posts (Atom)