Tag | wcf Posts

Well, day 2 of the MIX10 conference did not disappoint. The keynote speakers introduced the preview release of IE9, which looks really cool and quick, and Visual Studio 2010 RC that is scheduled to RTM on April 12th. It seemed to have a lot of improvements aimed at making developers more productive. Here are the current links to these two offerings: Internet Explorer 9 – Platform Preview Visual Studio 2010 and .NET 4 – Release Candidate While both of these were interesting, the demos that really ...
Coming from someone who loves the KISS method, I was surprised to find that I was making something entirely too complicated. I know, shocker right? Now I'm no unit testing ninja, and not really a WCF ninja either, but had a desire to test service calls without a) going to a database, or b) making sure that the entire WCF infrastructure was tip top. Who does? It's not the environment I want to test, just the logic I’ve written to ensure there aren't any side effects. So, for the K.I.S.S. method: Assuming ...
There were a lot of announcements made during the keynote at MIX10 today, most notable were the releases of Silverlight 4 RC, Silverlight 4 Tools for Visual Studio 2010, Expression Blend 4 Beta and the Windows Phone 7 Developer Tools. I was glad to see that developers will be able to use Silverlight to create awesome applications for Windows Phone 7 so we can reuse our WPF and Silverlight skills to target mobile devices! With so much information coming out of this conference, I wanted to be sure ...
In my last post I created a very simple WCF service with the user registration functionality. I created an entity for the user data and a DataContext class which provides some methods for operating the entities such as add, delete, etc. And in the service method I utilized it to add a new entity into the table service. But I didn’t have any validation before registering which is not acceptable in a real project. So in this post I would firstly add some validation before perform the data creation ...
Getting started with the basics Validation in Silverlight can get very complex pretty easy. The DataGrid control is the only control that does data validation automatically, but often you want to validate your own entry form. Values a user may enter in this form can be restricted by the customer and have to fit an exact fit to a list of requirements or you just want to prevent problems when saving the data to the database. Showing a message to the user when a value is entered is pretty straight forward ...
In this Issue: András Velvárt, Bobby Diaz, John Papa/Laurent Bugnion, Jesse Liberty, Christopher Bennage, Tim Greenfield, and Cameron Albert. Shoutouts: Svetla Stoycheva of SilverlightShow has an Interview with SilverlightShow Eco Contest Grand Prize Winner Daniel James Svetla Stoycheva of SilverlightShow also has an Interview with SilverlightShow Eco Contest Community Vote Winner Cigdem Patlak File this under #DoesHeEverSleep, Nokola has an EasyPainter Source Pack 1 Refresh And another filing in ...
So, I busted my old blog and hadn't been keeping up with it. Decided it would be easier on me to use software that I didn't maintain, so several months ago I signed up for a GWB account. You are a witness to procrastination at its finest! I was remarking to my friend Abby that I hadn't written anything in ages, that I've typed a bunch in the last 5 years or so, but that the typing belonged to someone else as work product, was boring technical mumbo jumbo, or was only good before it spoiled, that ...
Earlier this week I had an ESB endpoint (Off-Ramp in ESB parlance) that I was sending to over http using WCF-BasicHttp. I needed to switch the protocol to https: which I did by changing my UDDI Binding over to https: No problem from a management perspective; however, when I tried to run the process I saw this exception: Event Type: Error Event Source: BizTalk Server 2009 Event Category: BizTalk Server 2009 Event ID: 5754 Date: 3/10/2010 Time: 2:58:23 PM User: N/A Computer: XXXXXXXXX Description: ...
In this Issue: AfricanGeek, Phil Middlemiss, Damon Payne, David Anson, Jesse Liberty, Jeremy Likness, Jobi Joy(-2-), Fredrik Normén, Bobby Diaz, and Mike Taulty(-2-). Shoutouts: Shawn Wildermuth blogged that they posted My "What's New in Silverlight 3" Video from 0reDev Last Fall Shawn Wildermuth also has a post up for his loyal followers: Where to See Me At MIX10 Jonas Follesø has presentation materials up as well: MVVM presentation from NDC2009 on Vimeo Adam Kinney updated his Favorite Tool and ...
In this Issue: Andrea Boschin, Jeremy Likness(-2-), Andrew Veresov, Nokola, SilverLaw, Gill Cleeren, Jim Wightman and Jeremy Likness, Viktor Larsson(-2-), and Walter Ferrari. Shoutouts: Viktor Larsson has a post up about Silverlight Market Penetration ... hope to meet you at MIX10, Viktor! Gergely Orosz has posted the Slides and code for the presentation “An Introduction to Silverlight” It appears that if I miss a day, I can pretty much do an all-submittal post :) From SilverlightCream.com: Writing ...
In Windows Azure platform there are 3 storage we can use to save our data on the cloud. They are the Table, Blob and Queue. Before the Chinese New Year Microsoft announced that Azure SDK 1.1 had been released and it supports a new type of storage – Drive, which allows us to operate NTFS files on the cloud. I will cover it in the coming few posts but now I would like to talk a bit about the Table Storage. Concept of Table Storage Service The most common development scenario is to retrieve, create, ...
One of the biggest questions I routinely get asked is how scalable Commerce Server is. Of course the text book answer is the product has been around for 10 years, powers some of the largest e-Commerce websites in the world, so it scales horizontally extremely well. One argument however though is what if you can't predict the growth of demand required of your Commerce Platform, or need the ability to scale up during busy seasons such as Christmas for a retail environment but are hesitant on maintaining ...
INTRODUCTION If you are a SharePoint developer you know that there are two basic ways to develop against SharePoint. 1) The object Model 2) Web services. SharePoint object model has the advantage of being quite rich. Anything you can do through the SharePoint UI as an administrator or end user, you can do through the object model. In fact everything that is done through the UI is done through the object model behind the scenes. The major disadvantage to getting at SharePoint this way is that the ...
So I was playing around with NavigationNodeCollection, which is basically like SPNavigationNodeCollection just to make sure it worked without a hitch…Here is a little sample snippet of what should work: Unfortunately, you get a nice little javascript error that does not allow you to access the child nodes. I tried a foreach() loop that gets a NavigationNode for each parent then loops through the NavigationNode.Children that did not work either. I threw in two ExecuteQueryAsync statements thinking ...
I always thought that the NUnit test runners and the test assemblies need to reference the same NUnit.Framework version. I wanted to be able to run my test assemblies with the newest GUI runner (currently 2.5.3). Ok so all I need to do is to reference both NUnit versions the newest one and the official for the current project. There is a nice article form Kent Bogart online how to reference the same assembly multiple times with different versions. The magic works by referencing one NUnit assembly ...
Quick Links Introducing the Earthquake Locator – A Bing Maps Silverlight Application, part 1 Adding Volcanos and Options - Earthquake Locator, part 2 Live Demo Source Code I finally got a live demo up and running! I signed up for a shared hosting account over at discountasp.net so I could post a working version of the Earthquake Locator application, but ran into a few minor issues related to RIA Services. Thankfully, Tim Heuer had already encountered and explained all of the problems I had along ...
Surface is magic. Everyone using it seems to think that way. And I have to be honest, after working for almost 2 years with the platform I still get that special feeling the moment I turn on the unit to do some more work. The whole user experience, the rich environment of the SDK, the touch, even the look and feel of the Surface environment is so much different from the stuff I’ve been working on all my career that I am still bewildered by it. But… and this is a big but.. in the end we’re still talking ...
Quick Links Adding Volcanos and Options - Earthquake Locator, part 2 Live Demo Source Code The recent wave of earthquakes (no pun intended) being reported in the news got me wondering about the frequency and severity of earthquakes around the world. Since I’ve been doing a lot of Silverlight development lately, I decided to scratch my curiosity with a nice little Bing Maps application that will show the location and relative strength of recent seismic activity. Here is a list of technologies this ...
In this Issue: András Velvárt, felix corke, Colin Eberhardt, Christopher Bennage, Gergely Orosz, Entity Spaces Team Blog, Mike Taulty(-2-), Jit Ghosh, and Jesse Liberty. Shoutouts: Jeremy Likness expands on the Silverlight Team's post Vancouver Olympics - How'd We Do That? Gavin Wignall has a post up Creating a 360 photograph of an object with Silverlight Photosynth From SilverlightCream.com: Transforming an Ugly Duckling into a Graceful Swan With Expression Blend and Silverlight - Part 2 Intro Animation ...
A WCF Service I provided took a very simple data contract as parameter (containing one string and one int...) and had a very simple task to do. A .NET 3.5 client was created using the VS2008 feature "Add Service Reference". Everything worked as expected. Then a slight change came in: The client was expected to run on machines with .NET 2.0 only. So we set the Target Framework to .NET 2.0, removed the references to System.ServiceModel, System.Runtime.Serialization and the ServiceReference and created ...
*Moved to: Finding the problem on a partially succeeded build on Team Foundation Build Services 2010Now that I have the Build failing because of a genuine bug and not just because of a test framework failure, lets see if we can trace through to finding why the first test in our new application failed. Lets look at the build and see if we can see why there is a red cross on it. Read more...Follow my new blog on http://blog.hinshelwood.com ...
*Moved to: Solution: Testing Web Services with MSTest on Team Foundation Build Services 2010Guess what. About 20 minutes after I fixed the build, Allan broke it again! Read more...Follow my new blog on http://blog.hinshelwood.com ...
You may find during application performance analysis that you can improve your application’s cold start time by using native images for both your application and its dependent assemblies. Native images will alleviate the need for your code to run through the CLR’s Just-In-Time (JIT) compiler at runtime. If you go down this route, you will want to ensure that the native images are actually being loaded and that the JIT process is being bypassed. In general, you will follow a checklist like this: Add ...
On Saturday 35(ish) developers met up on rainy day in Birmingham to take part in an Open Space Code day on the Windows Azure Platform. Around 5 of us had experience of Open Space meetings or developing for Azure prior to the day – and I think only two of us had experience of both :-) As I was on point to keynote the day and make sure it was a success, I did turn up with a few concerns matched by a good deal of excitement. My primary concern was that people would expect to be trained – and the Open ...
Silverlight at Visual Studio 2010 sample for simple binding a data to DataGrid. This sample is also for the beginners only. We will create a Databinding for DataGrid in a simple way using WCF and Linq to SQL. For more details: http://docs.google.com/Doc?... ...
In this Issue: Mike Hodnick, Jeremy Likness(-2-, -3-), Bobby Diaz, Jianqiang Bao(-2-, -3-, -4-, -5-), Chris Klug, Nokola, Peter Bromberg, Nigel Sampson, Shawn Wildermuth, and Kirupa. Shoutouts: Chris Woodruff composed a PDF of the MEF Programming Wiki Gavin Wignall has a post up on how to Create a 360 panorama using Microsoft Silverlight Photosynth Chris Klug posted an Update to the multi-touch development intro From SilverlightCream.com: SilverSynth - Digital Audio Synthesis for Silverlight Mike ...
I was bored thinking of what my first blog post should be about, so I decided to interview myself (especially since no one else knows about this place, yet!)... Q: Where have you been? A: Well, it's been over two years since I last blogged about anything interesting, but since that old server has long since been retired, I decided to resurrect myself on a popular blog site (this one). Q: What have you been doing in the mean time? A: I have been working with several of the latest offerings from Microsoft, ...
I was presenting at the excellent .NET Developer Network in Bristol last night run by the awesome Guy Smith-Ferrier. Guy reminded me of this awesome news which needs broadcasting widely – Jesse Liberty is in town in April. Sweet. Stolen directly from Guys post: “Jesse Liberty, Silverlight Geek (Microsoft US Developer Evangelist for Silverlight), is doing a tour of the UK and Ireland in April to coincide with Microsoft UK's week of TechDays (#techdays) events. Jesse is speaking at Bristol, London, ...
Technorati Tags: General Pluralsight is an online .NET Training library which provides online training materials for .NET developers. Example trainings available on demand: · .NET 3.5 · Agile Team Practices · ASP.NET 3.5 · ASP.NET AJAX · ASP.NET MVC · BizTalk 2006 · BizTalk Server 2006 R2 · BizTalk Server 2009 · iPhone ASP.NET · LINQ · Managed Services Engine · Silverlight 3 · SharePoint Services · SQL Server 2008 · VSTS · WCF · Windows Server AppFabric, formerly "Dublin" · Windows Workflow · WPF ...
Last week, I needed to call the SQL Reporting Services Web Service to export reports as Excel, PDF, and Word formats. I could have used the [Add Web Reference...] as the MSDN Documentation Accessing the Report Server Web Service Using Visual Basic or Visual C#, but I decided to use [Add Service Reference...]. If you are wondering what the difference is between Web Reference and Service Reference, please read this blog post by Andrew Tokeley. Goal Create a common library project which I could reuse ...
Whew! It's been a busy week. Earlier in the week I put together an internal demo to illustrate some of the system architecture for an ungoing project. And the purpose of this post is to document a couple of gotchas that may not be clear and didn't seem to be well documented. This post is purposely terse, because I don't have a lot of time to be detailed due to some upcoming deadlines. The architecture involves WCF Services that are hosted in a Windows Service and that will be consumed by both Windows ...

