Home / ASP.NET Weblogs

Latest Microsoft Blogs

Posted to:

Exploring ASP.NET Web Pages - A fully-featured MiniBlog using just Razor

ASP.NET "Razor" Web Pages are ASP.NET sites without models, views, and controllers, without project files. Some folks say "oh, that's just Classic ASP, or PHP right? Not at all. It's the fill power and speed of the .NET CLR, the full syntax of C#, LINQ, along with things like C# dynamics. It's super powerful, and my friend Mads and I are surprised more people don't use them for small things. In fact, Rob Conery and I did the http://thisdeveloperslife.com web site using just Razor and Rob's "massive" micro-ORM . Later I made http://hanselminutes.com with Web Pages as well. This blog runs DasBlog , an older ASP.NET 2.0 blogging engine I worked on with Clemens Vasters and a lot of co-contributors, but...
Filed under: ,
Posted to:
by: 
04-14-2014, 4:58 PM

Azure Updates: Web Sites, VMs, Mobile Services, Notification Hubs, Storage, VNets, Scheduler, AutoScale and More

It has been a really busy last 10 days for the Azure team. This blog post quickly recaps a few of the significant enhancements we’ve made.  These include: Web Sites : SSL included, Traffic Manager, Java Support, Basic Tier Virtual Machines : Support for Chef and Puppet extensions, Basic Pricing tier for Compute Instances Virtual Network : General Availability of DynamicRouting VPN Gateways and Point-to-Site VPN Mobile Services : Preview of Visual Studio support for .NET, Azure Active Directory integration and Offline support; Notification Hubs : Support for Kindle Fire devices and Visual Studio Server Explorer integration Autoscale : General Availability release Storage : General Availability release of Read Access Geo Redundant Storage...
Posted to:

Intellisense for JSON Schema in the JSON Editor

In the previous post , we introduced our new JSON editor in the CTP 2 release of Visual Studio 2013 Update2. In the RC version of Visual Studio 2013 Update 2 , we added intellisense support for JSON Schema v3 and v4. This will make working with complex JSON structures based on a schema much easier.   Specify the schema within a JSON file using the “$schema” property When you add a new JSON file to your project, the schema dropdown box will show <No schema Selected> You can specify the schema to be used for this JSON file by defining the “$schema” property as shown below You need to close and re-open the file, and the JSON editor will read the $schema property, add an entry in the schema dropdown list and select it. Note that the JSON...
Posted to:
by: 
04-09-2014, 12:08 AM

Push Notifications Using Notification Hub and .NET Backend (Link)

Posted the blog Push Notifications Using Notification Hub and .NET Backend on the Azure Mobile Services Team Blog explaining how to leverage Azure Notification Hubs and Azure Mobile Services to push notifications to any mobile platform. Henrik Read More...
Posted to:

EF Code First Migrations Deployment to an Azure Cloud Service

To deploy a Code First database to an Azure Web Site, you can use the Execute Code First Migrations check box in the Publish Web wizard: When you select that check box, Visual Studio configures the destination web site so that Entity Framework automatically deploys the database or updates it by running the MigrateDatabaseToLatestVersion initializer on application start, as explained in this VS web deployment tutorial . But if you’re deploying to an Azure cloud service you don’t get to use the Publish Web wizard. What then? In that case, you have two options:   Write code that executes migrations when the application starts. Write Web.config transforms to configure the MigrateDatabaseToLatestVersion initializer to run. Write App_Start...
Posted to:

Adding Two-Factor authentication to an ASP.NET application

ASP.NET Identity 2.0 was released last month and it's got a number of significant updates and new features that are worth checking out. For historical context, read the " Introduction to ASP.NET Identity " article that includes a lot of background and information on why certain decisions were made, as well as an  overview of some of the goals of ASP.NET Identity 2.0 like: One Identity system for ASP.NET Web Forms, MVC, Web API, and Web Pages Total control over user profile schema. Pluggable storage mechanisms from Windows Azure Storage Table Service to NoSQL databases Unit Testable Claims-based Auth adds more choice over simple role membership Social Logins (MSFT, FB, Google, Twitter, etc) Based on OWIN middleware, ASP.NET...
Filed under: ,
Posted to:

Creating a Custom Scaffolder for Visual Studio

With the release of Visual Studio 2013 last October, we introduced the concept of Scaffolding to Web Application projects.   Scaffolding is the framework on which code generation for MVC and WebAPI is built.   For more information on Scaffolding or the MVC Scaffolders check the following blog post: http://www.asp.net/visual-studio/overview/2013/aspnet-scaffolding-overview . However, the true potential for the scaffolding framework comes from the new extensibility surface released in Update 2.   With this new functionality, any VSIX can code against the Scaffolding API surface and have their scaffolds added to the Add New Scaffold Dialog.   This blog post will walk through the creation of a custom scaffolder. To get started...
Posted to:

Announcing new web features in Visual Studio 2013 Update 2 RC

Today, the Visual Studio team announced the release of RC version of Visual Studio 2013 Update 2 . Our team added a few useful features and did some bug fixing in this update to improve the web development experience. This blog will contain all of the features introduced in CTP2 and a few updates. We will have future blogs to talk about some of the features in detail. The release notes contain more details. What’s new since CTP2? We added the following new features in the RC release, which can be seen in details in the corresponding sections. JSON editor IntelliSense for JSON Schema Updated new ASP.NET web project dialog’s Azure create remote resources UI A new dialog installs a certificate for IIS Express that allows browsing/debugging...
Posted to:

OWIN security components in ASP.NET: OpenID Connect!

It’s been about a month since we released the first preview of the new claims-based identity programming model in ASP.NET . Yesterday we published a refresh of the preview with lots of improvements in WS-Federation support, and a brand-new feature: OpenID Connect! Thanks for the Feedback The new programming model was very well received, which makes us very happy; however, you were not shy about letting us know which features you wanted us to change and add. I would like to take this opportunity to thank Dominick and Poul for their deep involvement and great feedback! Among the main points we heard: Ensure that the new components are compatible with the Azure Active Directory OAuth bearer middleware Maintain consistency with well-established...
Posted to:

Announcing 0.2.0-alpha2 preview of Windows Azure WebJobs SDK

We are releasing an update to Windows Azure WebJobs SDK introduced by Scott Hanselman here . Download this release You can download WebJobs SDK in a console application project from the NuGet gallery. You can install or update to these packages through NuGet gallery using the NuGet Package Manager Console, like this: Install-Package Microsoft.WindowsAzure.Jobs -Pre Install-Package Microsoft.WindowsAzure.Jobs.Host -Pre What is WebJobs SDK? The WebJobs feature of Windows Azure Web Sites provides an easy way for you to run programs such as services or background tasks in a Web Site. You can upload and run an executable file such as an .exe , .cmd , or .bat file to your web site. You can run these as triggered or continuous WebJobs. Without WebJobs...

1 2 3 4 5 Next > ... Last »

Archives