Archive for June, 2010

WCF Test Client doesn’t speak Norwegian…

No Comments »

…at least when it comes to handling of decimal numbers – and it probably goes for all other non-English locales that doesn’t use period as the decimal delimiter. If you look closely at the screenshots below, you’ll notice that I’ve entered 2500,00 – that is two thousand comma zero zero in Norwegian. 250000 – two hundred and fifty thousand - gets generated in the SOAP request. If I try to enter 2500.00 (with a period as the delimiter) the UI validation logic tells me (correctly) that it’s an invalid number. Switching to the en-US locale in the Regional settings in Windows, and it behaves normally (e.g. input 2500.00 – output 2500.00 in the SOAP message).

Sigh…

SNAGHTML21f13e78

SNAGHTML21f0fd25


Windows Workflow Foundation 4.0-related blogs

2 Comments »

I’ve compiled a list of bloggers who seem to focus on WF4.0. Please post a comment if you have any blogs I’ve missed.

Matt Winkler [MSFT] http://blogs.msdn.com/mwinkle/
Kushal Shah [MSFT] http://blogs.msdn.com/kushals/
Ron Jakobs [MSFT] http://blogs.msdn.com/rjacobs/
The Activity Designer [MSFT] http://blogs.msdn.com/tilovell/
Request/Reply [MSFT] http://blogs.msdn.com/endpoint/
Zafar Mohammed [MSFT] http://blogs.msdn.com/mimran/
The .NET Endpoint [MSFT] http://blogs.msdn.com/endpoint/
Cathy Dumas [MSFT] http://blogs.msdn.com/cathyk/
Say wwhhhaaaat? [MSFT] http://blogs.msdn.com/patcarna/
Go with the Flow [MSFT] http://blogs.msdn.com/b/flow/
Maurice de Beijer [MVP] http://msmvps.com/blogs/theproblemsolver/
Alan Smith [MVP] http://geekswithblogs.net/asmith/
CloadCasts http://www.cloudcasts.net/
Richard Seroter [MVP] http://seroter.wordpress.com/
Richard Blewett [MVP] http://www.dotnetconsult.co.uk/weblog2/
Damir Dobric [MVP] http://developers.de/blogs/damir_dobric/
Zulfiqar Ahmed http://zamd.net/
Chris Craft [MSFT] http://blogs.technet.com/b/chriscraft/
The Workflow Element http://www.theworkflowelement.com/wf-40/

Solution: Add Service Reference does not always work properly in WF4 scenarios

No Comments »

Now, the title is a bit cryptic, so let me elaborate; earlier this week, I noticed that when I tried to add a service reference to a WCF Workflow service in the same ASP.NET Web Application, I didn’t get the expected result; custom activities for the service operations in the toolbox (when designing another WF Service).

Investigating further, I created a Workflow Console Application and checked if I got the same behavior; no – it worked perfectly. Same happened when I tried it with WCF Workflow Service Application / Declarative Service Library (Visual Studio templates).

Putting one and one together, I guessed that it had something about the definition of the project template. Visual Studio projects has a concept of ProjectTypeGuids that enables/disables specific features for a project once added. A couple of years ago, I noticed that I had to add a specific GUID in order to wire in the “F5 experience” when debugging WCF libraries.

When comparing the GUIDs set in one of the working projects with the ones in the ASP.NET Web Application, I noticed the following (magic number):

{32f31d43-81cc-4c15-9de6-3fc5453562b6}

I retrofitted the GUID in the Web Application, added a service reference to a workflow service;

wfdialog

Building the project and presto! — custom activities for the service operations in the toolbox.


Now, this isn’t just a problem that can happen when using Workflow Services, it can also happen (as I’ve already mentioned) to WCF projects, test project et cetera too. My suggestion to Microsoft is that they in the future add an section somewhere in the Options pages where it is possible to turn on/off features like this one, so developers don’t need to turn autistic and start remembering a large set of project type GUIDs :-) (Oh, no offense to devs (or others) that actually are autistic).


Thanks @mwinkle for putting me in touch with the Add Service Reference guys, even though I found the workaround first :-)