Welcome to my geeky blog.

I'm going to focus on following topics:

  • software architecture
  • patterns and anti-patterns
  • best pratices / clean code
  • .NET (WCF / WF /WPF)

Keep checking...

Cheers

Cédric

To me Azure is a new technology but in fact it's not that new. In the PDC08 Microsoft announced that their cloud computing platform had been released with the name Azure, which stand for the color of the sky. I began to play with Azure recently and will post a series of blogs for what it is and how to use it. But first of all we'd better to understand what's Azure. If we went to the official website of Azure we can find the official definition. The Windows Azure platform offers a flexible, familiar ...
Our Info Terminal loads its content from a web server via Web Services. We built a full scalable Silverlight Homepage, in which we can edit the contents for the Info terminal. Our Info Terminal application runs on a Tahoe II developer board. The interface for the page is easy to use. At first you have to login as an Administrator. Then you can add edit or delete news entries. You are also able to set an entry as invisible. A news entry can consist of a picture and as a text content. Internally the ...
There is a great article about Data Access in Silverlight by Shawn Wildermuth came out yesterday. The basic story of how Data Services works is that it takes a context object from a LINQ provider and exposes all the IQueryable endpoints as REST resources that can be queried. This works well in creating a place to execute queries and post/put/delete changes. The Silverlight (and .NET) client library allows you to just issue LINQ queries to the data service. Ability to create tracked projections from ...

