Showing archive results for 2009

Jun 10, 2009
Post comments count0
Post likes count0

New Security Model: Moving to a Better Sandbox

CLR Team

 For .Net Framework 4, we decided to remove the dependency on caspol and the policy levels and make things simpler. With this change, the default grant-set for assemblies is now FullTrust unless the host (such as InternetExplorer) decides to load them in a sanbox. We also made CodeAccessPermission.Deny obsolete. This MSDN article des...

.NET
Jun 9, 2009
Post comments count0
Post likes count0

Tasks and the APM Pattern

Stephen Toub - MSFT

The Asynchronous Programming Model (APM) in the .NET Framework has been around since .NET 1.0 and is the most common pattern for asynchrony in the Framework.  Even if you’re not familiar with the name, you’re likely familiar with the core of the pattern.  For a given synchronous operation Xyz, the asynchronous version manifest...

.NET Parallel Programming
Jun 7, 2009
Post comments count0
Post likes count0

In-Process Side by Side Part 2 – Common in-proc SxS scenarios

CLR Team

Update: The information in this blog post applies to pre beta-1 behavior and is not applicable to beta 2 and RTM. We will have more posts and documentation on this subject as we get closer to RTM.  This section covers the most common in-process side by side scenarios. The scenarios cover which CLR is used to run the specific code, given a...

.NET
Jun 6, 2009
Post comments count0
Post likes count0

Achieving Speedups with Small Parallel Loop Bodies

Stephen Toub - MSFT

The Parallel class represents a significant advancement in parallelizing managed loops.  For many common scenarios, it just works, resulting in terrific speedups.  However, while ideally Parallel.For could be all things to all people, such things rarely work out, and we’ve had to prioritize certain scenarios over others.One area Par...

.NET Parallel Programming
Jun 6, 2009
Post comments count0
Post likes count0

Multi-targeting of web projects using Visual Studio 2010 Beta1

Web Development Tools Microsoft

The multi-targeting feature of Visual Studio 2010 allows web developers to develop web applications targeting ASP.NET 2.0, 3.0, 3.5 and 4.0. The key benefit of multi-targeting is that you can use Visual Studio 2010 to create and develop new projects that target earlier versions of the .NET Framework (such as 2.0, 3.0 and 3.5). Multi-targeting in VS...

ASP.NET
Jun 5, 2009
Post comments count0
Post likes count0

Basic Microsoft Web Deployment Tool Setup For Visual Studio 2010

Web Development Tools Microsoft

In this blog post I will explain how to get and install the Microsoft Web Deployment Tool, so you can share created packages with others and how to setup a Windows 2008 Server to allow packages to be deployed from Visual Studio 2010 Beta 1. Visual Studio 2010 Beta 1 ships with and installs Microsoft’s Web Deployment Tool as part of the Visual Web D...

ASP.NET
Jun 5, 2009
Post comments count0
Post likes count0

Deploying Silverlight Projects using VS10

Web Development Tools Microsoft

With VS10 beta1 environment, you can also install Silverlight 3 beta to combine the power of both. When a Silverlight 3 beta project is compiled, it generates xap file.  The web application or website should take the xap as content for Build Action.  The following shows what the default Siliverlight project has: Having this informati...

ASP.NET
Jun 3, 2009
Post comments count0
Post likes count0

In-Process Side by Side (Part1)

CLR Team

One of the new features in CLR 4 is In-Process Side-by-side (Inproc SxS) – a feature that lets you use multiple versions of .NET in the same process. For applications that use add-ins (particularly COM add-ins), in-proc SxS lets us provide a level of compatibility never before possible. If you write applications that use an add-in model (for Office...

.NET
Jun 3, 2009
Post comments count0
Post likes count0

In-Process Side by Side (Part1)

CLR Team

One of the new features in CLR 4 is In-Process Side-by-side (Inproc SxS) – a feature that lets you use multiple versions of .NET in the same process. For applications that use add-ins (particularly COM add-ins), in-proc SxS lets us provide a level of compatibility never before possible. If you write applications that use an add-in model (for Office...

.NET
Jun 3, 2009
Post comments count0
Post likes count1

Mechanisms for Creating Tasks

Stephen Toub - MSFT

The core entity in the Task Parallel Library around which everything else revolves is System.Threading.Tasks.Task.  The most common way of creating a Task will be through the StartNew method on the TaskFactory class, a default instance of which is exposed through a static property on Task, e.g. var t = Task.Factory.StartNew(() => {  &n...

.NET Parallel Programming