.net

there is something called Self running applications?

I need to create an application "dll, script or exe" which when the user upload on a folder on his server using his ftp, it will automatically run on the current folder and do some image manipulations in the folder images, My Question is how to make something like this, which the user will not need to configure anything on his server, a...

Disconnected Data Windows Program using Sql Server Compact

I am going to need to create a small windows application that stores basic data about people. The requirements are: Recruiters go out into the field and gather demographic data about people they talk to. Recruiters return 'home' and contribute their gathered data into the main database (SQL Server 2005). This is the first time I hav...

LaTex for .NET

I am using ItextSharp to generate PDF. Part of our output, we have a lot of math related content. Maybe we can use some kind of Latex library to feed the result to ItextSharp to produce PDF. I have been googling for a while now but found nothing. Do you know if there is a latex library for .NET exists? Also, do you know if ItextSharp ...

ASMX username and password security

I have a basic ASMX service that I'm trying to get running (I'd rather use WCF but can't get the server to work with it). It runs fine in a no security setup but as soon as I turn on security I get: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was '...

What's the most appropriate exception to throw if a required app/web.config configuration setting is not present?

(Asked by @tomhollander on Twitter) What's the most appropriate exception to throw if a required app/web.config configuration setting is not present? ...

Interaction between PHP front-end and .NET/Java backend though XML-RPC: performances consideration

I'm implemented a solution which is constituted by a .NET back-end application based on ASP.NET: since the team that I'm considering to build should be composed of me and one or two front-end developers working in PHP. A good side effect of this architecture is that PHP is a fast server-side scripting engine which require less resource...

Linq To SQL Many to Many

I would like to know how to save new associations for entities with many to many relationships. I've got 3 tables: Partner - -- ParnterID -- ParnterName -- Etc PartnerRegion -- PartnerRegionID -- RegionID -- PartnerID Region -- RegionID -- RegionName -- Etc I have the entities created, and the associations appear in my ent...

How do I Copy the Values of an IDictionary into an IList Object in .Net 2.0?

If I have a: Dictionary<string, int> How do I copy all the values into a: List<int> Object? The solution needs to be something compatible with the 2.0 CLR version, and C# 2.0 - and I really dont have a better idea, other than to loop through the dictionary and add the values into the List object one-by-one. But this feels very in...

Linq criteria query

Linq query for: Record in MyTable has two child records, I want to check if either of these records have an Id from a list of integers. ...

What are the type parameter naming guidelines?

I noticed, as well as saw in the Essential C# 3.0 book, that paramters are usually defined as T or TEntity For example: public class Stack<T> { } or public class EntityCollection<TEntity> { } How do you decide which name to use? Thanks ...

Select .NET Framework to Use In Visual Studio Application

If I have different .NET frameworks installed on my machine (i.e. 1.1, 2.0. 3.0, 3.5), is it possible for VS2005 to select with which framework to create / compile an application (Winform/Webform)? ...

Why is conversion between with different type parameters is NOT allowed?

I just don't get it as it would be so useful to convert one generic container into the other? Stack <IType> stack = new Stack<SomeType>(); ...

XML encoding issue

Hello everyone, I want to know whether there is quick way to find whether an XML document is correctly encoded in UTF-8 and does not contains any characters which is not allowed in XML UTF-8 encoding. <?xml version="1.0" encoding="utf-8"?> thanks in advance, George EDIT1: here is the content of my XML file, in both text form and in ...

Deciding Factor for Asynchronous Programming

What could be the deciding factor to use the methods asynchronously. One factor i can understand is independent and parallel execution so as to save time and uses the available resources. What could be the other factors ??? Any help is highly appreciated. ...

How to use cumstomized configuration xml file?

I am going to use StructureMap as a way to do DI. I'll use xml as my DI configuration. I have two questions. The first one is how to use a customaized xml file name instead of StructureMap.Config? For example, in my console application, if I want to use myDIStructure.config file, what class and method should I use in the main(): privat...

How to avoid Socket.EndReceive()blocking when no data is available

I am using the BeginReceive() and EndReceive() method for async IO using Sockets in .NET. The client sends continuous packets of data and calling EndReceive() returns the number of bytes read. The problem is that the client is sending packets of data but data length is ZERO. It found this by analyzing the traffic in WireShark. When the ...

Is managed code is the only way to use SMO in c++???

I have to work with SQLSERVER SMO in C++. Is Managed code is the only way to work with SQLSERVER SMO in C++ ? I have tried many ways.. but I found that using managed code is the only option. Are there other ways? ...

Does the C# Convert.ToDateTIme function read date as "dd/mm/yyyy" or "mm/dd/yyyy"?

Does the C# Convert.ToDateTIme function read date as "dd/mm/yyyy" or "mm/dd/yyyy"? I have the same application on my local machine which I uploaded to my remote shared server. It was working perfectly on my local machine reading "dd/mm/yyyy", but on my remote machine, it seems to read dates as "mm/dd/yyyy". I have the same culture setti...

One line if in VB .NET

Is it possible to do one line if statement in VB .NET? If so, how? ...

Change forecolor of disabled combobox

I need black forecolor in a disabled combobox. Is it possible? ...