.net-4.0

C# XAML Invalid Declaration after migration from .net 4.0 beta1 to beta2

Hi there, my project compiles and runs perfectly. Anyway i get an error when i try to load the designer of the xaml: Invalid XmlnsDeclaration occurs in assembly 'System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. XmlnsDeclaration references a namespace 'System.ServiceModel.Channels' that is not...

What are the true benefits of ExpandoObject?

The ExpandoObject class being added to .NET 4 allows you to arbitrarily set properties onto an object at runtime. Are there any advantages to this over using a Dictionary<string,object>, or really even a Hashtable? As far as I can tell, this is nothing but a hash table that you can access with slightly more succinct syntax. For exampl...

When is MEF shipping?

I'm building a product that will ship after .Net 4.0 is released. Is MEF an integral part of .Net 4.0, so I can count on them being released together, or is it some external component that might be released separately and thus it is dangerous to use? ...

compositescripts usecdn

How can I combine compositescripts with usecdn? In other words is there any way to tell the cdn to combine all the ajax scripts into one minified compression file. I've been testing usecdn and its pretty cool, but looks like it makes at least 4 requests. ...

.NET 4 Profiler?

Does anyone know of a profiler that works with .NET 4 (beta 2)? I normally use the EQATEC profiler but it doesn't seem to be working with .NET 4 executables. ...

.NET 4.0 on Windows Azure?

My google-fu is failing me on this one. As a possible solution to http://stackoverflow.com/questions/1679404/unit-testing-net-3-5-projects-using-mstest-in-vs2010 (but I've put this in a seperate question because it's kind of unrelated): Is there any information available regarding if/when .NET 4.0 support will be added to Windows Azure...

Book to learn about the new features in C#/.NET 4.0?

I'm looking for an in-depth book that talks about, and only about, the new features in version 4.0 of .NET and C#. There are some good books, that are/will be published and talk about C# 4.0, but cover all the features of the language and the platform, even the old ones, and I don't want to waste time in scanning through a book of these...

most interest feature of visual studio 2010 and .Net framework 4

hi everybody when you install visual studio 2010, what feature of that is most interest for you? why do i , upgrade to VS2010? is it valuable to purchase?(why?) ...

Should I recompile the libraries for .NET 4.0?

We started to develop a new application using .NET 4.0 Beta 2. Should we recompile our existing libraries targeting .NET 4.0 framework even if they do not use new features? ...

Will ASP.NET MVC 2 be supported in Visual Studio 2008 / .NET 3.5?

The ASP.NET MVC 2 preview 2 was first released for Visual Studio 2008 only. Later on, it was also included in Visual Studio 2010 beta 2. I've read that ASP.NET MVC 2 will be included in Visual Studio 2010 RTM, but is there any official word on weather or not ASP.NET MVC 2 will be officially supported in Visual Studio 2008 / .NET 3.5? ...

How can I inform the user of an XCOPY WPF 4 app that he needs to install .NET 4?

I've made a small tool application with Visual Studio 2010 which to distribute it, I zip these files from the Release folder: Data MainData.mdf MainData_log.ldf DataBackup.exe DataBackup.exe.config FluidKit.dll then unzip them on the target machine (no installation). When I run it on a Windows 7 machine with .NET 4 installed, it ...

.net 4.0 with Code Access Security NetFx40_LegacySecurityPolicy won't work

Hi- I'm trying to use an external library DevExpress.XtraTreeList.v8.1.dll in my vsto office addin built using VS2010 beta 2. I am getting the following compile time error: DevExpress.Utils.AppareanceObject threw an exception --> System.NotSupportedException. The error message goes on to say that for compatibility reasons I can us...

Instruct MEF to use any available assemblies

I am trying out the Managed Extensibility Framework for the first time in Visual Studio 2010 beta 2 using the System.ComponentModel.Composition from .net-4.0. I have been unable to get the CompositionContainer to find my implementation assemblies using the two alternative routines below. First attempt (this worked in an older codeplex ...

Managed DirectX running from .Net Framework 4.0 app dont hunt

I work on a product that uses Managed DirectX for data visualizations. I was trying to upgrade this product to .net framework 4.0, but I think I'm having issues with Managed DirectX and .Net 4.0 playing together. The main assembly does not reference managed directX. But when it tries to call into an assembly that does reference mana...

Entity Framework One-To-One Mapping Issues

Using VS 2010 beta 2, ASP.NET MVC. I tried to create an Entity framework file and got the data from my database. There were some issues with the relationships, so I started to tweak things around, but I kept getting the following error for simple one-to-one relationships Error 1 Error 113: Multiplicity is not valid in Role 'UserProf...

Are we unable to use Interop objects in generic objects in .NET 4.0?

I'm working in VS 2010 and working on upgrading our application to .NET 4. The application is build with Excel as the base and we want to take advantage of some of the improvements to .NET for using Excel. But I ran across a strange error that seems to be caused by using an Excel Interop object in a generic dictionary. Here is the err...

log4net with .NET 4.0

I've thrown together some code to tinker with the new .Net 4.0/VS 2010 pieces, but I can't seem to find a build of my logging framework of choice (log4net) for 4.0, and I'm getting reference errors with the 2.0 version. Is there a 4.0 version available somewhere? I'm not asking for new features, just a version that's already been rebui...

How to get the maximum outbound requests when parellellizing asynchronous calls?

Analysing the code below in action through Fiddler, I realized that using Parallel Extensions I can get at maximum 2 outbound requests: new string[] { "http://stackoverflow.com", "http://superuser.com", "http://serverfault.com", "http://stackexchange.com" } .AsParallel() .Select(a => Http...

How to make PLINQ to spawn more concurrent threads in .NET 4.0 beta 2?

In former versions of Parallel Extensions you could set the number of threads: enumerable.AsParallel(numberOfThreads) But now that overload is not available anymore. How to do it now? ...

Entity Framework error when submitting empty fields

VS 2010 Beta 2, .NET 4. In my ASP.NET MVC 2 application, when I submit a form to an action method that accepts an object created by the entity framework, I get the following error: Exception Details: System.Data.ConstraintException: This property cannot be set to a null value. Source Error: Line 4500: OnTextChangin...