Friday, January 21, 2011

WIF : Problems with SecurityTokenVisualizerControl

This control shows the token information for WIF / ADSL v2.

The control can be downloaded from Security Token Visualizer Control.

The problem is that the wizard looks for Visual Studio 2008. I have Visual Studio 2010 but the wizard doesn't think that's good enough!

Also, it tells me that I don't have the WIF SDK installed. Actually, I do!

Workaround:

Once you've installed the download, don't bother with the wizard - it requires VS 2008 etc.

Navigate to:

C:\IdentityTrainingKit2010\SecurityTokenVisualizerControl\code\Microsoft.Samples.DPE.Identity.Controls

or wherever you installed it and then open:

Microsoft.Samples.DPE.Identity.Controls.csproj

in VS.

You'll have to convert it from an older standard (just reply "Yes" to the question).

Then build it. You now have a .dll in the \bin directory.

Add this .bin to the Toolbar viz. Right click on Toolbar - "Add Tab" - give it a name like "Security Token Visualizer Control".

Then right-click on the new tab - "Choose Items" and browse to the .dll.

The control will now be in your toolbar ready to be dragged onto your page.

Remember to add saveBootstrapTokens="true" to the web.config.

Enjoy!

3 comments:

  1. Thanks! That solved my problem in VS2010

    ReplyDelete
  2. I'm not sure if this is still open but I don't understand the line >>>>> Add this .bin to the Toolbar viz. Right click on Toolbar - "Add Tab" - give it a name like "Security Token Visualizer Control".

    What exactly do I do here?

    Thanks!

    ReplyDelete
  3. This is adding the control to the Visual Studio Toolbox.

    So:

    Open Visual Studio.
    Right click on the Toolbox.
    Choose "Add Tab"

    etc.

    ReplyDelete