Top ".net" questions

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

How to count the number of rows in excel with data?

column A has data like this (ie frequent blank cells): HEADING <-- this is A1 kfdsl fdjgnm fdkj gdfkj 4353 …

.net vb.net excel vba excel-interop
How to set .net Framework 4.5 version in IIS 7 application pool

I installed the Visual Studio 11 Beta and suddenly all the async action methods I had created under the VS 11 Developer …

.net visual-studio iis
Invalid URI: The format of the URI could not be determined

I keep getting this error. Invalid URI: The format of the URI could not be determined. the code I have …

c# .net winforms uri
Post parameter is always null

Since upgrading to RC for WebAPI I'm having some real odd issue when calling POST on my WebAPI. I've even …

c# .net asp.net-web-api asp.net-web-api-routing
C# getting the path of %AppData%

C# 2008 SP1 I am using the code below: dt.ReadXml("%AppData%\\DateLinks.xml"); However, I am getting an exception that …

c# .net path
Difference between "\n" and Environment.NewLine

What is the difference between two, if any (with respect to .Net)?

c# .net cross-platform
Run an exe from C# code

I have an exe file reference in my C# project. How do I invoke that exe from my code?

c# .net
What is the maximum possible length of a .NET string?

What is the longest string that can be created in .NET? The docs for the String class are silent on …

.net string limits
How do I concatenate two arrays in C#?

int[] x = new int [] { 1, 2, 3}; int[] y = new int [] { 4, 5 }; int[] z = // your answer here... Debug.Assert(z.SequenceEqual(new int[] { 1, 2, 3, 4, 5 })); Right …

c# arrays .net linq
Path.Combine for URLs?

Path.Combine is handy, but is there a similar function in the .NET framework for URLs? I'm looking for syntax …

c# .net asp.net url path