.net

.NET DBF Database connectivity issue

Hey all, really bashing my head against a keyboard here, any information or pointing in the right direction would be fantastic. I have a set of .DBF files with .MDX indexes. They're supposed to be dBASE version 7, but the Borland BDE only connects to 5.0 reliably from what I've found. I can get connected using the IV and 5.0 connection...

Outrunning the Garbage Collector?

Ok this is potentially a noob question but here goes. Is it possible to "outrun" the garbage collector? The reason I ask is because I have a recursive method that gets run several times during some event in my application (by several I mean around 60 times per second and the event goes on for an indefinite amount of time, even minutes)...

Best way to store/retrieve millions of files when their meta-data is in a SQL Database

I have a process that's going to initially generate 3-4 million PDF files, and continue at the rate of 80K/day. They'll be pretty small (50K) each, but what I'm worried about is how to manage the total mass of files I'm generating for easy lookup. Some details: I'll have some other steps to run once a file have been generated, and ther...

How can I send user credentials for use on a remote machine using WCF?

I have two machines, we'll call them machine A and machine B. Machine B is running a Windows service written in C#.net, as the Local System account. Machine A tells machine B's service (using WCF) to open a file located on the network. Since local system is not a network user, it does not have access to network files, and is unable to op...

Commons VFS Equivalent for .Net

As above, does any one know of a decent equivalent for Jakarta Commons VFS for .Net ? ...

Cryptography C# Asp.Net: static RNGCryptoServiceProvider -- Is it secure & threadsafe for generating sessions and random passwords?

I'm building a web service that requires me to generate custom sessions and random passwords etc. I was wondering if making a static class and using 1 static RNGCryptoServiceProvider instance for the entire website is a good idea? 1. Is it threadsafe from multiple http request instances? 2. Is it secure? If I allow someone to generate m...

equation string in vb .net

Hello I'm trying to build a scientific calculator with vb .net, except it is vista glass :-p I basically want the user to be able to enter an equation like SQRT(5 * 6) / (2 ^ 4) and then I want vb to use system.math to solve it. If I write this in my code, vb is able to do it, so how could I do this at runtime. Thanks ...

What's the difference between System.Collections, System.Collections.Specialized, and System.Collections.Generic in .NET?

What is the major difference between the three? Right now, I want to create a key/value pair using both string/string respectively. All three seem to have options I can use. Edit: I just want to create a simple hash table - nothing really complex. ...

What is your most interesting use of WCF?

WCF provides a wealth of features and functionality that didn't exist in ASP.NET Web Services. I'm wondering if those with some real experience using the technology in a production environment can share their experiences on interesting usages now available because of the new functionality. I think it will be a helpful source of "oh, yo...

What is best and most active open source .Net search technology?

I'm trying to decide on an open source search/indexing technology for a .Net project. It seems like the standard out there for Java projects is Lucene, but as far as .Net is concerned, the Lucene.Net project seems to be pretty inactive. Is this still the best option out there? Or are there other viable alternatives? ...

How can a WCF XElement Response include the XML Declaration?

I have a WCF service that is returning an XElement, this is working fine however I would like it to include the XML Declaration in the response: <?xml version="1.0" encoding="utf-8"?> The client side is not something that I can change and is reporting a "Result is not XML" The only other differences between the response of my HTTP re...

ReflectionOnlyLoadFrom & Unload?

If I do a Assembly.ReflectionOnlyLoadFrom(), is it possible to unload the assembly? Or, can it be unloaded only if it is in a separate AppDomain, as with Assembly.LoadFrom() ? I have a tool that needs to load an assembly for inspection. ...

Getting the address of a bluetooth device

I'm trying to write an application that gets the addresses of any bluetooth devices in range, no pairing or any transfer, just want the address that's all. Any advice where to start? Many thanks .. ...

How can I access the DOM using WebKit.NET?

I'm using WebKit in a C# application to render a CSS-styled XML document, and I'd like to be able to add DOM elements. How do I get access to the DOM to do this? The problem seems to be that there is no property in the WebKitBrowser class that gives access to the private webView member. Is it possible? Do I need to modify the class to ad...

Is this code thread-safe? How can I make it thread-safe? (C#)

I have a WCF service with a security class for getting some of the attributes of the calling user. However I'm quite bad when it comes to thread safety - to this point, I haven't needed to do much with it, and only have a rudimentary theoretical understanding of the problems of multi-threading. Given the following function: public clas...

No 'Home Site' attribute has been provided for 'Office2003PIA'.

I have Office 2003 PIA as dependency in my setup project. when I build my project I'm getting following Warning. Warning 1 No 'HomeSite' attribute has been provided for 'Office 2003 PIAs', so the package will be published to the same location as the bootstrapper. ...

C# on Windows Mobile

Hi friends, I am new to C# , working on C# for windows mobile. I have done basic examples , however where should i get necessary documents (APIS , examples etc ) for C# so that i can explore more . ...

LINQ -Single operator

Hello. I've read about this operator on a book but being that I don't use databases that much, I cannot think of any circunstance where I'd want to get a single item. I mean, I can have a set of conditions, but then I'd use First or Last, not Single. What is the difference? What is the point of having it return just a single item, and th...

How deep does a lock go?

I have the following code: locker = new object(); lock (locker) { for (int i = 0; i < 3; i++) ver_store[i] = atomic_Poll(power); } I was just wandering, considering the function within the lock accesses some global resources, (an open socket among them) ...

WCF: Client Impersonation

Hi there, I have a console app client that talks to a WCF service hosted by a console app on a different server. It use windows authentication with security mode = message It works just fine until I change the service to impersonate the clients credentials. The changes I do to accomplish that is: 1. Add serviceAuthorization impersonate...