.net-4.0

Using the Ocean Browsercaps files with .NET 4

I have been trying to use the Ocean browsercaps files from http://owenbrady.net/browsercaps/ in a ASP.NET 4 application. When I drop the files into the App_Browsers folder I get the error The browser or gateway element with ID 'docomon505i' cannot be found. Are these files compatible with .NET4 or am I doing something wrong. The docum...

What happens in a .Net 4 app when referencing .net 2 assemblies?

I have an application I want to upgrade to .NET 4, but I have a couple 3rd party assemblies that reference the .NET 2 BCL. I seem to remember reading something that says they should play nice, but I can't find any documentation on the subject. ( I think my question posed to Google is just too broad, with not enough .Net 4 material out ...

asp.net mvc 2 and .net 4 parallelism

How can MVC website benefit from the new parallelism features in .net 4? don't websites support parallelism by default since multiple users access them at the same time? Can someone clarify this? ...

How to setup Binding redirect with Nunit's gui runner?

I am trying to run my unit tests with nHibernate 3 and fluentnHibernate, To do this I need to setup a assembly binding redirect so fluentnHibernate will work with the new version of nHibernate. I have tried to update my test project's app.config however the testdriven.net runner and the nunit gui runner don't seem to read these settin...

How to extend QueryableFilterRepeater to override the filters shown?

In previous versions of DynamicData you could override GetFilteredColumns method from FilterRepeater to manage which columns are used to generate filters. But now FilterRepeater is obsolete, and his successor QueryableFilterRepeater don't have such method. There is any way to override the columns used for filtering with QueryableFilter...

Why does GetExportedValues<T>() no longer work after using the .net 4 final version of MEF?

I have been developing a managed extensibility framework application for the last several months using the community preview. I have been using the GetExportedValues() method and the PartCreationPolicy(CreationPolicy.NonShared) to fake a class factory (since only the silverlight version supports a factory). This was working great until...

Which version of .NET 4.0 is needed for web site hosting? Client or Full?

Hi folks, Simple question -> for dedicated website hosting, do i need to download and install the full ASP.NET 4.0 package, or just the client. I understand the client is required for end users who need the .NET framework for their windows form applications. But i'm not sure for a web hosting sceanrio. Also, don't worry about talking...

How to inherit from DataAnnotations.ValidationAttribute (it appears SecureCritical under Visual Studio debugging host in .NET 4 !)

Hi, I have an [AllowPartiallyTrustedCallers] class library containing subtypes of the System.DataAnnotations.ValidationAttribute. The library is used on contract types of WCF services. In .NET 2/3.5, this worked fine. Since .NET 4.0 however, running a client of the service in the Visual Studio debugger results in the exception "Inherit...

Things in .NET Framework 4 that every programmer should know

I recently moved to Visual Studio 2010 and upgraded my website to work with .NET Framework 4. (From VS 2008 - Framework 3.5) What are things I need to know to improve site speed, readability or memory use? ...

Svcutil.exe for .NET 4.0?

I was trying to use svcutil.exe to generate proxy classes for a service but when I use the /reference option to reference an assembly that is built for .NET 4.0 I get an error. Could not load file or assembly [...] or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be ...

WPF DataGrid gets wrong height when used with RowDetails

I have a problem with the new DataGrid component that comes with .NET4. The problem occurs when using RowDetails. With RowDetails the total height of the grid is increased when an element is chosen. This is necessary to show all Rows and the RowDetails, and exactly what I expect. When choosing another row the first RowDetails will collap...

Cruise Control .NET 4.0 MSBUILD Logger

Has anyone gotten a MSBuild task in Cruise Control to load a logger? I've tried variations but it always fails to load the logger. C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe C:\Windows\Microsoft.NET\Framework\v4.0.30319 C:\builds\MVC2Test\trunk\MVC2Test\MVC2Test.sln /noconsolelogger /p:Configuration=CruiseControl /v:dia...

Weird .net 4.0 exception when running unit tests

Hi guys I am receiving the following exception when trying to run my unit tests using .net 4.0 under VS2010 with moq 3.1. Attempt by security transparent method 'SPPD.Backend.DataAccess.Test.Specs_for_Core.When_using_base.Can_create_mapper()' to access security critical method 'Microsoft.VisualStudio.TestTools.UnitTesting.Asse...

MSBuild 4 fails to build VS2008 csproj due to 1 compiler warning

We have a VS2008 CS DLL project targeting .NET 3.5. It builds successfully on our CI server when using MSBuild 3.5. When CI is upgraded to use MSBuild 4.0, the same project fails to build, due to 1 warning message: c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1418,9): warning MSB3283: Cannot find wrapper ass...

Asp.net mvc 2 .net 4.0 error when View model type is Tuple with more than 4 items

When I create strongly typed View in Asp.net mvc 2, .net 4.0 with model type Tuple I get error when Tuple have more than 4 items example 1: type of view is Tuple<string, string, string, string> (4-tuple) and everything works fine view: <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/WebUI.Master" Inherits="System.Web....

WPF: Xaml, create an observable collection<object> in xaml in .NET 4.0

the web site says you can in .NET 4.0 I cant seem to do it though, what assesmbly references and xmlns' do i need the following does not work xmlns:coll="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib" <coll:ObservableCollection x:TypeArguments="x:Object"> <MenuItem Command="ApplicationCommands.Cut"/> <MenuIte...

is it possible to put a WCF Router service infront of a RIA Service

We would like to protect the database and not have connections to it in the DMZ, it is possible to to use the new WCF Router services to redirect to RIA? ...

alternative to visual studio 2010

Is there any alternative to visual studio 2010 for develop with .net 4.0? thanks ...

Problems using FluentNHibernate + SQLite with .NET4?

I have a WPF application running with VS2010 .Net3.5 using Nhibernate with FluentNHibernate + SQLite, and all works fine. Now I want to change to use .Net4, but this has turned into a more painful experience then I expected.. When setting up the connection I do this: var cfg = Fluently.Configure(). Database(SQLiteConfiguration.St...

Is it possible to reference the Azure SDK 1.1 Microsoft.WindowsAzure.* assemblies from a .NET 4.0 Client Profile project?

I have a WPF application targetting the .NET 4.0 Client Profile which needs to use the Microsoft.WindowsAzure.* assemblies provided in the Windows Azure SDK 1.1. The problem is that these assemblies have a runtime version of v2.0.50727. I am able to add references to them from my WPF project but they're not recognised. I've read about ...