Questions tagged [.net-3.5]

The 3.5 version of the .NET Framework, which is based on the 2.0 .NET Framework with extra assemblies (including 3.0). Use for questions specifically related to .NET Framework 3.0. For questions on .NET Framework generally, use the .net tag.

The 3.5 version of the Microsoft .NET Framework, which is based on the 2.0 .NET Framework. In addition, it installs .NET Framework 2.0 SP1, (installs .NET Framework 2.0 SP2 with 3.5 SP1) and .NET Framework 3.0 SP1 (installs .NET Framework 3.0 SP2 with 3.5 SP1).

What's New in .NET Framework 3.5
.NET Framework 3.5 System Requirements

Released by Microsoft Corporation
Version Number: 3.5.21022.8
Release Date: 2007-11-19

5938 questions
45
votes
5 answers

Custom model validation of dependent properties using Data Annotations

Since now I've used the excellent FluentValidation library to validate my model classes. In web applications I use it in conjunction with the jquery.validate plugin to perform client side validation as well. One drawback is that much of the…
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
44
votes
4 answers

TFS Build server - CSC : fatal error CS2008: No inputs specified

We get the above error message on our build server, when we build the solution or the specific project that the error refers to. We can build the solution without any problem using visual studio (also on the build server), however it fails with the…
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
44
votes
5 answers

Can I dynamically add HTML within a div tag from C# on load event?

Mind you, I am using master pages, but can I locate a div within the page and throw some html in there? Thanks.
Sara Chipps
  • 9,322
  • 11
  • 58
  • 103
44
votes
7 answers

How do I find if two variables are approximately equals?

I am writing unit tests that verify calculations in a database and there is a lot of rounding and truncating and stuff that mean that sometimes figures are slightly off. When verifying, I'm finding a lot of times when things will pass but say they…
Diskdrive
  • 18,107
  • 27
  • 101
  • 167
44
votes
5 answers

Troubleshooting .NET "Fatal Execution Engine Error"

Summary: I periodically get a .NET Fatal Execution Engine Error on an application which I cannot seem to debug. The dialog that comes up only offers to close the program or send information about the error to Microsoft. I've tried looking at the…
JYelton
  • 35,664
  • 27
  • 132
  • 191
44
votes
4 answers

Does the .Net Framework 4.0 Installer include the .Net Framework 3.5?

Do .Net components that were compiled against the .Net Framework 3.5 run on a system that has only .Net Framework 4.0 installed? Or in other words, does the .Net Framework 4.0 Installer include the .Net Framework 3.5?
Stiefel
  • 2,677
  • 3
  • 31
  • 42
44
votes
2 answers

When does Entity Framework open and close Database Connections?

When I instance my "Entities" object in Entity Framework, and make a couple of queries using that Entities object, what happens to connections? Does it open a connection when I instance the object, and close it when I dispose of it? Or does it open…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
44
votes
5 answers

IO 101: Which are the main differences between TextWriter, FileStream and StreamWriter?

Let me first apologize if this question could sound perhaps sort of amateurish for the seasoned programmers among you, the thing is I've been having many arguments about this at work so I really want to get this straight and that's basically why I'm…
Nano Taboada
  • 4,148
  • 11
  • 61
  • 89
43
votes
7 answers

System.Array. does not contain a definition for "ToList"

I'm getting the above error on the ToList() line of the code below if (emailReplyTo != null) { System.Collections.Generic.List replyto = emailReplyTo // Strip uneccessary spaces .Replace(", ", ",") .Split(',') …
fearoffours
  • 1,455
  • 2
  • 12
  • 23
43
votes
7 answers

How many threads can I run concurrently on Windows?

A comment to another of my questions says that I can only run "so many" threads concurrently, a notion which I have seen elsewhere. As a threading novice, how can I determine the maximum number of threads to use? Or is this a "how long is a piece of…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
43
votes
4 answers

Join together all items of a list in an output string in .NET

How can I write a LINQ expression (or anything else) that selects an item from a List and join them together? Example IList data = new List(); data.Add("MyData1"); data.Add("MyData2"); string result = // Some LINQ query... I try…
Melursus
  • 10,328
  • 19
  • 69
  • 103
43
votes
6 answers

Is there a memory limit for a single .NET process

We are currently thinking of building a cache-system to hold data pulled out of an SQL database and make it available to a couple of other applications (website, webservice, etc). We imagine the cache to be running as a windows service and basically…
Mats
  • 14,902
  • 33
  • 78
  • 110
42
votes
6 answers

Cannot convert string to GUID in C#.NET

Why would the cast (to a System.Guid type) statement be invalid (second line in try block)? For example, suppose I have a string with a value of "5DD52908-34FF-44F8-99B9-0038AFEFDB81". I'd like to convert that to a GUID. Is that not possible? …
JustBeingHelpful
  • 18,332
  • 38
  • 160
  • 245
42
votes
2 answers

How do C# Events work behind the scenes?

I'm using C#, .NET 3.5. I understand how to utilize events, how to declare them in my class, how to hook them from somewhere else, etc. A contrived example: public class MyList { private List m_Strings = new List(); public…
Matt
  • 41,216
  • 30
  • 109
  • 147
42
votes
6 answers

What is the Efficiency and Performance of LINQ and Lambda Expression in .Net?

I have used .Net 3.5 and VS 2008 for more than a month. Like most .Net developers, I have evolved from years experience in .Net 1.0 & 2.0 and VS 2005. Just recently, I discovered the simplicity and power of LINQ and Lambda Expressions, as in my…
David.Chu.ca
  • 37,408
  • 63
  • 148
  • 190