I have .Net service that listens on single port over TCP protocol. Clients connect and then transmit data for some time (from few minutes to several hours).
Is there any limit on number of connections on Windows 2008 server? I did not hit any, since now there is up to 50 users. Plan is to have thousands of users, so I'd like to know if...
The PhysicalAddress (used for MAC addresses) class supports variable-length byte arrays. As far as I know MAC addresses are always 48-bit long.
Is there a reason why the PhysicalAddress allows any lenghts?
...
Problem
The basic problem is I want to debug some 3rd party code to see how it works so I can replace part of it.
Is there anyway to redirect the binding so that it will not use the dll in the GAC but instead the copy I compiled instead (which will be either unsigned or have a different public key).
Details
The specific item in que...
By design I'm expecting a DuplicateKeyExeception from time to time.
Is it possible to recover from such situation without recreating the Datacontext?
Ideally I would like to remove all records that have duplicated key.
...
I'm using TransactionScope to submit data in Linq to SQL. My question is, if I use multiple SubmitChanges in the same scope, will all scope roll back in case of an error or just the changes made after the last SubmitChanges? For example:
using (TransactionScope trans = new TransactionScope())
{
using (dbDataContext db = new dbDataCo...
System.Environment.OSVersion does not appear to indicate which Edition of Windows 2003 is installed (Standard, Enterprise, DataCenter).
Is there any way to access this information using managed code only?
I know I can use P/Invoke to call GetVersionEx and examine OSVERSIONINFOEX.wSuiteMask to get this info, but I'm looking for a simple...
I am trying to build a simple booking application for a school presented as a WebPart that pulls data from several SPLists for existing bookings, recurring (timetabled) bookings and a list of available rooms used as a filter.
I admit from the outset that ASP.net isn't my strong point, I am more inclinded to use Console and WinForms proj...
Lets say I have classA which contains classB and both are [Serializable].
I assumed, that on Deserialization classB would be deserialized first.
This is not the case however, as I could confirm by just logging when each [OnDeserialized] methods were hit.
Now I have the following issue:
After classA's deserialization is complete, it i...
Why is most of the agent research and work done in Java? Is there a reason that the developers seem to have completely steered clear of .net framework or is it that it just doesn't get talked about among researchers as the .net is more commercial than Java?
...
Hi,
I have a group in facebook, and I want to build something like the fanbox in which I get the last posts and users that have collaborated in the group.
I have to program in .NET, and I have not found any info about all this.
I have seen info about applications but I think this is not what I need.
Could you recommend some example...
Data class, in this question scope, is a class with more public properties than methods.
Should I:
public class Complex
{
public double Real { get; set; }
public double Imaginary { get; set; }
}
Or:
public class Complex
{
public double Real { get; set; }
public double Imaginary { get; set; }
public Complex(double...
I'm trying to figure out how to manage my event ids. Up to this point I've been putting each event id in each method manually with each step in a method numbered sequentially. This doesn't allow me to effectively filter events in the event log. In order to use the filter in the event log, it seems that every logged event must have its...
My colleagues are using Visual Studio 2002 and uses the C++ MFC. I am developing in C #.
It has not been any problems before, but now questioning our customers if we really should develop in different environments. My colleagues think (of course) that I should move to C++ MFC. I think that they can use .NET instead of MFC.
Is there a...
With the following Stored Procedure in SQL Server 2005
IF OBJECT_ID('[dbo].[UserProfile]') IS NOT NULL
DROP PROCEDURE [dbo].[UserProfile]
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS OFF
GO
CREATE PROCEDURE [dbo].[UserProfile]
(
@UserId VARCHAR(20)
)
AS
IF @UserId = 'userId'
BEGIN
SELECT @UserId = 'Yes'
END
ELS...
Hi,
Whats your favourite library for .Net for handling either:
BBCode markup
Wiki markup
Why do you use those libraries, what is so good about them and why should I use them?
Cheers
Moo
...
When compiling my solution, I get several warnings of the following:
warning CS3016: Arrays as attribute arguments is not CLS-compliant
No other information on what type is not compliant is given. In my projects I have some attributes that take params array arguments in their constructors, but they are all internal, and that shouldn't...
I have a Dictionary<int, string> which I want to take the Key collection into a CSV string.
I planned to do:
String.Join(",", myDic.Keys.ToArray().Cast<string[]>());
The cast is failing though.
Thanks
...
I have been tasked to create a form designer application in Windows Forms. The application will be used to layout "controls" on a page. The controls would most likely be images that can be resized and repositioned within the form. The result of the designer would be a file with the relative positions of the images or "controls" on the...
Hi
I Develop a Form Designer, also develop some custom control that inherit from standard control like button.
Also, i have some property that related, for example user must select department first, and then select person. and after user select person, I set Text of my custom control (that inherit from button in this case). Note: use...
I have created a Data Access Layer using .NET. Everywhere that I update a database record, I have used sql along the lines of
UPDATE Customer SET FirstName=:FirstName, LastName=:LastName, Address1=:Address1, Address2=:Address2,....etc
This means that every field in the record is updated, even though only one field may have been cha...