If you want to use CardSpace from a WCF client without hard-coding config or using an App.config file then try using the MetadataResolver class. Here is some code that works with .NET Framework 3.0 Beta 2 ("WinFX"): I've been meaning to get a MetadataResolver