Resources
South African Identity Number validation: This complete (and free) class performs SA ID number validation and other checks. Download now.
Please Note:
We do not support any code resources unless you have an existing support contract. If you have any comments regarding any of the examples provided please mail them to: . Use of code resources is subject to our terms of use.
.Net C# Code Resources
.Net Project Tips
Remoting Memory Leaks
- Make sure their is no [STAThread] attribue on the Main method of your remoting application. Visual Studio adds it by default when you create a new application and many remoting samples on the web have this attribute.
- Do not use Microsoft.Samples.Runtime. Remoting.Security.SecurityClientChannelSinkProvider, Microsoft.Samples.Runtime.Remoting.Security (v2.0.18.0) for secure communication between client and server. Under a heavy load memory begins to leak.
Log4Net
- When using Log4Net with a remoting sink, don't use [assembly: log4net.Config.DOMConfigurator()] to setup the remote logging as you may see an tcp channel conflict if you are using app.config to register objects using the <wellknown /> element in app.config. Rather call log4net.Config.DOMConfigurator.Configure( new FileInfo( AppDomain.CurrentDomain. SetupInformation.ConfigurationFile )); in the OnLoad event which will ensure that your Log4Net uses the tcp channel that was automatically setup from the app.config.