.net-4.0-beta-2

How do I implement IDataServiceMetadataProvider and tell my Data Service to use that custom provider?

There's no obvious entry point for implementing a custom provider for an ADO.NET Data Service using IDataServiceMetadataProvider, and then telling a Data Service to use that provider. Has anyone had any luck in this area? I've tried implementing this interface on my Data Source class, but none of my breakpoints are hit. There is also no ...

.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. ...

where i found dotnet 4 installer

i want to download dotnet 4 but i can't find it where i find for offline ...

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 ...

Can I (and how do I) target .net 4 with vs 2008?

VS2010 beta 2 is sloowwww on my machine. I'd like to start playing with .net 4 though. Can my vs 2008 solution's target .net 4 beta 2? How? ...

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...

OptimisticConcurrencyException -- SQL 2008 R2 Instead of Insert Trigger with Entity Framework

Hi, Using a SQL 2008 R2 November release database and a .net 4.0 Beta 2 Azure worker role application. The worker role collects data and inserts it into a single SQL table with one identity column. Because there will likely be multiple instances of this worker role running, I created an Insert Instead Of trigger on the SQL table. The...

Is PIA embedding broken in .NET 4.0 beta 2?

A while ago, I wrote some Word interop examples in Visual Studio beta 1, and set the reference to Microsoft.Office.Interop.Word to be embedded (set the "Embed Interop Types" = true in the reference properties). These worked fine, and I haven't run them for a while... until today. Of course, now I'm running under beta 2 of both Visual St...

WCF - using multiple bindings including REST (WebHttpBinding) on one service library?

Hi, I want to expose my Service Layer (which is currently written as standard class library with POCOs) for external as well as internal consumption. External clients will use it over REST style APIs while internally my MVC app will use it over net.tcp binding for better performance. How do I do this elegantly? I can write 2 wrappers o...

Long running workflow in .NET 4.0 problem adding required references

I am attempting to complete the following "how-to" in order to try and understand how persistence works in .NET 4.0 Workflows. MSDN - How to: Create and Run a Long Running Workflow Unfortunately, there seems to be an error in the documentation or I have a problem with my setup, as I am unable to add references to the following compone...

Workflow 4.0 custom activity to start external process

I am trying out Workflow 4.0 and hoping to write a custom activity to start an external executable, wait for that process to complete and then resume subsequent steps in the workflow. I found the following example that shows (towards the bottom of the page) how to write an activity to waiting for a file to arrive in a specific directo...

Could not load file or assembly 'AjaxControlToolkit' after upgrade to .net 4.0

I have a web application that I am attempting to upgrade to .net 4.0. I took the application and opened it via Visual Studio 2010 Beta 2 and selected the upgrade path for that application. The application uses the AjaxControlToolkit. Now that the upgrade is complete when I attempt to access a page I get the error message: "Could not l...

Exception on creating a EDMX/DB-Schema using Entity Framework 4 using ContextBuilder with a generic class.

I'm using the Microsoft.Data.Entity.CTP (in the Entity Framework CTP) under the .NET 4 framework to create the EDMX metadata from my C# classes to create a database schema. I setup a simple model as such: public class AModelContainer : ObjectContext { public IObjectSet<RegularClass> RegularClasses { get { return CreateObje...

MEF exception " 'SourceProvider' must be set."

I am playing around with the new System.ComponentModel.Composition namespace in .NET 4.0 beta 2, also known as the Managed Extensibility Framework. I use the following C# example where a Monkey imports a Banana: public interface IBanana { } [Export(typeof(IBanana))] public class Banana : IBanana { } public class Monkey { [Im...

Why system can not find the method BigInteger.ToDouble?

I am using F# Interactive, and I have added the reference of FSharp.PowerPack.dll. When I try to convert BigNum to double as the following code, let n = 2N let d = double n error comes out that "System.MissingMethodException: Method not found: 'Double System.Numerics.BigInteger.ToDouble(System.Numerics.BigInteger)'. at Microsoft.F...

iis 7 and .net framework 4.0 beta 2

Hi, I am trying to get a asp.net 4.0 beta 2. website running that is working on my dev machine, but not when I published to my server. Where I get the HTTP 500.22 error when using the 4.0 as application pool and "Integrated" in "Managed Pipeline Mode". What am I missing? Thanks, Anders ...

Getting a 404 when setting up MVC in IIS 6 and using .NET 4 beta 2

Hi all, I've completed this set up on a fair few IIS 6 boxes, but one is giving me a tough time. The problem occurs when I add the application extension mapping to: c:\windows\microsoft.net\framework\v4.0.21006\aspnet_isapi.dll When this is in place, I get a 404 error on every request. Even if I remove all files from the application...

How can I manually uninstall .NET Framework Beta 2?

Uninstalled VS2010 Beta 2. Uninstalled .NET Framework 4 Extended Beta 2. On attempting to uninstall .NET Framework 4 Client Profile Beta 2. I get Blocking Issues: You must uninstall the .NET Framework 4 Extended Beta 2 before you uninstall the .NET Framework 4 Client Profile Beta 2. On attempting to reinstall Framework 4 Beta 2 I get:...

Visual Studio 2010 RC with .net 4 beta 2

Does anyone know if it is possible to use Visual Studio 2010 RC with the beta 2 version of the .NET 4 framework? The reason I need to use the beta 2 version and not the RC is that there isn't an Expression Blend that can support the .NET 4 RC. I uninstalled the .NET 4 framework that installed with Visual Studio 2010, then I reinstalled ...