Top ".net" questions

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

Application Crashes With "Internal Error In The .NET Runtime"

We have an application written against .NET 4.0 which over the weekend crashed, putting the following message into the event log: …

.net runtime-error executionengineexception
System.BadImageFormatException: Could not load file or assembly (from installutil.exe)

I am trying to install a Windows service using InstallUtil.exe and am getting the error message System.BadImageFormatException: Could …

.net windows-services x86 64-bit x86-64
How to set value in @Html.TextBoxFor in Razor syntax?

I have created an text-box using Razor and trying to set value as follows. @Html.TextBoxFor(model => model.Destination, …

.net asp.net-mvc asp.net-mvc-3 razor html.textboxfor
Converting double to string with N decimals, dot as decimal separator, and no thousand separator

I need to convert a decimal to a string with N decimals (two or four) and NO thousand separator: 'XXXXXXX (…

c# .net string double decimal
How do I make a WinForms app go Full Screen

I have a WinForms app that I am trying to make full screen (somewhat like what VS does in full …

c# .net winforms
Where and how is the _ViewStart.cshtml layout file linked?

Here's the About.cshtml from the default MVC 3 template: @{ ViewBag.Title = "About Us"; } <h2>About</h2> &…

.net asp.net-mvc asp.net-mvc-3 razor
C# - Making a Process.Start wait until the process has start-up

I need to make sure that a process is running before moving on with a method. The statement is: Process.…

c# .net windows process
How do I create a file AND any folders, if the folders don't exist?

Imagine I wish to create (or overwrite) the following file :- C:\Temp\Bar\Foo\Test.txt Using the File.…

c# .net file-access
What is POCO in Entity Framework?

I just started learning POCO but cannot understand its use and advantage. Even following link of stackoverflow did not help …

c# .net entity-framework poco
Which version of MVC am I using?

I can't find it for some reason, feeling a little dumb. How do I know? I'm using .net 4 with VS2010.

.net asp.net-mvc visual-studio version