How to create PIPE accessible from remote computers in .NET 4.0?
How to create PIPE accessible from remote computers in .NET 4.0? And how to access it? ...
How to create PIPE accessible from remote computers in .NET 4.0? And how to access it? ...
You can create custom profile properties in Web.config like so: <configuration> <system.web> <profile> <providers>...</providers> <properties> <add name="MyCustomProperty" allowAnonymous="false" type="MyCustomType" serializeAs="String" defaultValue="MyCustomType.Empt...
I would like to format values so that a value like 20000 would display as $20k and so on. What would be the C# format? ...
Hi, Did someone implement something like this: http://www.jeremyskinner.co.uk/2010/02/22/using-fluentvalidation-with-an-ioc-container/ in s#arp? Thanks. Christian PS: Hi, I have made a start in using FluentValidation in S#arp. I have implemented a Validator factory: public class ResolveType { private static IWindsorC...
How do software houses like Microsoft or anti-virus companies patch/update their software? Anti virus companies dont send the complete executable; only new virus signatures I suppose. Similarly, Ive noticed microsoft sends certain files to the '$NtUninstallKB......$' folder that it creates when it the windows update program runs. I sup...
I have some code like this to find all instances of the template in the result image. Image<Gray, Byte> templateImage = new Image<Gray, Byte>(bmpSnip); Image<Gray, float> imgMatch = sourceImage.MatchTemplate(templateImage, Emgu.CV.CvEnum.TM_TYPE.CV_TM_CCOEFF_NORMED); and then looping through the imgMatch.Data[,,] Property check if the...
In my web application I am using NHibernate.dll. This has a dependency on folowing assembly. 'Antlr3.Runtime, Version=3.1.0.39271, Culture=neutral, PublicKeyToken=3a9cab8f8d22bfb7' Now in the same project for another requirement I have to introduce Antlr3.StringTemplate.dll. Which has a dependency on another version of the abov...
Hi, i want to create a client-server application using sockets on .net platform and being new to networking programming and i have a dilemma. The client will send data to server often and also the server will notify clients often. What is the best way to design it? should the server keep a thread to communicate with each client until it ...
Apparently the TaskFactory.StartNew method in .NET 4.0 is intended as a replacement for ThreadPool.QueueUserWorkItem (according to this post, anyway). My question is simple: does anyone know why? Does TaskFactory.StartNew have better performance? Does it use less memory? Or is it mainly for the additional functionality provided by the T...
Hi All, I need the snippet code in C# to mantain selected the row from a DataGridView after that row is double clicked. Right now I'm displaying data from a dataset and the selection mode is FullRowSelect. Any way to set this? There are two scenarios to deal with: Everytime the timer ticks the selected row always go to the first r...
I know that in .net any 32bit type (int, bool, etc) are threadsafe. you know that there won't be a partial write ever (according to the spec). Does the same apply for int? (nullable int) ...
I have an application I wrote which has been running well for 4 years. Yesterday they moved all their servers around and installed about 60 pending Windows updates, and now it is broken. The application makes use of remoting to update some information on another server (10.0.5.230), but when I try to create my remote object, I get the fo...
The ClickOnce uninstaller does not kill my application. Is there a way I can close my app when it's uninstalled using ClickOnce? ...
Is there any interpreter that takes a string or even a custom object as input and execute it on my datasource? I cannot use linq to object because query always changes and the report i'm working on, has about 6000 queries which i can reduce to 9 if i find some tool doing that for me. Opensource is very applicable. thanks in advance. ...
One of our customer seems to have a very old email system, those that ask you to authenticate to the POP3 server before allowing you to send messages through the SMTP server. Regrettably, we have to believe in what our customer tell us for we cannot access their facilities. But as far as I remember, years ago there were mail systems that...
The following C# WCF based REST service gives me some undesired headers that I'm not sure if I can remove them trough the API. The interface: [ServiceContract] public interface IControlSystem { [OperationContract] [WebGet] System.IO.Stream About(); } The implementation: public class ControlSystem : IControlSystem { p...
Background info: I've set up a very simple .NET solution in VS2008 that contains just enough code to display an ActiveReports report in a preview window. The ActiveReports component uses the licenses.licx mechanism to decide whether it has been properly licensed or not. If it finds no valid license key, it will display a prominent messag...
I have a gridview which displays data for all employees and their images (stored in database). The images take more time to render completely when i click sort or paging or reload. I'm using httphandler to display image as stream. Is there a way i can speed up this image loading? ...
I have a C# ASP.NET Web service that takes in xml as a string. The xml gets loaded up into an XmlDocument and parsed. The problem I have is that the caller might be sending Xml inside my xml elements, which will fail schema validation for me. My question is this: what is the recommended approach for dealing with this type of situation? I...
Let's say I have a custom object of Foo Is there anyway I can sort through a list of these objects, like list<of foo>.sort() and also be able to sort this list with a passable parameter. which will influence the sort? list<of foo>.sort(pValue) I'm guessing I'll need to define two separate sorts, but I am not sure. EDIT: using bu...