Questions tagged [.net-4.0-beta-2]

Version 4.0 Beta 2 of the .NET Framework, it accompanied the release of Visual Studio 2010 Beta 2.

17 questions
27
votes
1 answer

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…
Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
15
votes
11 answers

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…
ChrisHDog
  • 4,473
  • 8
  • 51
  • 77
9
votes
2 answers

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

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…
6
votes
8 answers

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…
Omar
  • 39,496
  • 45
  • 145
  • 213
4
votes
1 answer

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 {…
Wim Coenen
  • 66,094
  • 13
  • 157
  • 251
4
votes
2 answers

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?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
3
votes
1 answer

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…
Aishwar
  • 9,284
  • 10
  • 59
  • 80
3
votes
2 answers

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…
2
votes
1 answer

iis 7 and .net framework 4.0 beta 2

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…
Anders
  • 647
  • 2
  • 8
  • 16
2
votes
2 answers

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…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
1
vote
4 answers

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…
Daniel Asher
  • 1,493
  • 1
  • 16
  • 21
1
vote
1 answer

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 :…
Nick Josevski
  • 4,156
  • 3
  • 43
  • 63
1
vote
2 answers

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?
Dane O'Connor
  • 75,180
  • 37
  • 119
  • 173
1
vote
2 answers

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…
Mark Carpenter
  • 17,445
  • 22
  • 96
  • 149
0
votes
2 answers

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…
dbush
  • 169
  • 1
  • 12
1
2