Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

Max tcp/ip connections on Windows Server 2008

I have .Net service that listens on single port over TCP protocol. Clients connect and then transmit data for some …

.net windows tcp windows-server-2008
string.IsNullOrEmpty(string) vs. string.IsNullOrWhiteSpace(string)

Is use of string.IsNullOrEmpty(string) when checking a string considered as bad practice when there is string.IsNullOrWhiteSpace(string) …

c# .net string
System.Runtime.InteropServices.COMException (0x800A03EC)

Microsoft.Office.Interop.Excel.WorkbookClass.SaveAs() method is working fine on Windows server 2003 and also on XP but not on …

.net iis com excel-interop
How to spawn a process and capture its STDOUT in .NET?

I need to spawn a child process that is a console application, and capture its output. I wrote up the …

c# .net process spawning
Getting multiple keys of specified value of a generic Dictionary?

It's easy to get the value of a key from a .NET generic Dictionary: Dictionary<int, string> greek = …

c# .net
Handling Dialogs in WPF with MVVM

In the MVVM pattern for WPF, handling dialogs is one of the more complex operations. As your view model does …

.net wpf design-patterns mvvm dialog
Determine .NET Framework version for dll

I have an old dll that was compiled against the .NET framework and deployed. I am not sure which version …

.net .net-framework-version
Service Reference Error: Failed to generate code for the service reference

I have a Windows Service Solution and am trying to add a service reference to a Hermes(Opensource ebms message …

c# .net visual-studio-2010 web-services service-reference
How to initialize a list with constructor?

I have a type: public class Human { public int Id { get; set; } public string Address { get; set; } public string Name { …

c# .net visual-studio asp.net-3.5
.NET DateTime to SqlDateTime Conversion

While converting .NET DateTime (when is default(DateTime)) to SqlDateTime should I always check if the .NET date is between …

c# .net datetime sqldatetime