Welkom bij dotNed inloggen/aanmelden

dotNed Logo

Laatste berichten

Windows 8 Development bij Oosterkamp

Op donderdag 24 november zijn we te gast bij Oosterkamp Training | Consultancy. We hebben wederom een gratis avond waarin Sander Gerz, Thomas Huijer en Dennis Vroegop je laten zien hoe je software bouwt voor het Windows 8 platform met WinRT als runtime. Inschrijven kan op http://www.dotned.nl/register.aspx?meeting=40.
16-11-2011 10:01:35 door dotNedEvents in dotNed Events


SharePoint Connections Amsterdam: 22 en 23 november 2011

Ook dit jaar is er weer een SharePoint Connections. Twee dagen deep dive in alles wat met SharePoint te maken heeft. Veel bekende sprekers uit binnen- en buitenland zullen hier acte de presence geven om jou alles te vertellen wat je moet weten over SharePoint. Enkele bekende namen zijn Asif Rehmani, Micheal Noel, Danny Burlage en uiteraard Mirjam van Olst en Wouter van Vugt. De Keynote zal worden verzorgd door Dan Holme. Holmes was de technical consultant voor de NBC Olympics in Beijing en Va...
8-11-2011 17:16:49 door dvroegop in Dennis' avonturen in .net


27 oktober: HTML 5 bij 4dotnet door Maurice de Beijer

Op 27 oktober organiseert dotNed bij 4dotNet in Meppel een avond over HTML5. De spreker Maurice de Beijer zal laten zien hoe een ontwikkelaar gebruik kan maken van de features die HTML5 je biedt. De avond is, zoals altijd, gratis na inschrijving op http://www.dotned.nl. We beginnen om 19.00 uur maar de deur is open vanaf 18.00 voor een hapje en een drankje!
20-10-2011 12:16:58 door dotNedEvents in dotNed Events


WCF and LINQ: beware of deferred execution