I knew the basic idea of WCF and how to build one, but could never win an argument on why it is better than a web service.

Thanks for Christopher Roberts of Oakwood Systems Group Inc. sending me this link.  I can answer that question much better now.

http://msdn.microsoft.com/en-us/library/dd943056.aspx

I ran into a situation where I was trying out WS-Discovery. you know the new WCF capability that allows you dynamically find services on your local network. Which would come in handy if say some company created software that ran on windows and hosted some services that could automatically link up with co-workers clients like windows phone and maybe even the plasma screen or microsoft surface computer? Well i ran into a little hiccup today where enabling the virtual network interface for Hyper-V on ...
Setting the context… We have a web application which communicates with WCF based service façade for any business functionality. This service façade then loads assembly (based on configuration) at the runtime for making the system pluggable. By default the implementation is in the service assembly itself. Below is the sample code for loading the assembly and creating an instance of the desired class. Assembly asm = Assembly.LoadFrom(Path.Comb... assemblyName)); ...
As promised in the previous post, here is a first look on Visual Studio 2010 RC. i am sure many of you have downloaded the bits already so this is for those who are waiting yet. VS 2010 RC is an upgrade to the Beta 2 that was shipped last year. This build has been heavily focussed on implementing community feedback and fixing performance issues reported. The start up screen looks as below. A little darker compared to the Beta 2 build. You can read my earlier post on First look on Beta 2 here I didn’t ...
Warning: This is my experimentation and cannot be taken as a recommendation ! I gave it to my temptation and installed the Visual Studio 2010 RC despite having a lot of upcoming WCF RIA Services talks. (One is scheduled right tomorrow and it would be disastrous to try anything fancy) Much has been explained around the non-availability of Silverlight 4 Tools updated version for this RC release and subsequently the inability to work with WCF RIA Services and SL4. Infact, Tim Heuer has put up a nice ...
Blatant repost alert from the ADO.NET team blog! But important IMHO. The Microsoft data team are looking for help to prioritize future work. Is there a feature that you’ve always wanted to have? Or a bug in VS2010 RC? Then provide feedback directly to the teams at the new Connect site. Including: ADO.NET Entity Framework WCF Data Services Thanks all ...
Episode 3 of the Community Megaphone Podcast is now up with special guest Dan Rigsby from Indianapolis, IN and you get it on http://www.communitymegapho... Dan talked to Andrew and I about a myriad of topics including Olso, Dallas, M and OData. Dan Rigsby is a System Architect for Aprimo in Indianapolis, Indiana. Dan has been an avid .Net developer since late 2001 starting with ASP.Net, but today concentrates on SOA, Wcf, smart client applications, and a host of other areas. Dan is very ...
In this Issue: Fons Sonnemans, Mark Monster, Karl Shifflett, Einar Ingebrigtsen(2), Jeremy Likness, Emil Stoychev, Andrew Veresov, Sergey Barskiy(2), and Tim Heuer. Shoutout: Karl Shifflett announced Karl Now Using Vimeo for Videos... check it out, thank Karl, and create an acount. From SilverlightCream.com: Keyboard selection on Silverlight ListBox and ComboBox Fons Sonnemans explains and provides a behavior that allows keyboard selection on a ListBox or ComboBox. MeXperience – Step 3 – Architecture, ...
It happens once in a while (to me at least): You get an XML schema and your task is to create a WCF service that accepts this data as parameter or uses it as return value. So you generate a class from the schema using xsd.exe (like "xsd XMLSchema1.xsd /c /l:CS /n:mipsen.schemas"). You create your ServiceContract and implementation (adding ServiceKnownType to avoid funny behaviour concerning the schema-generated class), create the web.config and svc-file and host your service (in IIS, for example). ...
In this Issue: Joel Neubeck, James Bacon, Jeremy Likness, John Stockton, Fredrik Normén, Subodh Pushpak, Alexander Golesh, PhaniRajuYN, Victor Gaudioso, and Syed Mehroz Alam. Shoutouts: Michael Sync posted the material for his My WPF MVVM Session at Consistel Michael also posted an interesting post Rules of MVVM?? Andrew Marshall reported to me that he now has the code posted for his Silverlight and CUDA interop article.. thanks Andrew! John Papa isn't wasting any time with Silverlight TV ... he's ...
To download the source code please click here Introduction Claim-based authorization is a new model of authorization introduced in Windows Communication Foundation. This model addresses more scenarios than the popular role based security model (IIdentity, IPrincipal). This is useful when an application requires complex and fine grained control on expressing access control decisions. Role based security model may not be powerful or flexible enough and is often too coarse when we reach complex scenarios ...
Skipped directly from XP to Windows 7, and every once in a while I run across something that makes me feel really juvenile. I was recently trying to pass a directory structure to an offsite developer who was having configuration issues so that they could compare their project structure to what was running on the server. So I requested access to the server, and mapped a drive. I grabbed a path to the directory from an email, and switched to a command prompt that I had been using to run iisreset commands ...
This is the first post on my brand new blog. I decided to move my blogging-activities to geekswithblogs and discontinue my blog at live.com. I like the discussions and blog-entries of this community a lot and I would like to share with you and all readers some interesting discoveries, new stuff or sometimes weird or funny things I stumble upon . My main interests are MS BizTalk Server, WCF, .NET in general and will soon be accompanied by WF4 and AppFabric, when I have a little more time... They will ...
Hi there, Today we will be doing a quick little test to send a XML message to BizTalk with few lines of code. I had a scenario in my solution in which I had a WCF LOB Outbound Adapter which was doing some work and later the same code had to submit message back to BizTalk. First solution I thought of was writing the message to a File Location and than a BizTalk Receive Location picks it up from there and processes it. But then came up with a different solution of using WCF netPipe and submitting it ...
I recently developed a WCF solution with SharePoint that once I deployed cause so many issues with memory leak that it service was shutting down. If you are having issues with a WCF service that hits the SharePoint object model and it is unexpectedly shutting down, most likely it is because memory leaks. I will not write about simple memory leaks since there are lots of great blogs which cover the topic really well. I have had issues with LINQ and SharePoint and I wrote several .Net method extensions ...