.net

Regex slow on Windows Server 2008

Hi I have a situation where my regular expressions compile extremely slowly on Windows Server 2008. I wrote a small console application to highlight this issue. The app generates its own input and builds up a Regex from words in an XML file. I built a release version of this app and ran it both on my personal laptop (running XP) and ...

How do I find out which missing DLL is making my .NET application crash on startup?

When dependencies on 3rd party assemblies are added to a typical .NET application it's very easy to forget to add them to the installer. This problem tends to reveal itself only after the application is installed, and in the form of a crash on startup with little helpful information readily available. What are the best tools and techniq...

"Where" Linq capability in my own application

I need to have "Where" Linq functionality in my own code. Let me explain: we have an application that lets users write the so-called "user code", which is code in C# that will be picked up by the app and compiled and run at runtime. In user code, I need to be able to specify an SQL condition. A special case is the condition on a date...

Is there a List<T> in .NET 2 that raises events when the list changes?

I have used ObservableCollection<T> in the past, but that seems to belong to WPF and therefore .NET 3. And if there isn't what would be the appropriate interface for that? INotifyPropertyChanged seems not to be a very good fit for collections, while INotifyCollectionChanged is again only supported in .NET 3 and higher. ...

C# Class Methods Only Callable from certain Projects?

Hi All, This may not be at all possible but I thought I'd get your responses before we gave up the Idea. We have 3 main projects all in one Solution: Interface, Logic, and Data Access. The Data Access Project contains all the Object Classes with their variables and methods. The Logic Project contains classes that hold logic methods and...

Media File Conversion Library For .NET

Hi Folks, Was wondering if there exist out there any paid for or free .NET libraries (dlls) that performs file conversions, specifically for video. E.g .mov to .avi or 3gp etc. I've been googling all morning and found plenty of programs and sites that perform these tasks but we need top be able to build solution into our own application...

ADO.NET Framework change tracking

Hi, i just wanted to ask if there is a way the reject all changes made to a ADO.NET Framework model with its relations? Auditing in Entity Framework describes a way the restore the original value of a single entity. But is this possible for all unsaved changes in the whole database? ...

Converting from string bits to byte or hex

I have a string that contains the following 7 bits: 1101000. How can I convert it to a byte or int? ...

How to pass arguments to the Fitnesse .NET command line task runner

I have a Fitnesse.NET acceptance test suite that I want to run as part of my TFS/MSBuild CI build. The suite contains some Fitnesse variables that I need to override when calling from the build process, eg: !define ConnectionString {Data Source=...} How can I override the variable values defined in the suite when calling the suite fr...

converting from byte to 7 bit byte

hello, I am reading a file by binaryReader to a byte array but I want this array to be a 7 bit not 8 what can I use (utf7encoding)? Thanks. ...

How to check if COM component(exe/dll) is registered or not [using .NET]?

How to check if COM component(exe/dll) is registered or not using .NET? ...

C#.NET - How to inherit from an existing windows forms control

I'm used to working in visual C++. In learning C#.NET I tend to try to find equivalent methods to how things are done in VC++. When I have a button in C++, to get full control over it I create a class derived from CButton (the equivalent of System.Windows.Forms.Button in .NET) and then set this class as the type for my button in order t...

Serialization Exception in C#

Serialization exception occurs when I try to serialize a class in C#, cause it holds a reference to a non serializable class. The problem is that the class I want to serialize is very complicated, and contains a lot of references to other complicated classes, and I can't find the reference to the problematic class in this huge amount of ...

How to read data for nested classes?

Hi all, I'm sorry if my question isn't clear. I have a class contain some properties and one of them is "Parent" which the same type of this class. when i read data from Database i set the suitable value for each property. But how could i put the "Parent" property when i read it from database as "ParentID". If it's not clear I'll put...

Intermittent Problems with Web Services on Remote Hosting Server

I've got an ASP.NET web application and a .NET webservice which is used by the web application. These applications are hosted on a remote server I don't have remote shell access to. When the web application invokes the web method in the webservice, I get the following error message: A connection attempt failed because the connected pa...

Read RSAPublicKey in Java from XML file

How to read RSA Public Key in Java from xml file? This is file format. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <RSAKeyValue> <Modulus>jWa96uXeSM6hUH0E/ueihtuowdte8</Modulus> <Exponent>BAAQ</Exponent> </RSAKeyValue> ...

How to handle or detect Network Failure in VB.NET?

How to handle the Network failure error message,and how to simulate it? ...

Adding "Loading"-image on top of ListView

I'd like to add a "Loading"-image on the top of my ListView while all items are loading, if there are a lot of items being loaded, I still want a nice user experience. So therefore I want a floating Image ( Animated GIF ? ) on top of my ListView. How would one solve this and once you have the floating image or control, how do you make ...

.Net Internet Proxy

How to declare a network proxy for all windows programs to use? ...

How do you use commercial libraries in a continuous integration build?

Setting We are using licensed Infragistics winform controls for creation of desktop applications. All our software builds are performed on a CruiseControl.NET server. Remark: Never mind the combination of Infragistics and CCNET – any other commercial library of .NET controls and any other CI server will probably lead to the same situat...