San Diego: this Tuesday May 11th 2010, Michele Bustamante on WCF with .NET 4.0

It is my honor and privilege to host my friend Michele Leroux-Bustamante at this week’s special combined meeting of the San Diego .NET user group Connected Systems and Architecture SIGs.

If you’re doing anything with WCF (and if you read my blog odds are you must be!) and are in San Diego, then this is a not-to-be-missed event.

See you there!

 

Combined Connected Systems & Architecture SIG Meeting

Tuesday, May 11th

Michele Bustamante

on

WCF Made Easy with Microsoft .NET Framework 4
and Windows Server AppFabric

Topic

WCF is a flexible and powerful platform for building service-oriented applications, and  with that flexibility comes some complexity.  As of .NET 4 – configuring, securing, hosting and managing WCF services has never been easier!  WCF 4 and Windows Server AppFabric come together to  help developers and IT administrators overcome the complexity. Come find out how much easier it is to configure WCF services in .NET 4 including alignment with the ASP.NET configuration model and a reduced configuration footprint. Also learn Windows Server AppFabric  features for the IT administrator, finally making it easier for IT administrators to easily access settings they care about such as security and throttling features; providing control over the hosting lifecycle of WCF services; and giving new visibility into faults, exceptions and tracing and diagnostics features to help you manage your service deployments in production un-intrusively.

Speaker

Michele Leroux Bustamante is Chief Architect at IDesign (architecture consulting and training, www.idesign.net) and Chief Security Architect at BiTKOO (providing authorization and identity management software, www.bitkoo.com ). She is also Microsoft Regional Director for San Diego, and a Microsoft MVP for Connected Systems. Michele specializes in scalable and secure architecture design, federated identity, and cloud computing. Michele is a frequent conference presenter at technology conferences such as Tech Ed, PDC, Dev Connections, and NDC; and regularly publishes in several technology journals. Michele wrote the best-selling book Learning WCF – O’Reilly 2007 ( www.learningwcf.com) and is currently working on the second edition to be published in 2010. Visit her blog at www.michelelerouxbustamante.com , or follow her tweets @michelebusta.

Humerous Word 2010 "feature"?

Im just sitting on the train to work and had a funny experience with word 2010 that I thought id share.

Im writing a document and all of a sudden like usually happens the train gets a little bit bumpy. Word decides it doesnt like this (maybe it prefers to fly?). Anyway to show its dissatisfaction with the journey it starts adding new rows to my table in the document all by itself.

5 pages of rows later I still cant workout how to stop itso have to kill word.

Thank you autosave

NServiceBus Generic Host and mqsvc.exe high CPU

We have been doing some work with NServiceBus recently and observed some unusual behaviour which was caused by our mistake and seemed worthy of a small post.

The Scenario

In our solution we were doing some standard NServiceBus stuff by pushing a message to a queue using NServiceBus. We had a direct send/receive scenario rather than a publish/subscribe one.

The background process which was meant to collect the message and then process it was a normal NServiceBus message handler. We would run the NServiceBus.Host.exe which would find the handler and then do the usual NServiceBus magic.

The Problem

In this solution we were creating some automated tests around this module of the integration process to ensure that it would work well. We had two tests.

Test 1

This test would start NServiceBus.Host.exe using the Process object, then seed a message to the queue via our web service fa%u00e7ade sitting above the queue which wrapped NServiceBus. The background process would then process the message and the test would check the message had been processed fine.

If all was well then the NServiceBus.Host.exe process was stopped.

Test 2

In test 2 we would do a very similar thing except that instead of starting the process the test would install NServiceBus.Host.exe as a windows service and then start the service before the test and once the test was executed it would stop the test.

The Results of the Tests

Test 1 worked really well, however in test 2 we found that it didn’t really work at all, instead of doing the background process we were finding that between mqsvc.exe and NServiceBus.Host.exe the CPU on the machine was maxed and nothing was really happening.

The Solution

After trying a few things we found it was the permissions on the queue were not set correctly. Once this was resolved it all worked fine and CPU was not excessive and ran just like the console application.

I think the couple of take aways from this are:

  • Make sure you set the windows service for NserviceBus Generic Host to the right credentials
  • Make sure you have the queue set with the right permissions
  • Make sure you turn on the right logging configuration in NServiceBus

Thanks to Ahmed Hashmi on my team who got this working in the end.

Code samples from Twin Cities .NET User Group (May 2010)

Code samples from Twin Cities .NET User Group (May 2010)

As promised to those who attended the user group last night, here is a link to the demonstration code I used in my talk on WF 4.  There was a great crowd at the event and I appreciate all the great questions during and after the presentation.  If anyone would like a copy of the slides, use the Contact link to the right to send me email and I’ll send them along.  Thanks for attending and congratulations to the first winner in the drawing who took home a 1 year subscription to Pluralsight On Demand!