Showing results for June 2009 - .NET Blog

Jun 30, 2009
Post comments count0
Post likes count0

Check out the following on our Tips and Tricks Blog

Web Development Tools Microsoft
Web Development Tools Microsoft

Tip#66: Did you know... how to insert quotes values automatically while typing the attrib values?Tip #67: Did you know the list of ASP.Net MVC shortcuts?Tip #68 Did you know… How simple it is to attach an existing style sheet to your web page?Tip #69: Did you know…The keyboard shortcut for View in Browser?Tip #70: Did you know&hell...

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

Asynchronous methods, C# iterators, and Tasks

Stephen Toub - MSFT
Stephen Toub - MSFT

More and more, developers are realizing the significant scalability advantages that asynchronous programming can provide, especially as it relates to I/O. Consider an application that needs to copy data from one stream to another stream, such as is being done in the following synchronous implementation: static void CopyStreamToStream(Stream input...

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

VS2010 Beta1 Web Application Project Database package and SMO options

Web Development Tools Microsoft
Web Development Tools Microsoft

In Visual Studio 2010 Beta1 release, SQL server database schema and data can be packaged for deployment along with the website.  It utilizes Msdeploy SQL Database provider functionality in IIS team’s msdeploy release.  In Visual studio 2010 Beta1, user can set the database package options in web application project’s Deploy-SQL property...

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

Don’t dispose of objects that you don’t own

phillips.joshua
phillips.joshua

In concurrent programs, race conditions are a fact of life but they aren’t all bad.  Sometimes, race conditions are benign, as is often the case with lazy initialization.  The problem with racing to set a value, however, is that it can result in multiple objects being instantiated when only one is needed.  Take the LazyInitializer ...

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

Parallel For Loops over Non-Integral Types

Stephen Toub - MSFT
Stephen Toub - MSFT

In a previous post, it was demonstrated how for loops with very small loop bodies could be parallelized by creating an iterator over ranges, and then using Parallel.ForEach over those ranges.  A similar technique can be used to write parallel loops over iteration spaces of non-integers.  For example, let’s say I wanted to paralleliz...

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

Enabling CAS Policy Compatibility Mode for a Project

CLR Team
CLR Team

If you’re migrating a VS project over to VS 2010 Beta1 and you are calling code that is passing Evidence objects to the runtime expecting security policy resolution, or if you’re using a permission Deny, you may run into the following exception: NotSupportedException: This method uses CAS policy, which has been obsoleted by the .NET Framework. In o...

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

Visual Web Developer – Designer Survey

Web Development Tools Microsoft
Web Development Tools Microsoft

The VWD team is always looking for ways to improve our product for our customers. To help us better achieve this goal we have created a survey that we hope you will take a few moments to fill out.Click Here to take survey This survey centers around the VWD designer which provides a WYSIWYG editor for creating and editing Web pages. All feedback wil...

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

Cancellation in Parallel Extensions

Mike Liddell
Mike Liddell

One of the great features that crosses all of Parallel Extensions types is a consistent approach to cancellation (see https://blogs.msdn.com/pfxteam/archive/2009/05/22/9635790.aspx). In this post we explore some of the ways cancellation is used in Parallel Extensions and explain the guidance we developed. The new cancellation system is a cooperativ...

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

Getting more information than the exception class provides

CLR Team
CLR Team

We recently had a question about how to get more information than an exception’s type provides. The developer was trying to copy a file and didn’t know why the copy was failing. File copies can fail for many reasons, almost all of them what Eric Lippert calls “exogenous conditions”. The developer was catching System.IOExcept...

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

Tail Call Improvements in .Net Framework 4

CLR Team
CLR Team

Grant Richins has a post on the CLR Code Generation team blog that covers the work done to improve the x64 JIT to honor the "tail." instruction prefix, thereby making functional languages like F# more viable. You can find the full post here.

.NET