.NET Blog

Free. Cross-platform. Open source. A developer platform for building all your apps.

Getting more information than the exception class provides

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

Tail Call Improvements in .Net Framework 4

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

ASP.Net MVC for Visual Studio 2010 Beta1 Codeplex

ASP.Net MVC for Visual Studio 2010 is available for download here: http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28527.There is no new functionality but you should be able to upgrade your applications to target the 4.0 framework (or leave them as is) if you would like to play with ASP.Net MVC on Dev10. Please read the ...

Updates to FTP publishing in Visual Studio 2010

With VS2010, we introduced “web deployment tool” as the new publish method; at the same time, FTP publish is still available and supported in VS2010. In web application project system, because we centralized main deployment workflow, so some new features usually introducd at the same time with “web deployment tool” is also available to...

Changes to the Publish dialog in web application project system in Visual Studio 2010

This blog explains some modification we made to the publish dialog in the web application project system, mainly to accommodate new web deployment tools from IIS team (aka “MsDeploy”). Changes are summarized as following: 1. Persist your publish settings through creating and managing publish profiles 2. Provide a “publish method” ...

What’s New for .Net Framework Security

 Shawn Farkas, CLR security developer, has started a cool series of posts on what’s new in .NET Framework 4 security. If you’re doing any work with or have scenarios involving partially trusted code, you’ll want to take a look. Topics include sandboxing, Code Access Security (CAS) Policy, and a nifty Channel 9 video. ...

New Security Model: Moving to a Better Sandbox

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

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

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