Questions tagged [.net-4.0]

Version 4.0 of the .NET Framework. Use for questions specifically related to .NET Framework 4.0. For questions on .NET Framework generally, use the .net tag.

Released on April 12th, 2010, version 4.0 (4.0.30319.1) of the Microsoft .NET Framework contains numerous enhancements, new features and bug fixes.

What's New in the .NET Framework 4

Language Improvements

Base Class Library (BCL) additions:

For more information about the new features, see:

8834 questions
5
votes
5 answers

What's the easiest way to deploy an ASP.NET MVC 3 project to Windows Server 2003?

Is there some kind of deployment wizard I can run and have it install just the things it needs to run right onto the server end point? Do I have to build the project using VS2010 on the server? If I can't get this thing deployed today I am really…
5
votes
1 answer

Capturing standard out from tail -f "follow"

I am trying to capture the output from tail in follow mode, where it outputs the text as it detects changes in the file length - particularly useful for following log files as lines are added. For some reason, my call to StandardOutput.Read() is…
Goyuix
  • 23,614
  • 14
  • 84
  • 128
5
votes
2 answers

Require the .NET 4.0 Full profile with

We have an application that supports both .NET 2.0 and .NET 4.0 and we switch the few framework dependent assemblies with . We've used the element to allow the application to run using the latest framework if…
Paul Alexander
  • 31,970
  • 14
  • 96
  • 151
5
votes
1 answer

Why did the BeforeFieldInit behavior change in .NET 4?

In C# 4, the behavior of types without the beforefieldinit flag was changed, so now a type initializer can call before first use of any static field of the class. My questions are why has the C#/.NET team changed that behavior? What is the main…
weqew q
  • 271
  • 3
  • 10
5
votes
5 answers

Is it possible to retrieve data from Active Directory by impersonating a Windows authenticated user in ASP.NET?

I've been trying to solve this problem all day, and I've read some conflicting information within the standard google message board answers. What I'm trying to do is retrieve a domain user's (that is, the currently logged in user's) email address…
Erix
  • 7,059
  • 2
  • 35
  • 61
5
votes
3 answers

Techniques for resolving COM-related error 0x80040154?

Updated with more debugging info I'm running a proprietary software package that I don't have source for, and it has a plugin interface that is COM-based. I have a .NET assembly that is COM-visible that the application successfully loads on one…
Dave
  • 14,618
  • 13
  • 91
  • 145
5
votes
1 answer

Use of unassigned parameter compiler error, for a variable received from a function out parameter?

Today I encountered (by mistake) a weird compiler error and I don't understand the reason for it (compiler issue maybe?). .Net Framework 4.0 and Visual Studio 2019 if that matters. The exact error is "Use of unassigned local variable 'value'" at the…
mBardos
  • 2,872
  • 1
  • 19
  • 16
5
votes
5 answers

C# order list by two different things

Let's say I have the following list: var someList = new List(); Which has the following entries: SomeObject.Field Apple Orange FruitBowl_Outside Banana Grape FruitBowl_Inside I would like to sort this list so that FruitBowl entries go…
Karl
  • 5,573
  • 8
  • 50
  • 73
5
votes
1 answer

Win7 progress bar on the application icon in the task bar?

I was wondering how you can turn the application icon in the task bar on windows 7 into a progress bar. I noticed some other applications doing this such as IE9, when you download the icon shows the download progress in the task bar. Can someone…
Alex Hope O'Connor
  • 9,354
  • 22
  • 69
  • 112
5
votes
2 answers

Implementing the viewmodel to reflect the base model?

Something that has been confusing me for a while now with WPF MVVM is for example, when I have a base model containing nothing but a few properties and some validation code and I then build a view model around this base model, how should the view…
Alex Hope O'Connor
  • 9,354
  • 22
  • 69
  • 112
5
votes
3 answers

Processing large text file in C#

I have 4GB+ text files (csv format) and I want to process this file using linq in c#. I run complex linq query after load csv and convert to class? but file size is 4gb although application memory double size of file. how can i process (linq and new…
oguzh4n
  • 682
  • 1
  • 10
  • 29
5
votes
2 answers

Updating .net 4.0 machine.config seems to have no effect

I'm feeling stupid. I've just created my first ASP.net 4.0 site after working my way though over the years from 1.1 upwards. We have several settings at the machine.config level that I need to migrate to the new 4.0 machine.config. I though I had be…
Jon P
  • 19,442
  • 8
  • 49
  • 72
5
votes
1 answer

Function import when sp is changed

I am using the function import feature of the entity framework to call a stored procedure from .net 4.0 code. However, everytime I change the stored proc result set, I have to delete the function import and add it again. Is there any way, in which I…
Rashmi Pandit
  • 23,230
  • 17
  • 71
  • 111
5
votes
2 answers

Every other Visual Studio "run test" attempt results in "Unable to start program QTAgent32.exe"

Whenever I run a test, and then try to run a test again, I get the following error: Failed to queue test run. Unable to start program 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\QTAgent32.exe'. If I run the test again after…
Calvin Fisher
  • 4,653
  • 5
  • 36
  • 47
5
votes
3 answers

Is it possible to capture/redirect the standard output of a process that I did not launch, in .net?

If I know the process identifier, is there some mechanism in .net (or pinvoke as last resort) to capture/redirect the standard output of a process that I did not launch?
Suraj
  • 35,905
  • 47
  • 139
  • 250
1 2 3
99
100