- Dev Blogs
- .NET Blog
No trial. No credit card required. Just your GitHub account.
.NET Blog
Free. Cross-platform. Open source. A developer platform for building all your apps.
Latest posts

We are Hiring!!
Do you want to work in a challenging, fun and growth oriented environment leading Microsoft transition to the Cloud? Are you passionate about Web development? Do you want to work with key technologies like ASP.Net, MVC, Razor, JavaScript, Azure, Mobile? Do you want to see how your work can directly impact our customers? If you answer yes to these questions, then the Azure Application Platform team is the right place for you. Currently we have following open positions. You can use the links below to see more details about these positions: Please apply if you are interested. Thank you, -- Azure Appli...

Walkthrough: deploy a web application with SQL CE 4.0 database to IIS host with SQL Server.
With VS2010 sp1, we added SQL CE 4.0 support. You can view more information about SQL CE 4.0 from the following sites: Here is a walk through of how to deploy a SQL CE database to SQL Server database using web application publish. 1. Create a web application 2. Add a SQL CE 4.0 database via “Add New item”: 3. In server explorer, under the SQL CE database, add a table “Customer”, with 2 columns “ID” and “Name”. Use “Show Table Data” table context menu to add a few rows of data to the table. 4. Add a web form to the project, and put the following code inside it (I used design view, drag a...

Changes coming to ClickOnce applications running in the Internet Zone

We wanted to let you know that we’ll be changing the signature verification process for ClickOnce applications and WPF XAML Browser Applications (XBAPs) in an upcoming update. This change will help users recognize when they’re running untrusted applications from the Internet Zone, but may require you to make changes to your applications. Currently, applications configured to run “online-only” will not display notifications requesting that the user make a decision whether to run the application or not. After the update, users will see an Application Run dialog commonly encountered whe...

Hardening Server Applications

The Base Class Libraries team, the wider CLR team and Microsoft Research worked hard on this new technology and we are very proud to be able to share the news. Read the full article for details.

Razor tooling for MVC3 RC with Visual Studio 2010 Sp1 RTM
Do you see that Razor colorization, intellisense has stopped working after you have installed Visual Studio Sp1 RTM? The reason is that you might have MVC3 RC installed on the box which is not compatible with Visual Studio 2010 Sp1 RTM. To fix, you would need to install MVC3 RTM. Following are the details of the issue.What’s the issue?Razor intellisense/colorization stops working after installing Visual Studio 2010 RTMYou might have MVC 3 RC with VS 2010 RTM that’s causing it.How do I check which version of MVC3 do I have?Simple way to check is to verify that the version of ProgramFilesMicrosoft ASP.N...

Enabling IIS Express support in VS 2010 Sp1
With the Sp1 release of Visual Studio 2010 now available for download, you now have the option to use IIS Express as the development server for your web projects instead of the built-in Visual Studio Development server (aka. Cassini). Here are some previous blog posts explaining the IIS Express integration features in VS 2010 Sp1 Beta, which are also available with this new release of Sp1: VS 2010 SP1 and IIS Express should both be installed to enable IIS Express support To enable using IIS Express as the development server for your web projects, you need to have both the Sp1 release of VS 2010 ...

How to compress CSS/JavaScript before publish/package
Today I saw a post on stackoverflow.com asking Using Microsoft AJAX Minifier with Visual Studio 2010 1-click publish. This is a response to that question. The Web Publishing Pipeline is pretty extensive so it is easy for us to hook in to it in order to perform operation such as these. One of those extension points, as we’ve blogged about before, is creating a .wpp.targets file. If you create a file in the same directory of your project with the name {ProjectName}.wpp.targets then that file will automatically be imported and included in the build/publish process. This makes it easy to edit your build/publish...

HTML5 & CSS3 in Visual Studio 2010 SP1
Since the release of Visual Studio 2010 SP1 beta last month, there has been a lot of questions regarding the support for HTML5 and CSS3. HTML5 Visual Studio 2010 was originally released without HTML5 support, so does SP1 finally add support for it? Yes, to some extent. The entire HTML5 specification isn’t supported but most of the new elements and attributes are. That means you get both intellisense and validation for HTML5 with SP1. Turn it on After installing SP1 you have to tell Visual Studio to start using the HTML5 schema. Go to Tools -> Options, and then select Text Editor -> HTML -> Validatio...

How to get Razor intellisense for @model in a class library project
Many of us follow a modular architecture and create MVC3 Razor view in a separate class library project. Following is a screenshot of the class library project that I have created. Now if I open a view with @model typed in it, I notice that it shows squiggle for @model and no intellisense is shown. (error: There is build provider registered for the extension '.cshtml') The reason behind the error is that Visual Studio 2010 (for Razor tooling) requires web.config file (with some specific settings) to be in the project so that the MVC Razor host (which adds the @model directive) gets registered ...