Top ".net" questions

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

Mixed mode assembly is built against version ‘v2.0.50727′ of the runtime

I'm getting the following exception: Mixed mode assembly is built against version ‘v2.0.50727′ of the runtime and cannot be loaded …

.net visual-studio-2010 .net-4.0 ado.net crystal-reports
Attempted to read or write protected memory

I've started seeing an AccessViolationException being thrown in my application a several different spots. It never occured on my development …

c# .net access-violation servicepacks
Fastest way to serialize and deserialize .NET objects

I'm looking for the fastest way to serialize and deserialize .NET objects. Here is what I have so far: public …

c# .net serialization deserialization
How do I determine the dependencies of a .NET application?

How do I determine the dependencies of a .NET application? Does Dependency Walker work with managed apps? I've downloaded the …

.net dll dependencies dependency-walker
The type or namespace cannot be found (are you missing a using directive or an assembly reference?)

I get the following error when I try to compile my C# program: The type or namespace name 'Login' could …

c# .net using-directives
FtpWebRequest Download File

The following code is intended to retrieve a file via FTP. However, I'm getting an error with it. serverPath = "ftp://…

c# .net ftp ftpwebrequest ftpwebresponse
How do I extract a substring from a string until the second space is encountered?

I have a string like this: "o1 1232.5467 1232.5467 1232.5467 1232.5467 1232.5467 1232.5467" How do I extract only "o1 1232.5467"? The number of characters to be extracted …

c# .net string string-parsing
Read Variable from Web.Config

How can I add and read the value from web.config file?

c# .net asp.net web-config
Interfaces — What's the point?

The reason for interfaces truly eludes me. From what I understand, it is kind of a work around for the …

c# .net interface