CARDSPACE ISSUE WITH JULY CTP & IE 7.0 Beta 3

I have hosted web application supporing "cardspace" locally on machine having july ctp & ie 7.0 beta 3 (IE: 7.0 v7.0.5450.4 ). on WIN 2003 & iis 6.0. The problem I am facing here is that during Login Process my web application does not popup the CARDSPACE selection window(Code for popup and displaying CARDSPACE is correct). I am able to accesshttp://sandbox.netfx3.com/ and able to sign in using CARDSPACE.( here windows CARDSPACE is automatically popup).

I am guessing the problem here is with my installation ....... or Configuration. for hosting web application having "CARD SPACE" facility required anything other than july ctp, ie 7.0 beta 3 ? or any configuration should be changed for IIS ?

guide me

thanks in advance
shaji

[885 byte] By [shajipd] at [2008-2-10]
# 1

99% of the time it's all about the object tag parameters.

Check the event log, sometimes it's useful to see why CardSpace is angry.

Second, post the object tag from your html and I'll look at it.

(There is a bug in the July CTP--put all the claims on a single line, seperated by spaces.)

g


Garrett Serack | Program Manager |Federated Identity Team | Microsoft Corporation
blog:http://blogs.msdn.com/garretts

GarrettSerack-MSFT at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows CardSpace (InfoCard)...
# 2

FYI

My Login aspx code ...............

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>InfoCard Demo </title>

</head>

<body>

<form name="formInfoCardLogin" method="post" id="formInfoCardLogin" runat="server">

<h1>InfoCard Browser Demo</h1>

<object type="application/x-informationCard" name="xmlToken">

<param name="tokenType" value="urn:oasis:names:tc:SAML:1.0:assertion" />

<param name="issuer" value="http://schemas.microsoft.com/ws/2005/05/identity/issuer/self" />

<param name="requiredClaims" value="http://schemas.microsoft.com/ws/2005/05/identity/claims/emailaddress" />

</object>

&nbsp;<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/infocardlogin.jpg" Height="116px" Width="172px" />

</form>

</body>

</html>

Code behind of login -> here I am getting xmlToken as null

protected void Page_Load(object sender, EventArgs e)

{

if (this.IsPostBack)

{

// we should haved received a token

string token = Request.Form["xmlToken"] as string;

if (String.IsNullOrEmpty(token))

Response.Write("<b>Unable to authenticate the caller. Please select an InfoCard credential.</b>");

else

ProcessEncryptedToken(token);

}

}

Regards

SHAJI P.D.

shajipd at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows CardSpace (InfoCard)...
# 3

Shaji,

I faced a similar problem but was able to get rid of it by point my url to a https:// location.

For example just for testing sake --put your above code(between <html> to </html> tags) in a login.html (say for eg.) and run it as for eg: https://myserver.com/cardspace/login.html and check if it loads the cardspace. (cardspace being a virtual dir on the IIS server with some sample SSL certificate on IIS enabled)

I may be wrong but this trick worked for me to load the cardspace. Pl. let me know if this works for you too .

Hope this helps.

Good Luck.

Cheers,
Johnson.

IndoJohn at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows CardSpace (InfoCard)...

Software Development for Windows Vista

Site Classified