.net-4.0

Have Microsoft rewritten Windows Workflow Foundation in .NET 4.0?

I heard from a friend that Microsoft rewrote all the Windows Workflow Foundation (WF) again and changed everything was in .Net 3.5. Is that true? And what about what we learned about WF in 3.0 and 3.5? ...

If I didn't get along with Entity Framework until now, Is there a chance I will like the new EF in .Net 4.0

So far I did not like EF. Although I liked the tools and how easy it was to create certain types of mappings and relations, Other types were a pain and the Linq support in EF wasn't so great (couln't create my own filter extension methods). Is the new EF in .Net 4.0 better. Given what I have stated so far is there a chance I will like i...

Impact of changes to the CAS policies in .NET 4.0?

As stated here, the way evidence is loaded will change in .NET 4.0. How will this impact systems like SharePoint where you can specify exactly which permission will be granted for a dll in the wsp-package? Isn’t SharePoint using AppDomain.ExecuteAssembly(Name,Evidence) internally to make this possible, or am I missing something? ...

Does Visual Studio 2010 Beta support .NET 2.0 projects? What about SQL 2005 DBs?

Does Visual Studio 2010 Beta support .NET 2.0 projects? What about opening SQL 2005 *.ndf files with the new IDE? (meaning mdf files included in the project like App_Data DBs in web applications etc.) ...

How do I write private set auto-properties in VB 10?

in C#: public string Property { get; private set; } in VB? Please vote or/and share your ideas! ...

Do .Net Framework 4.0 has features connecting to DB2

I need to know is there any feature of connecting to DB2 database from .net in .Net framework 4.0 EDIT:- I like to is there any DB2 provider ...

VS2008 to VS2010 project conversion

I have a component project build in VS2008 and targeting the .NET Framework 3.5. I recently downloaded the VS2010 Beta 1 to make sure this project would convert over correctly when the time comes to switch to the new IDE. This project contains references to a couple of 3rd party dlls built against version 2.0 of the framework. I chang...

Difference between Barrier in C# 4.0 and WaitHandle in C# 3.0?

I am picking up C# 4.0 and one of the things which is confusing me, is the barrier concept. Is this not just like using the WaitAll method of WaitHandle? Doesn't that wait for all threads to finish? I learnt the barrier construct from this page: http://www.managed-world.com/archive/2009/02/09/an-intro-to-barrier.aspx However, it seems...

ASP.NET 4.0 and VS2008?

Will VS2008 be able to develop ASP.NET 4.0 applications when it is released? I would hate to have to go buy VS2010 just for a couple of features I'm looking forward two like Dynamic Data and session profiles. ...

Inconsistent results when executing and spawning child tasks

I have some simple code in which the main Thread is creating a new Task. The task in turn spawns multiple child tasks. The main Thread does a 'wait' on the parent Task. I'm observing that I don't get the same output across multiple runs of the program. In the code below I'm printing out the value of the iteration variable in each task bu...

Can I use .NET 4.0 beta in Visual Studio 2008?

There are some really great features in .NET 4.0 that I would like to start using but I am not comfortable making the change to VS 2010 just yet. Is there a way to use the .NET 4.0 beta in VS 2008? ...

System.Data.OracleClient namespace discontinued?

I just read this article today about how Microsoft decided to remove the System.Data.OrcaleClient namespace from .NET 4.0 library. I used this as my primary tool for working with Oracle databases. When I decide to upgrade my applications from the .NET 2.0 to .NET 4.0, what would bee some alternative options for working with Oracle data...

How do I use Navigational Properties as Primary Keys in Entity Framework (.Net 4.0)?

I'm trying out the Model First approach introduced in Entity Framework with VS2010/.Net 4.0, and now I don't really know how to do this. I start out with the following Entities: Contact Event ******* ***** Id (Int32, not null, pk) Id (Int32, not null, pk) Name (Name, not null)...

How to use DLR with MEF in .Net 4.0?

There were promises from the MEF team that MEF will support DLR plugins in the .Net 4.0. Did it happen already and I can [Import] some IronPython objects? If yes, any links to the topic would be helpful. ...

Bug in iterators with code contracts?

The following code fails on the pre condition. Is this a bug in code contracts? static class Program { static void Main() { foreach (var s in Test(3)) { Console.WriteLine(s); } } static IEnumerable<int>Test (int i) { Contract.Requires(i > 0); for (int j = 0; j < i;...

VS 2010 Beta 1 doesn't recognize the System.Printing.PrintTicket class

I'm having the following problem using the Visual Studio 2010 Team System Beta 1: While working on some printing code, I tried to declare a variable of type System.Printing.PrintTicket, but Visual Studio doesn't seem to recognize that the class exists. It appears in the MSDN documentation, and other classes like System.Printing.PrintQue...

Can I get a path for a Memory Mapped File? (.NET 4.0)

I want that a non-.NET application access a Memory Mapped file, but this application is not aware of the existence of Memory Mapped files, so I need the file path. It is possible? ...

Issue Returning Entity Framework 4.0 Entity from a WCF REST Service

I'm trying to return an EF object from a WCF REST service. It works fine when I do not eagerly load any child objects but once I do, I get a 404 error when I try browsing the service using Internet Explorer 7.0. ...

Garbage collection in .Net 4.0

Is there any change in .Net 4.0 garbage collector execution? ...

How can I target .Net 4.0 Beta using NAnt?

I want to start testing my project using the Microsoft .Net 4.0 Beta version that has already been released. I know that adding a "net-4.0" target framework to NAnt requires updating nant.exe.config file, does anyone know what are the necessary changes? ...