Mike Taulty's Blog
Bits and Bytes from Microsoft UK

December 2005 - Mike Taulty's Blog

Blogs

Mike Taulty's Blog

Elsewhere

  • UK MSDN Nugget Videos - Alternate Methods for Viewing

    We've been making and publishing these little MSDN "Nugget" videos in the UK for quite a while and they've been successful for us in the sense that people download them and watch them and when I meet folk at events they often say "Hey, I watched that little video" and they're generally positive about them which is great. We've got to the point where there are around 50+ videos on the web site here and, for me, the website has got a little bit unmanageable in that it's hard to see what's new and what the categories are and, frankly, sometimes things have been categorised incorrectly. I wanted to try and help make the viewing of these videos a little easier so I've typed all the details of these things into a little database and made that available via a number of means; MSDN Nugget Videos on an RSS Feed The first mechanism is a plain reliable RSS Feed. You can consume the feed here; UK MSDN Nugget Topics RSS Feed This is a list of all the topics that we've recorded "Nugget" videos for. This is likely to be a fairly...
  • Windows Forms, ScrollableControl, AutoScroll and Focus

    If you're ever playing with Windows Forms, ScrollableControls, AutoScroll and you're having problems with controls jumping about on the screen when they get focus then this is the article you need to read . I've been playing with this a little lately and ended up having to implement my own scrolling - just couldn't get what I wanted to work with AutoScroll (cool though it is - definitely a win 90+% of the time).
  • WSE 2.0 and 3.0 Tracing Tools: Source Code

    Someone pointed out to me that the source code for the WSE 3.0 and WSE 2.0 tracing tools is not really available online. The tool history is documented here so I won't go into it yet again :-) At one point, I created a GotDotNet Workspace for the tracing tool but I couldn't add enough members to the site and it all got a little out of date. So…the source code for anyone that wants it is downloadable from here. There are 2 versions; 1) WSE 2.0 Trace - this is for VS.NET 2003, .NET Framework V1.1 and WSE 2.0 (Sp 3 I think). 2) WSE 3.0 Trace - this is for VS 2005, .NET Framework 2.0 and WSE 3.0 Note - the setup projects are not included as I thought it was unlikely that you'd want to build a setup kit with my name all over it :-) I'm not planning to make any more alterations to these bits. Note: The usual caveats apply to this source code - it's just sample stuff and isn't intended to be fit for any particular purpose.
  • Windows Vista December CTP: On MSDN Downloads

    Go here to download. I managed a pretty quick download of it but haven't got around to installing yet.
  • WinFX: December CTP

    The download page for the December CTP of WinFX is up here . I was looking around the MSDN subscriber downloads site to see if a corresponding Vista build was also available but it looks like it's not up there just yet although the public news sites have been suggesting that it won't be far away. It looks like Ian has already got it installed :-) and that Cider has now shown up in the Toolset - very cool, I think this will make talking about WPF to developers a lot more "concrete". A quick update from me. I've got a couple of problems at the moment since I installed this. 1) When I got to do an "Add Web Reference" I now get a dialog saying "Some of the required files for Web References are not installed". 2) More subtle. If I build a Windows Forms application and ClickOnce deploy it for the "Internet" zone then I find that the manifest contains permissions from the assembly WindowsBase.DLL. This is part of WinFX and not part of Windows Forms so when the user comes to install the app if they don't have WinFX the...
  • Blimey

    I guess this is the shape of things to come :-) I imagine that the whole thing gets a bit warm and perhaps noisy but, still, that's a pretty impressive bit of kit.
  • WCF: WsHttpBinding, UserName Security and the "Exception identity check failed for outgoing message" error.

    I've moved on from playing with WCF Transport security and started trying to look at message security. I configured my service like this; < services > < service type = " Implementation " > < endpoint address = " http://localhost:9200/service " contract = " IServe " binding = " wsHttpBinding " bindingConfiguration = " bind " behaviorConfiguration = " behave " /> </ service > </ services > < bindings > < wsHttpBinding > < binding name = " bind " > < security mode = " Message " > < message clientCredentialType = " UserName " /> </ security > </ binding > </ wsHttpBinding > </ bindings > < behaviors > < behavior name = " behave " > < clientCredentials > < serviceCertificate x509FindType = " FindByThumbprint " storeLocation = " LocalMachine " storeName = " My " findValue = " 65f279af32580041360d8a9b397baec0146759a0 " /> </ clientCredentials > </ behavior > </ behaviors > and I built a client...
  • WCF: Tracing and Diagnostics

    When I first saw a WCF build I had a play around with the tracing capabilities and, at the time, I wasn't particularly impressed. It might have been the build of the tracing viewer tool, it might have been my lack of knowing what to do or a combination of both. In recent builds, I hadn't been back to revisit the capabilities as I'd assumed that there wasn't much there. But today ( in trying to get something to work ) I revisited it and it's absolutely brilliant. Not often that you'd hear me say that kind of thing but it really does look to "do the job" properly. What's not so well documented right now is what the various trace sources are meant to be that you can switch on but I did find a documentation page that talked of; Microsoft.InfoCards.Diagnostics Microsoft.Transactions.Dtc System.IO.Log System.Runtime.Serialization System.Security.Authorization System.ServiceModel System.ServiceModel.Messaging I can't find a web link to that documentation page to reference here but it's in the SDK docs under "Windows...
  • TweakUI: Applications Stealing Focus

    I'd forgotten that I needed this. One of my pet hates is the way in which I'm typing away in a Word document or an email and some other application leaps to the foreground with a dialog which has a couple of buttons on it and I press the space bar into this new window and take some UI action that I never wanted to take (e.g. if it's the automatic updates dialog I possibly risk restarting the machine). In my view applications shouldn't be allowed to steal focus like this as I think it's a risk that you run destructive actions without realising it. I knew that I used to have a mechanism for stopping this and it was only today that I actually went and searched around to remember that it's the TweakUI PowerToy that lets you stop it happening. Having said that, whilst I was typing this message the "Automatic Updates" dialog just flashed on the screen and stole my focus and I nearly restarted my machine by mistake :-( Maybe the TweakUI thing only works for real apps with a TaskBar Window and not those in the System...
  • WCF: HTTP Transport Security and Custom Authentication

    In the WCF there are 2 modes of security - transport and message where the former pushes the work down to the transport layer (HTTPS etc) and the latter pushes the work into the SOAP layer and works across multiple networking hops and so on. When you configure security mode in the NovCTP you get a choice of; None Transport Message TransportWithMessageCredential TransportCredentialOnly And one of the things that you can do with WCF is provide your own authentication and authorization plug in to determine users and roles and you do that by plugging an ASP.NET 2.0 Membership Provider. I was playing with TransportCredentialOnly the other day and using Basic/Digest authentication over HTTP in plain text (clearly not a secure choice but I was just playing). So, one of my first thoughts was "I wonder if this can be linked to my own membership provider". That is, plain old HTTP traffic with Basic/Digest credentials arrive at the service and rather than try to log into Windows with those credentials we just delegate down...
  • Blog Downtime

    This site might go down for a day or two over the next couple of days as my hoster is going to move the site onto a new server - hopefully the delay won't be for too long. Thx.
  • Windows Communication Foundation: More Nuggets

    I started a whole series of nugget videos about the WCF and it looks like a lot of them got published in one big go so I thought I'd do a bit of additional "promotion" for them here. There are some more of these yet to come. These ones are all ( I think ) based around the September CTP, future ones will be on whatever CTP I have to hand at the time of recording. Here's the running order; "Hello World" - Download , Watch Type Serialization - Download , Watch DataContract Serialization - Download , Watch Typed and Untyped Messages - Download , Watch Bindings - Download , Watch Message Encoding - Download , Watch Message Patterns - Download , Watch Sessions - Download , Watch Instancing - Download , Watch Concurrency - Download , Watch Exceptions - Download , Watch Enjoy - all inaccuracies are mine :-)
  • WCF: Basic HTTP Profile with Mutual Certificate Authentication

    Following up on this post I spent a really long time trying to get WCF (Nov CTP) to work with mutual authentication over the basic HTTP profile that I thought I'd try and do a complete write up of what I did in order to share it. In the end ( like most things ) it turns out to be pretty easy to get what I was trying to do to work but I didn't know where I was going wrong and so I spent an awfully long time on it. I'm going to go through this step by step for my setup - note: this is not necessarily the "right" way to do it but it works for me and I want to be able to remember it :-) 1) I'm using a certificate server rather than makecert. I set up a new certificate server in a VPC image and I called it "TestCA" - this is because I tend to dev on XP rather than Server 2003 which often causes me pain. 2) I visited my TestCA certificate server and I requested two certificates both using the "Advanced Request Form". i) "ClientCert". I went for all the defaults on this apart from selecting that I want the private keys...
  • WCF: Getting WSDL, Help Pages and Metadata from Simple Console Apps

    Something that really bit me hard today. I wrote a simple "hello world" console application with WCF that was listening on http://localhost:8080/service and I was asking it for its WSDL document and it kept refusing. I was using ServiceHost.Open(typeof(MyImplementation)); - from what I can see this does not allow you to offer up the WSDL document. If you do; ServiceHost.Open(typeof(MyImplementation), new Uri( http://localhost:8080/service )); and provide a base URI then the WSDL starts getting offered again. Thought I'd share as it took me an eternity to figure this out.
  • WPF : Dynamically altering styles

    I was thinking about the WPF and its support for styling and how that corresponded with what a website designer can do with CSS for their website. It was Ian's post over here that got me thinking about it. I had a little play with the Nov CTP of WPF to see what it was like to load styles dynamically at run time. As far as I know, in WPF you can either apply a style to all instances of a certain type of control (e.g. button, listbox, etc.) or a control can elect a named style. Styles can also have inheritance and they seem to be most commonly stuck into resource collections for easy access by the rest of the controls. I used VS 2005 and tried to build a simple window with a button in it like so; < Window x:Class = " ReplacingStyles.Window1 " xmlns = " http://schemas.microsoft.com/winfx/avalon/2005 " xmlns:x = " http://schemas.microsoft.com/winfx/xaml/2005 " Title = " ReplacingStyles " > < DockPanel > < Menu DockPanel.Dock = " Top " > < MenuItem Header = " File " > < MenuItem Header =...
1 2 Next >