WCF REST Starter Kit Preview 2 Available on Codeplex

יום שישי, מרץ 13, 2009

WCF REST Starter Kit Preview 2 Available on Codeplex The WCF REST Starter Kit is a set of features, Visual Studio templates, samples and guidance that enable users to create REST style services using WCF. While the October release of the WCF REST Starter Kit focused on building server-side REST services, the Preview 2 release adds features to make client-side REST development easier. Among the new functionality included in Preview 2 is a new class that provides a staged pipeline model for requesting resources over the web. Using this new HTTP client class allows the...

Building an Occasionally Connected ADO.Net Data Service with “Astoria Offline” Preview

יום שבת, מרץ 7, 2009

Building an Occasionally Connected ADO.Net Data Service with “Astoria Offline” Preview This is a step by step walkthrough of creating a new ADO.Net Data Service that support offline and synchronization with the recently released “Astoria Offline” alpha preview. 1. Create an ADO.Net Data Service that Allows Synchronization Create a new standard Web Application project. Add a new Entity Data Model. This time, make sure you select the ADO.Net Data Model template. Also notice that the extension of the file is now .edmxpreview instead of .edmx. Continue with the wizard...

ADO.Net Data Services Offline (“Astoria” Offline) – Alpha Preview

ADO.Net Data Services Offline (“Astoria” Offline) – Alpha Preview While only a week ago, the Astoria team has announced ADO.NET Data Services v1.5 CTP1. Today, an alpha preview of Astoria Offline just became available. ADO.NET Data Services v1.5 CTP1 is a tech preview of the next release of ADO.NET Data Services. It will initially target the .NET Framework 3.5 SP1 and Silverlight 2 platforms in a future version support the .NET Framework 4.0 platform. “Astoria Offline” enables developers to add data-synchronization behavior between a client application and an ADO.NET Data Service,...

ASP.Net MVC RSS Feed Action Result

יום ראשון, ינואר 11, 2009

ASP.Net MVC RSS Feed Action Result ASP.Net MVC Controller Actions usually returns an object that inherits from the ActionResult class. public abstract class ActionResult {   public abstract void ExecuteResult(ControllerContext context); } ASP.Net MVC ships with several Action Results: ContentResult – Simply writes the returned data to the response. EmptyResult – Returns an empty response. HttpUnauthorizedResult – Returns Http 401 code for non authorized access. JsonResult – Serializes the response to Json. RedirectResult – Redirects to another Url. RedirectToRouteResult –...
4 comments

ASP.Net MVC Route Constraints

ASP.Net MVC Route Constraints ASP.Net MVC has a powerful Routing Engine that allows mapping between URL Routes and Controller Actions. The default route that is created with an empty ASP.Net MVC application is: {controller}/{action}/{id} But, according to application requirements, other routes can be used, with parameters not necessarily of type string and int, and may require certain constraints to take place. For example, my previous post about Anatomy of an ASP.Net MVC Application can be found at: http://blogs.microsoft.co.il/blogs/bursteg/archive/2008/12/21/anatomy-of-an-asp-net-mvc-application.aspx, and has a route similar to: /blogs/{blogName}/archive/{year}/{month}/{day}/{*permalink} Each one of the parameters can be checked for validity...

Building an IE8 Visual Search Suggestion Provider for my Twitter Friends

יום רביעי, דצמבר 17, 2008

Building an IE8 Visual Search Provider for my Twitter Friends With the upcoming release of Internet Explorer 8, one of the new features in it that I am most excited about is the Visual Search Suggestions. In this post I will build a Visual Search Suggestion Provider that displays a list of my twitter friends with their current status and profile image as I type their name in the search box. You can download the source code of the complete version of this guide. This guide is based on the Search Provider Extensibility in Internet Explorer page on MSDN. 1. Building a WCF REST...
one comment

WCF on IIS7 on Vista – Adding .svc Handler

יום שני, דצמבר 1, 2008

WCF on IIS7 on Vista - Adding .svc Handler I’ve just formatted and reinstalled my computer yesterday. When I started to build a WCF Service on IIS 7 on my Vista machine, I got the following message: Server Error in Application “Default Web Site/...” HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension of the configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. This is what I did to...

Twitter API from C#: Searching

יום רביעי, נובמבר 26, 2008

Twitter API from C#: Searching Following my post Twitter API From C#: Getting a User’s Time Line, I’ll talk about how to use the Twitter Search API. The main difference between this post and the previous one, is that Twitter Search API currently does not support XML response, and supports only atom and json. So, in order to search for specific terms, I’ll have to take another approach than the one I took before. Performing a Search To perform a search in the browser for “DevAcademy3”, I can navigate to: http://search.twitter.com/search?q=devacademy3&show-user=true In order...
2 comments

Training Kit for VS 2008 SP1 and .Net Framework 3.5 SP1

יום שני, אוגוסט 11, 2008

Training Kit for VS 2008 SP1 and .Net Framework 3.5 SP1 The ASP.Net 3. 5 Enhancement Training Kit was updated to VS 2008 SP1 and .Net Framework 3.5 SP1 and is available for download. This kit contains presentations, demos and labs for getting started with the new technologies that shipped as part of the service pack. Download here. Enjoy!

.Net Framework 3.5 SP1 and Visual Studio 2008 SP1 are Available!

.Net Framework 3.5 SP1 and Visual Studio 2008 SP1 are Available! Read the announcement.  Unlike other Service Packs from Microsoft, the SP1 of.Net Framework 3.5 and Visual Studio 2008 not only contains bug fixes and improvements, it also contains new technologies such as ADO.Net Entity Framework v1, ADO.Net Data Services v1, ASP.Net Dynamic Data and the framework and tools support for working with SQL Server 2008 that was RTM'ed last week. Here are some useful download links: VS 2008 Service Pack Preparation Tool .NET Framework 3.5 Service pack 1 Visual Studio 2008 Service Pack 1 (exe) Visual Studio 2008 Service Pack 1 (iso) Visual Studio 2008...