When I was teaching WCF in Oslo this week, a student got an Exception from the client when calling this method on the server:   public IEnumerable<Product> GetProductsForProductModel(int productModelID)         { using (AdventureWorks2008R2Entities context = new AdventureWorks2008R2Entities()) { return from Product p in context.Product where p.ProductModel.ProductModelID == productModel...
8-9-2011 16:07:10 door Thomas in Thomas Huijer - Compiler says no....


WCF Service in PreCompiled ASP.NET web application

I got an email from a customer that reported a bugin the Web Deployment Tool 2010. Maybe it saves you some time if you ever encounter this. This is the translated text:   When we deploy our webapplication, we precompile it first using the Web Deployment Tool 2010. While testing, we found out that the service could not be located. After some digging it turned out the problem was in the .compiled file of the service. See this post fromTom Fuller : http://social.msdn.microsoft.com/forums/e...
6-9-2011 9:34:17 door Thomas in Thomas Huijer - Compiler says no....

OPML Lijst

dotNed Community Bloggers

nServiceBus synchronously

When you read a title like this, everything that makes you a developer should start worrying. Because nServiceBus is build on top of the concept of asynchronous messaging. Normally, it does not support the request/reply communication pattern as you would normally understand this pattern. You are able to send a reply message to the originator, the application that initially sent you the message. But this is inherently asynchronous. However… With the company I work for, we’re investing a lot of time on messaging. One application needed to call a component that supported this asynchronous messaging. The application itself however is very linear and was very, very hard to interrupt, send a message and have a message handler wait for the result. This really required a Saga and this was too much work at the time. We already had plans for a refactoring where we’d introduce a Saga, but we needed the functionality that called out this other component now. So we created a small piece of code that actually waits for nServiceBus te receive the reply. After this the normal flow of the application can continue. Again, I really need to clarify that this was a temporary solution and eventually we fixed this by refactoring the code and support a Saga, a long running process that was persisted while waiting for the response. Here’s the code to do it though DataResponseMessage response = null; RequestDataMessage message = new RequestDataMessage() { DataId = g, SomeMessage = "Whatever" }; var synchronousHandle = Bus.Send(message) .Register(asyncResult => { NServiceBus.CompletionResult completionResult = asyncResult.AsyncState as NServiceBus.CompletionResult; if (completionResult != null && completionResult.Messages.Length > 0) { // Always expecting one IMessage as reply response = completionResult.Messages[0] as DataResponseMessage; } } , null); synchronousHandle.AsyncWaitHandle.WaitOne(); Console.WriteLine("Reply : {0}", response.ResponseMessage); For completeness, I’ll include the message handler from the component the message was sent to. This is normal nServiceBus code. public class RequestDataMessageHandler : IHandleMessages<RequestDataMessage> { public IBus Bus { get; set; } public void Handle(RequestDataMessage message) { var response = Bus.CreateInstance<DataResponseMessage>(m => { m.DataId = message.DataId; m.ResponseMessage = "I got the message : " + message.SomeMessage; }); Bus.Reply(response); } }
31-1-2012 16:03:17 door Dennis van der Stelt in Dennis van der Stelt


DotNed Podcast: Koen Zwikstra over Silverlight 5 en de toekomst van Silverlight

Er is weer een nieuwe DotNed podcast online. In deze podcast spreekt Maurice de Beijer met Koen Zwikstra over de recente Silverlight 5 release en hoe de toekomst er voor Silverlight ontwikkelaars uitziet. Verder vertelt hij over Silverlight Spy een runtime inspector waarmee je willekeurige Silverlight applicaties kan inspecteren. Hij kondigt ook nog even aan dat hij druk bezig is met een Spy voor Metro applicaties op Windows 8. Links: Blog: http://firstfloorsoftware.com/blog/ First Floor Software: http://firstfloorsoftware.com/ Silverlight Spy: http://firstfloorsoftware.com/silverlightspy/ Balder - 3D engine for Silverlight: http://balder.codeplex.com/   enjoy!   TheProblemSolver DotNetEvents
27-1-2012 11:39:00 door Maurice in The Problem Solver


Deploying SqlServerCe with an ASP.NET MVC application

Using Entity Framework Code First together with SqlServerCe is a great way to work with small databases in ASP.NET MVC applications. I have several web applications running on shared hosting sites where SqlServerCe is the database engine under the hood. Deploying is also quite easy. I typically use the build in Publish Web option which works great over FTP.   When using SqlServerCe you have to make sure you add the deployable dependencies. Forgetting those results in pretty clear error messages.   However once that is done I always run into another issue. When a page actually tries to use SqlServerCe I will see a security exception: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) The solution is simple enough. Go to whatever security portal your provider is using, mine is using Plesk, and make sure the user that is actually running the web site has the required read/write privileges to work with the Bin folder.       Enjoy!   TheProblemSolver DotNetEvents
24-1-2012 11:50:00 door Maurice in The Problem Solver


Setting visibility based on wp7 themes

Intro The Technical Certification Requirements for Windows Phone 7 applications state the following: 5.5.2 – Content and Themes Application content, such as text and visual elements, must be visible and legible regardless of the phone theme. For example, if the phone theme changes from black background to white background, the text and visual elements of [...]
23-1-2012 21:18:52 door Timmy in Timmy Kokke


HTML5, Internet Explorer and automatic updates

One of the problems with HTML5, or development at the cutting edge of the web, has always the need to support a large number of different browsers. Depending on who you ask the numbers will vary slightly but is usually boils down to Internet Explorer being the biggest and Chrome and FireFox each taking quite a big chunk of the stats and the remainder of the browsers filling up the gaps. So that means that any public facing website should at the very least support the three major browsers, not to bad right?   Turns out that live isn’t quite as good as that. With Chrome and FireFox most users are at or close to the last revision of the browser but with Internet Explorer this isn’t the case. In fact as the chart below shows the majority is still using IE8 with IE9 only accounting for a little over a third of all IE users.   So what the big difference? There are 2 reasons. First of all IE9 is only available on Windows Vista and Windows 7 and it turns out there is still a substantial number of people using Windows XP. For all those users Internet Explorer 8 is the latest version of the browser they can use. And that is not going to change when Internet Explorer 10 ships. However that number of XP users isn’t that large. The second and more important reason is that Microsoft doesn’t automatically update Internet Explorer when a newer version is available. You can download it if you want to but if you don’t explicitly do so nothing happens. And by contrast all recent versions of FireFox and Chrome are self updating, so whenever a new version is available it is downloaded without any explicit user action. The benefit is that with both Chrome and FireFox a web developer wanting to do cutting edge HTML5 stuff can be pretty confident that a user has an up to date browser. Well except with Internet explorer that is   Microsoft has seen the update light Fortunately that won’t be a problem much longer. Recently Microsoft has announced that it will start auto updating Internet Explorer using Windows Update. So no longer are we dependent on users going in and manually doing an update, instead if they don’t take any action they will be automatically upgraded to the last possible version of IE. This means that we should soon see at leas two thirds of all IE users use IE9, and more important for HTML5 developers, a more compliant browser with a much faster JavaScript engine. Of course IE9 still isn’t perfect because it supports less HTML5 features than both Chrome and FireFox but the fact that the JavaScript engine is much faster makes it much easier when using polyfills to insert missing pieces. And the fast JavaScript engine and more compliant rendering engine is great news for all web developers And the this update will mean that adoption of IE10 will be a lot faster when it ships later this year.   The auto update doesn’t start worldwide right away. At first it will start in Australia and Brazil only. But when that is done they plan on doing so in more countries around the world.   A big step forwards for Microsoft and a huge step forward for HTML5 developers all over the world   Enjoy!   TheProblemSolver DotNetEvents
23-1-2012 11:24:00 door Maurice in The Problem Solver


Getting Started with WCF and Rest material

Thanks everyone for joining in with the DevelopMentor webinar I did last night on Getting Started with WCF and Rest. If you want to take another look at the slides or samples you can download them using the links below: PowerPoint slides. ASP.NET MVC 3 project containing the REST service.   For more info about the WCF Web API you can check the WCF CodePlex site.   Enjoy!   TheProblemSolver DotNetEvents
20-1-2012 9:24:29 door Maurice in The Problem Solver


metro colors for photoshop

I did some designing for a Windows Phone 7 App this week. I wanted to test some graphics using the accent colors. I’ve saved the color swatches I use. If you’re using Photoshop or Illustrator and would like to use them too, you can download them here: Metro Color Swatches
18-1-2012 21:23:35 door Timmy in Timmy Kokke


Real-time Google Analytics with MVVM

Inside Catel, there are several secret gems. One of these gems is the possibility to audit everything that happens in the view models (property changes, events, commands, etc). This is very useful for logging, or in the case of this blog post, real-time tracking with Google Analytics. Show me first Below is a movie that demonstrates the example application with real-time tracking: Cool, now show me the code The code is pretty simple. First you need to create an implementation of the IAudit...
18-1-2012 21:13:00 door in Geert van Horrik


Romotive publishes Romo audio protocol

On their blog, Romotive has made public which audio waves you need to generate on which audio channel to control a Romo first revision smartphone robot. So if you want something programmable with an audio port to control one, now you know how! The article even briefly mentions my own work on a Romo control library for Windows Phone, which can change the amplitude of the soundwaves it sends out to control robot speed as well. This library (and my first two apps) are slowly but surely nearing a ...
18-1-2012 17:33:00 door peSHIr in peSHIr.NET


When you should stop using MVVM…

Who would even thought this post would come from me, but today I saw a tweet that made me very, very unhappy… It was something like this (don’t want to quote people by name, everyone has a right to an opinion): “How nice, my view models are completely auto generated…” Let me explain (or at least try to) why bothers me so much about this. MVVM is a good pattern, so good that I decided to write a framework for it (called Catel). I like it and use it in all my appl...
17-1-2012 20:22:00 door in Geert van Horrik

OPML Lijst