v3.4.4: The ControlToValidate property of '' cannot be blank in

1,279 views
Skip to first unread message

Peter

unread,
Jun 14, 2010, 2:28:00 PM6/14/10
to DotNetOpenAuth
I've already upgraded to 3.4.4 after reading this post:
http://code.google.com/p/subtext/issues/detail?id=127

When clicking on the Login button I STILL get the error: The
ControlToValidate property of '' cannot be blank.

Should I clear some \bin folder cache or anything or is it still a
bug?
I placed the DotNetOpenAuth.dll + DotNetOpenAuth.xml in the bin
folder.

The error:

Server Error in '/' Application.
The ControlToValidate property of '' cannot be blank.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The ControlToValidate
property of '' cannot be blank.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The ControlToValidate property of ''
cannot be blank.]
System.Web.UI.WebControls.BaseValidator.ControlPropertiesValid()
+3147026
System.Web.UI.WebControls.BaseValidator.get_PropertiesValid() +35
System.Web.UI.WebControls.BaseValidator.Validate() +82
System.Web.UI.Page.Validate(String validationGroup) +229
System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument) +115
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+3691


Here's my code:


<%@ Page Language="VB" EnableViewState="false"
EnableEventValidation="false" ValidateRequest="false"
AutoEventWireup="false" CodeFile="event2.aspx.vb" Inherits="event2" %>
<%@ Register Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DotNetOpenAuth"
Namespace="DotNetOpenAuth.OpenId.RelyingParty" TagPrefix="openid" %>

<!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></title>
<link rel="stylesheet" href="/styles/style.css" type="text/css"/>

</head>
<body>
<form id="form1" runat="server">
<div>

<asp:ScriptManager id="scrmgrDefault" runat="server">
</asp:ScriptManager>


<openid:openidlogin ID="OpenIdLogin1" Columns="30" RegisterText=""
LabelText=""
ButtonText="Login" ButtonToolTip="Login" RequiredText="provide
openID address"
OnLoggedIn="OpenIdLogin1_LoggedIn" RequestEmail="Require"
RequestFullName="Require" runat="server"></openid:openidlogin>

</div>
</form>
</body>
</html>

Andrew Arnott

unread,
Jun 14, 2010, 3:59:43 PM6/14/10
to dotnetopenid
Hmm... I'm not familiar with that bug.  Did anyone file it against DotNetOpenAuth?  I am not surprised then that you're seeing it still present in v3.4.4 since I haven't ever seen it before. 

Can someone please either find the existing bug filed against DNOA or file one and send me the link so I can fix it?
--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre



--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To post to this group, send email to dotnet...@googlegroups.com.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.


Peter

unread,
Jun 14, 2010, 4:25:45 PM6/14/10
to DotNetOpenAuth
Well, see this link I provided: http://code.google.com/p/subtext/issues/detail?id=127

It looks like someone has experienced it before.
Did you get the same error with my code?

On Jun 14, 9:59 pm, Andrew Arnott <andrewarn...@gmail.com> wrote:
> Hmm... I'm not familiar with that bug.  Did anyone file it against
> DotNetOpenAuth?  I am not surprised then that you're seeing it still present
> in v3.4.4 since I haven't ever seen it before.
>
> Can someone please either find the existing bug filed against DNOA or file
> one and send me the link so I can fix it?
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> > dotnetopenid...@googlegroups.com<dotnetopenid%2Bunsu...@googlegroups.com>
> > .

Andrew Arnott

unread,
Jun 14, 2010, 10:39:39 PM6/14/10
to dotnetopenid
Thanks, Peter.  But I was actually referring to a bug filed against DotNetOpenAuth.  This bug is against Subtext and is why I didn't know about the bug until now. 

I haven't tried your code yet.

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.

Peter

unread,
Jun 15, 2010, 8:22:26 AM6/15/10
to DotNetOpenAuth
Hi Andrew,

Ok, clear :)
If this is really a bug: how long does it take in general for a new
patch release to come out?
I'm kinda in a hurry (ofcourse ;) with my project and I'd love to have
this functionality in place :)

Thanks!

On Jun 15, 4:39 am, Andrew Arnott <andrewarn...@gmail.com> wrote:
> Thanks, Peter.  But I was actually referring to a bug filed against
> DotNetOpenAuth.  This bug is against Subtext and is why I didn't know about
> the bug until now.
>
> I haven't tried your code yet.
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> > <dotnetopenid%2Bunsu...@googlegroups.com<dotnetopenid%252Buns...@googlegroups.com>

Andrew Arnott

unread,
Jun 15, 2010, 10:20:11 AM6/15/10
to dotnetopenid
Usually I can turn bugs around within a day, particular one that sounds as simple as this. 

If you file the ticket, I'll fix it. :)

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.

Peter

unread,
Jun 15, 2010, 3:09:49 PM6/15/10
to DotNetOpenAuth
Created!! :)

On Jun 15, 4:20 pm, Andrew Arnott <andrewarn...@gmail.com> wrote:
> Usually I can turn bugs around within a day, particular one that sounds as
> simple as this.
>
> If you file the ticket <http://trac.dotnetopenauth.net:8000/>, I'll fix it.
> :)
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> > > > <dotnetopenid%2Bunsu...@googlegroups.com<dotnetopenid%252Buns...@googlegroups.com>
> > <dotnetopenid%252Buns...@googlegroups.com<dotnetopenid%25252Bun...@googlegroups.com>

Peter

unread,
Jun 15, 2010, 3:15:23 PM6/15/10
to DotNetOpenAuth
Created!! :)

On Jun 15, 4:20 pm, Andrew Arnott <andrewarn...@gmail.com> wrote:
> Usually I can turn bugs around within a day, particular one that sounds as
> simple as this.
>
> If you file the ticket <http://trac.dotnetopenauth.net:8000/>, I'll fix it.
> :)
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> > > > <dotnetopenid%2Bunsu...@googlegroups.com<dotnetopenid%252Buns...@googlegroups.com>
> > <dotnetopenid%252Buns...@googlegroups.com<dotnetopenid%25252Bun...@googlegroups.com>

Andrew Arnott

unread,
Jun 15, 2010, 10:09:42 PM6/15/10
to dotnetopenid
Thanks.  I've begun my investigation and even have a candidate fix.  The workaround for now is to turn EnableViewState="true" back on.

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.

Andrew Arnott

unread,
Jun 16, 2010, 12:17:43 AM6/16/10
to dotnetopenid
I've published a fix.  You can snag it from tomorrow's daily build if you want. 

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


Peter

unread,
Jun 16, 2010, 4:22:09 AM6/16/10
to DotNetOpenAuth
Wow, thats fast! :-D
Where excactly can I download it?
I've checked here: https://www.ohloh.net/p/dotnetopenauth/download?package=DotNetOpenAuth&release=3.4.4
But will you create an update for the current 10162 version?

Thanks again!

On Jun 16, 6:17 am, Andrew Arnott <andrewarn...@gmail.com> wrote:
> I've published a fix.  You can snag it from tomorrow's daily build if you
> want.
>
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> On Tue, Jun 15, 2010 at 7:09 PM, Andrew Arnott <andrewarn...@gmail.com>wrote:
>
> > Thanks.  I've begun my investigation and even have a candidate fix.  The
> > workaround for now is to turn EnableViewState="true" back on.
>
> > --
> > Andrew Arnott
> > "I [may] not agree with what you have to say, but I'll defend to the death
> > your right to say it." - S. G. Tallentyre
>
> >> > > > > <dotnetopenid%2Bunsu...@googlegroups.com<dotnetopenid%252Buns...@googlegroups.com>
> >> <dotnetopenid%252Buns...@googlegroups.com<dotnetopenid%25252Bun...@googlegroups.com>
>
> >> > > <dotnetopenid%252Buns...@googlegroups.com<dotnetopenid%25252Bun...@googlegroups.com>
> >> <dotnetopenid%25252Bun...@googlegroups.com<dotnetopenid%2525252Bu...@googlegroups.com>

David Christiansen

unread,
Jun 16, 2010, 4:54:50 AM6/16/10
to DotNetOpenAuth
Hi Peter,
This post may duplicate - the email I sent doesn't appear to be coming
through!

Original Response
---
You should be able to get it from here http://teamcity.dotnetopenauth.net:82/.
Either register or login as guest.
I gently nudged our CI server for you and got the nightly build
running which had 6 pending changes (of which I can confirm one is
yours).

Check out - http://teamcity.dotnetopenauth.net:82/viewType.html?tab=buildTypeStatusDiv&buildTypeId=bt49
and look for today's build (depending on when you check it, it may
still be running)



On Jun 16, 9:22 am, Peter <floranfe...@gmail.com> wrote:
> Wow, thats fast! :-D
> Where excactly can I download it?
> I've checked here:https://www.ohloh.net/p/dotnetopenauth/download?package=DotNetOpenAut...
> > >> > > > > > > dotnetopenid...@googlegroups.com<dotnetopenid%2Bunsubscribe@google groups.com>
> > >> <dotnetopenid%2Bunsu...@googlegroups.com<dotnetopenid%252Bunsubscribe@g ooglegroups.com>
>
> > >> > > <dotnetopenid%2Bunsu...@googlegroups.com<dotnetopenid%252Bunsubscribe@g ooglegroups.com>
> > >> <dotnetopenid%252Buns...@googlegroups.com<dotnetopenid%25252Bunsubscri b...@googlegroups.com>
>
> > >> > > > > <dotnetopenid%2Bunsu...@googlegroups.com<dotnetopenid%252Bunsubscribe@g ooglegroups.com>
> > >> <dotnetopenid%252Buns...@googlegroups.com<dotnetopenid%25252Bunsubscri b...@googlegroups.com>
>
> > >> > > <dotnetopenid%252Buns...@googlegroups.com<dotnetopenid%25252Bunsubscri b...@googlegroups.com>
> > >> <dotnetopenid%25252Bun...@googlegroups.com<dotnetopenid%2525252Bunsub scr...@googlegroups.com>
>
> > >> > > > > > > .
> > >> > > > > > > For more options, visit this group at
> > >> > > > > > >http://groups.google.com/group/dotnetopenid?hl=en.
>
> > >> > > > > --
> > >> > > > > You received this message because you are subscribed to the Google
> > >> > > Groups
> > >> > > > > "DotNetOpenAuth" group.
> > >> > > > > To post to this group, send email to
> > >> dotnet...@googlegroups.com.
> > >> > > > > To unsubscribe from this group, send email to
> > >> > > > > dotnetopenid...@googlegroups.com<dotnetopenid%2Bunsubscribe@google groups.com>
> > >> <dotnetopenid%2Bunsu...@googlegroups.com<dotnetopenid%252Bunsubscribe@g ooglegroups.com>
>
> > >> > > <dotnetopenid%2Bunsu...@googlegroups.com<dotnetopenid%252Bunsubscribe@g ooglegroups.com>
> > >> <dotnetopenid%252Buns...@googlegroups.com<dotnetopenid%25252Bunsubscri b...@googlegroups.com>
>
> > >> > > > > .
> > >> > > > > For more options, visit this group at
> > >> > > > >http://groups.google.com/group/dotnetopenid?hl=en.
>
> > >> > > --
> > >> > > You received this message because you are subscribed to the Google
> > >> Groups
> > >> > > "DotNetOpenAuth" group.
> > >> > > To post to this group, send email
>
> ...
>
> read more »

David Christiansen

unread,
Jun 16, 2010, 5:02:35 AM6/16/10
to DotNetOpenAuth
Build Artifacts -
http://teamcity.dotnetopenauth.net:82/viewLog.html?buildId=1304&tab=artifacts&buildTypeId=bt49


On Jun 16, 9:54 am, David Christiansen
<david.r.christian...@gmail.com> wrote:
> Hi Peter,
> This post may duplicate - the email I sent doesn't appear to be coming
> through!
>
> Original Response
> ---
> You should be able to get it from herehttp://teamcity.dotnetopenauth.net:82/.
> Either register or login as guest.
> I gently nudged our CI server for you and got the nightly build
> running which had 6 pending changes (of which I can confirm one is
> yours).
>
> Check out -http://teamcity.dotnetopenauth.net:82/viewType.html?tab=buildTypeStat...
> ...
>
> read more »

Andrew Arnott

unread,
Jun 16, 2010, 8:55:43 AM6/16/10
to dotnetopenid
Oooh... one of my other changes yesterday caused a regression -- at least a unit test started failing.  I'm investigating now.  In the meantime, Peter, I suggest you hold off using it.

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.

David Christiansen

unread,
Jun 16, 2010, 4:40:42 AM6/16/10
to dotnet...@googlegroups.com
Hi Peter,
You should be able to get it from here http://teamcity.dotnetopenauth.net:82/. Either register or login as guest. 
I gently nudged our CI server for you and got the nightly build running which had 6 pending changes (of which I can confirm one is yours).

Check out - http://teamcity.dotnetopenauth.net:82/viewType.html?tab=buildTypeStatusDiv&buildTypeId=bt49 and look for today's build (depending on when you check it, it may still be running)

-- 
Regards,

=David.Christiansen

To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.




--
Regards,

=David.Christiansen
david at davidchristiansen.com :: http://davidchristiansen.com :: https://sharpsts.com :: http://www.dotnetopenauth.net

Andrew Arnott

unread,
Jun 16, 2010, 12:39:01 PM6/16/10
to dotnetopenid
I've run another nightly build with the fix.  The regression is fixed.  This build should be good.


--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


Peter

unread,
Jun 17, 2010, 8:59:39 AM6/17/10
to DotNetOpenAuth
I've installed the latest release...but I now get:
Precondition failed.: this.Identifier != null No identifier has been
set.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Precondition
failed.: this.Identifier != null No identifier has been set.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Precondition failed.: this.Identifier !=
null No identifier has been set.]
System.Diagnostics.Contracts.__ContractsRuntime.Requires(Boolean
condition, String message, String conditionText) +813

DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingPartyControlBase.CreateRequests()
+219

DotNetOpenAuth.OpenId.RelyingParty.OpenIdLogin.LoginButton_Click(Object
sender, EventArgs e) +57
System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument) +154
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+3691



Which is strange...I have wrapped all login controls in a user
control, see here my code:

<UC:LoginControl ID="LoginControl1" ValidationGroup="popupLogin"
OpenIdValidationGroup="popupOpenId" runat="server" />


LOGINCONTROL.ASPX.VB

Imports System.Resources
Imports System.Globalization
Imports DotNetOpenAuth.ComponentModel
Imports System
Imports System.Web.UI.WebControls
Imports DotNetOpenAuth.OpenId.Extensions.SimpleRegistration
Imports DotNetOpenAuth.OpenId.RelyingParty

Partial Class logincontrol
Inherits System.Web.UI.UserControl

Private _validationgroup As String
Private _openIdvalidationgroup As String

Public Property ValidationGroup() As String
Get
Return _validationgroup
End Get
Set(ByVal value As String)
_validationgroup = value
End Set
End Property

Public Property OpenIdValidationGroup() As String
Get
Return _openIdvalidationgroup
End Get
Set(ByVal value As String)
_openIdvalidationgroup = value
End Set
End Property


Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
CType(Login.FindControl("UserNameRequired"),
RequiredFieldValidator).ValidationGroup = ValidationGroup
CType(Login.FindControl("revUsername"),
RegularExpressionValidator).ValidationGroup = ValidationGroup
CType(Login.FindControl("PasswordRequired"),
RequiredFieldValidator).ValidationGroup = ValidationGroup
CType(Login.FindControl("LoginMember"),
ImageButton).ValidationGroup = ValidationGroup

CType(Login.FindControl("OpenIdLogin1"),
OpenIdLogin).ValidationGroup = OpenIdValidationGroup

Dim tb As TextBox = Login.FindControl("Username")
If tb IsNot Nothing Then
tb.Focus()
End If
If Not Page.IsPostBack Then
Dim hl As HyperLink =
CType(Login.FindControl("PasswordRecoveryLink"), HyperLink)
If hl IsNot Nothing Then
hl.NavigateUrl = "~/forgotpassword"
End If

End If
End Sub



Sub OnLoggedIn(ByVal sender As Object, ByVal e As EventArgs)

End Sub


Protected Sub Login_LoggingIn(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.LoginCancelEventArgs) Handles
Login.LoggingIn

End Sub

Protected Sub OpenIdLogin1_LoggedIn(ByVal sender As Object, ByVal
e As DotNetOpenAuth.OpenId.RelyingParty.OpenIdEventArgs)
Dim sreg = e.Response.GetExtension(Of ClaimsResponse)()
If sreg IsNot Nothing Then
'SOME CODE

End If
End Sub


End Class




LOGINCONTROL.ASPX

<%@ Control Language="VB" AutoEventWireup="false"
CodeFile="logincontrol.ascx.vb" Inherits="logincontrol" %>
<%@ Register Assembly="DotNetOpenAuth"
Namespace="DotNetOpenAuth.OpenId.RelyingParty" TagPrefix="openid" %>
<asp:Label ID="lblstatus" runat="server" Text=""/>

<br />
<table width="460px;">
<tr class="row0">
<td>
<h3>> Site account</h3>



<asp:Login PasswordRecoveryText="<%
$Resources:Glossary,loginlostpassword %>" CreateUserText="<%
$Resources:Glossary,loginrememberme %>" OnLoggedIn="OnLoggedIn"
Width="460" ID="Login" runat="server"
MembershipProvider="AccessMembershipProvider"
FailureAction="Refresh" VisibleWhenLoggedIn="false"
PasswordLabelText="<%$ Resources:Glossary,password%>" FailureText="<%$
Resources:Glossary,loginfailure%>" FailureTextStyle-ForeColor="Red"
TextLayout="TextOnTop" Orientation="Horizontal">
<CheckBoxStyle Wrap="False" VerticalAlign="Bottom" />
<TextBoxStyle Width="120px" />
<LayoutTemplate>
<div>



<asp:UpdateProgress ID="UpdateProgress2"
AssociatedUpdatePanelID="UpdatePanel1" runat="server">
<ProgressTemplate>
<img alt="loading" src="/images/loadingsmall.gif" />
</ProgressTemplate>
</asp:UpdateProgress>



<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Panel runat="server" ID="pnlLogin"
DefaultButton="LoginMember">
<table>
<tr>
<td>
<b><asp:Label ID="UserNameLabel" Text="Email"
runat="server" AssociatedControlID="UserName"/></b>
</td>
<td>
<asp:TextBox ID="UserName" Text=""
ValidationGroup="login" runat="server" Width="120px"/>
<asp:RequiredFieldValidator ValidationGroup="login"
SetFocusOnError="True" ID="UserNameRequired" runat="server"
ControlToValidate="UserName" ErrorMessage="*"/>
<asp:RegularExpressionValidator
ControlToValidate="UserName" ValidationGroup="login" ErrorMessage="<%
$Resources:Glossary,InvalidValue%>" ValidationExpression="<%
$resources:glossary,regexValidEmail %>" ID="revUsername"
runat="server" Display="Dynamic"/>
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td>
<b><asp:Label ID="PasswordLabel" Text="<%$
Resources:Glossary,Password%>" runat="server"
AssociatedControlID="Password"/></b>
</td>
<td>
<asp:TextBox ID="Password" ValidationGroup="login"
runat="server" TextMode="Password" Width="120px"/>
<asp:RequiredFieldValidator SetFocusOnError="True"
ValidationGroup="login" ID="PasswordRequired" runat="server"
ControlToValidate="Password" ErrorMessage="*" />
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td colspan="3">
<asp:CheckBox TextAlign="Right" Font-Bold="false"
ID="RememberMe" runat="server" Text="<%$
Resources:Glossary,loginrememberme%>" />&nbsp;&nbsp;&nbsp;
<asp:HyperLink Font-Bold="false" CssClass="link"
ID="PasswordRecoveryLink" Text="<%$
Resources:Glossary,loginlostpassword%>" runat="server"/>
<br />
<asp:Label ID="FailureText" runat="server"
ForeColor="Red" Font-Bold="true" EnableViewState="False"/>
</td>
</tr>
<tr>
<td colspan="3">


<center>
<asp:ImageButton CausesValidation="true"
ValidationGroup="login" ID="LoginMember" ImageUrl="~/images/login.png"
CommandName="Login" runat="server"/>
</center>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>





</div>

</td>
</tr>
<tr class="row1">
<td>
<br />
<h3>OPENID LOGIN</h3>
<div class="floatleft">
<openid:openidlogin ID="OpenIdLogin1" Columns="30" RegisterText=""
LabelText=""
ValidationGroup="openid" ButtonText="Login"
ButtonToolTip="Login" RequiredText="Provide your openid address"
ExamplePrefix="" ExampleUrl=""
FailedMessageText="not a valid openID username"
OnLoggedIn="OpenIdLogin1_LoggedIn" RequestEmail="Require"
RequestFullName="Require" runat="server"></openid:openidlogin>
</div>
<br />
</td>
</tr>


</LayoutTemplate>
</asp:Login>
<br />


</table>







On Jun 16, 6:39 pm, Andrew Arnott <andrewarn...@gmail.com> wrote:
> I've run another nightly build with the fix. The regression is fixed. This
> build should be good.
>
> http://teamcity.dotnetopenauth.net:82/repository/download/bt49/1306:i...
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> On Wed, Jun 16, 2010 at 5:55 AM, Andrew Arnott <andrewarn...@gmail.com>wrote:
>
> > Oooh... one of my other changes yesterday caused a regression -- at least a
> > unit test started failing. I'm investigating now. In the meantime, Peter,
> > I suggest you hold off using it.
>
> > --
> > Andrew Arnott
> > "I [may] not agree with what you have to say, but I'll defend to the death
> > your right to say it." - S. G. Tallentyre
>
> > On Wed, Jun 16, 2010 at 2:02 AM, David Christiansen <
> > david.r.christian...@gmail.com> wrote:
>
> >> Build Artifacts -
>
> >>http://teamcity.dotnetopenauth.net:82/viewLog.html?buildId=1304&tab=a...
> ...
>
> read more »

On Jun 16, 6:39 pm, Andrew Arnott <andrewarn...@gmail.com> wrote:
> I've run another nightly build with the fix.  The regression is fixed.  This
> build should be good.
>
> http://teamcity.dotnetopenauth.net:82/repository/download/bt49/1306:i...
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> On Wed, Jun 16, 2010 at 5:55 AM, Andrew Arnott <andrewarn...@gmail.com>wrote:
>
> > Oooh... one of my other changes yesterday caused a regression -- at least a
> > unit test started failing.  I'm investigating now.  In the meantime, Peter,
> > I suggest you hold off using it.
>
> > --
> > Andrew Arnott
> > "I [may] not agree with what you have to say, but I'll defend to the death
> > your right to say it." - S. G. Tallentyre
>
> > On Wed, Jun 16, 2010 at 2:02 AM, David Christiansen <
> > david.r.christian...@gmail.com> wrote:
>
> >> Build Artifacts -
>
> >>http://teamcity.dotnetopenauth.net:82/viewLog.html?buildId=1304&tab=a...
> ...
>
> read more »

Andrew Arnott

unread,
Jun 17, 2010, 10:46:13 AM6/17/10
to dotnetopenid
I am unable to repro your error.

When do you get this?  Is the text field for the OpenID actually blank when you click Login?

Also, I see in your code some validationgroup stuff.  I wonder if you've managed to circumvent OpenIdLogin's own validation handling (which is designed to support validationgroups, but perhaps you've found something here) such that clicking Login with a blank text field triggers an error.

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


> ...
>
> read more »

Peter

unread,
Jun 17, 2010, 11:14:39 AM6/17/10
to DotNetOpenAuth
No, the openid textbox is NOT blank.
I've also checked with the Net panel in Firebug enabled, but no data
is ever sent to the web. Which suggests to me that some clientside
validation is not working...
is there anything I can check that can help you find out what it might
be?

Thanks!



On Jun 17, 4:46 pm, Andrew Arnott <andrewarn...@gmail.com> wrote:
> I am unable to repro your error.
>
> When do you get this?  Is the text field for the OpenID actually blank when
> you click Login?
>
> Also, I see in your code some validationgroup stuff.  I wonder if you've
> managed to circumvent OpenIdLogin's own validation handling (which is
> designed to support validationgroups, but perhaps you've found something
> here) such that clicking Login with a blank text field triggers an error.
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> ...
>
> read more »

Andrew Arnott

unread,
Jun 17, 2010, 11:55:06 AM6/17/10
to dotnet...@googlegroups.com
I don't have any idea what might be suppressing the value from being sent to the client.  This is a good indication that something in the client is wrong.  But even with a blank text box, the user should get the nice "you forgot to tell us your openid" message rather than an ASP.NET error page.  And I'm seeing the nice user message on my box with a blank text box.  So it seems something else is going on that is unique to your site as well.

BTW, not to dissuade you from following this through to the end, but if you'd rather just get it done, you might find that switching to the OpenIdTextBox or OpenIdAjaxTextBox controls gives you (a bit more work but also) a bit more control over what's going on so you could potentially avoid this problem.

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


> ...
>
> read more »

Peter

unread,
Jun 17, 2010, 1:39:40 PM6/17/10
to DotNetOpenAuth
Would this be what you refer to:
http://www.dotnetopenauth.net/developers/code-snippets/programmatic-openid-relying-party/
as something I could use for my scenario?
And what are the advantages of using the AJAX variant of your
controls?

Thanks!


On Jun 17, 5:55 pm, Andrew Arnott <andrewarn...@gmail.com> wrote:
> I don't have any idea what might be suppressing the value from being sent to
> the client.  This is a good indication that something in the client is
> wrong.  But even with a blank text box, the user should get the nice "you
> forgot to tell us your openid" message rather than an ASP.NET error page.
>  And I'm seeing the nice user message on my box with a blank text box.  So
> it seems something else is going on that is unique to your site as well.
>
> BTW, not to dissuade you from following this through to the end, but if
> you'd rather just get it done, you might find that switching to the
> OpenIdTextBox or OpenIdAjaxTextBox controls gives you (a bit more work but
> also) a bit more control over what's going on so you could potentially avoid
> this problem.
>
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> ...
>
> read more »

Andrew Arnott

unread,
Jun 17, 2010, 1:45:07 PM6/17/10
to dotnet...@googlegroups.com
Programmatic is another possibility, but that's even lower level than the OpenIdTextBox and OpenIdAjaxTextBox.

The Ajax variety utilizes popups for logging in and does so with less page refreshing than the OpenIdTextBox does.  It also performs discovery while still at the browser so the user can choose between multiple OP endpoints if the OpenID Identifier supports it.

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


> ...
>
> read more »

Peter

unread,
Jun 17, 2010, 2:19:34 PM6/17/10
to DotNetOpenAuth
Now trying this and getting the same error: Precondition failed.:
this.Identifier != null No identifier has been set.

As you can see below, the page is stripped from

<%@ Page Title="" Language="VB" MasterPageFile="~/main.master"
AutoEventWireup="true" CodeFile="test.aspx.vb" Inherits="test" %>
<%@ Register Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ MasterType VirtualPath="~/main.master" %>
<%@ Register Assembly="DotNetOpenAuth"
Namespace="DotNetOpenAuth.OpenId.RelyingParty" TagPrefix="openid" %>


<asp:Content ID="Content1" ContentPlaceHolderID="CPHHelp"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPHCenter"
Runat="Server">


<openid:OpenIdTextBox ID="OpenIdTextBox1" runat="server" />

<asp:Button ID="Button1" runat="server" Text="Button" />

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPHLeft"
Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="CPHTop"
Runat="Server">
</asp:Content>



Partial Class test
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
OpenIdTextBox1.LogOn()
End Sub
End Class



BUT, I found something else...as I mentioned I have wrapped your
controls in an ASP.NET usercontrol. I have one of my controls in the
masterpage and one in the test.aspx file.
I think that somehow there's a conflict when 2 of the controls are in
the same page. Perhaps your code always checks what the first instance
of the openid control is and uses that value?

That would make sense since my masterpage control is rendered earlier
in the page. Since I dont fill that one, but the control on test.aspx
it seems that your controls see that the openid control in the
masterpage is empty and thus throw the error mentioned by me
earlier...
Does that make sense?

Oh, and the reason I'm using 2 login controls, is because I want to
have such a control on the login.aspx page, as well as a login popup
on any page throughout the site.


On Jun 17, 7:45 pm, Andrew Arnott <andrewarn...@gmail.com> wrote:
> Programmatic is another possibility, but that's even lower level than the
> OpenIdTextBox and OpenIdAjaxTextBox.
>
> The Ajax variety utilizes popups for logging in and does so with less page
> refreshing than the OpenIdTextBox does.  It also performs discovery while
> still at the browser so the user can choose between multiple OP endpoints if
> the OpenID Identifier supports it.
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> On Thu, Jun 17, 2010 at 10:39 AM, Peter <floranfe...@gmail.com> wrote:
> > Would this be what you refer to:
>
> >http://www.dotnetopenauth.net/developers/code-snippets/programmatic-o...
> ...
>
> read more »

Peter

unread,
Jun 17, 2010, 2:47:11 PM6/17/10
to DotNetOpenAuth
I also found that the control doesnt work inside an updatepanel
anymore (it did work in an earlier version):

<asp:UpdatePanel ID="pnl" runat="server">
<ContentTemplate>

<openid:openidlogin ID="OpenIdLogin1" ValidationGroup="loginopenid"
Columns="30" RegisterText="" ButtonText="Inloggen"
ButtonToolTip="Inloggen" RequiredText="Geef aub eerst uw openID adres
op"
ExamplePrefix="Bijvoorbeeld: " ExampleUrl="name.myid.net"
FailedMessageText="Dit is geen geldige openID gebruikersnaam"
OnLoggedIn="OpenIdLogin1_LoggedIn" RequestEmail="Require"
RequestFullName="Require" runat="server"></openid:openidlogin>
<br />

</ContentTemplate>

</asp:UpdatePanel>
> ...
>
> read more »

Andrew Arnott

unread,
Jun 17, 2010, 3:12:36 PM6/17/10
to dotnet...@googlegroups.com
Thanks, Peter.  Can you please file these two bugs (UpdatePanel and two controls on a page) so we can track them?

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


> ...
>
> read more »

Peter

unread,
Jun 17, 2010, 3:56:18 PM6/17/10
to DotNetOpenAuth
Done and done.
If you need more background info, you know where to find me...

ps. good job on the quick updates! Will definately donate as soon as
its all working! :)

On Jun 17, 9:12 pm, Andrew Arnott <andrewarn...@gmail.com> wrote:
> Thanks, Peter.  Can you please file these two bugs (UpdatePanel and two
> controls on a page) so we can track them?
>
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> ...
>
> read more »

Andrew Arnott

unread,
Jun 18, 2010, 11:12:31 AM6/18/10
to dotnetopenid
Awesome.  We can always do with donations! :)

I've published a few fixes to the OpenIdLogin control that should assist with having multiple controls on the same page.  These fixes will be available on the nightly build in a few minutes.  Since this is between releases all the disclaimers about untested code apply, although I'm not aware of any regressions since 3.4.4.

As you try out the latest daily build, make sure that the ID and Name properties on your OpenIdLogin controls are unique (different values for the master page version vs. the one on your login page).  Let me know how it goes.

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


> ...
>
> read more »

Peter

unread,
Jun 18, 2010, 5:23:37 PM6/18/10
to DotNetOpenAuth
Hi Andrew,

Basically I just want the DotNetOpenAuth.dll and the
DotNetOpenAuth.xml

How can I get those for the latest nightly build? I downloaded
the .vsi, but its unclear to me, since I dont see that I can build
anything that generates the above dll's...
Or is there perhaps somewhere I can download those dll's?

And do you think that you'll be able to fix the issue that the
controls run inside an updatepanel?

Thanks!

On Jun 18, 5:12 pm, Andrew Arnott <andrewarn...@gmail.com> wrote:
> Awesome.  We can always do with donations! :)
>
> I've published a few fixes to the OpenIdLogin control that should assist
> with having multiple controls on the same page.  These fixes will be
> available on the nightly build in a few minutes.  Since this is between
> releases all the disclaimers about untested code apply, although I'm not
> aware of any regressions since 3.4.4.
>
> As you try out the latest daily build, make sure that the ID and Name
> properties on your OpenIdLogin controls are unique (different values for the
> master page version vs. the one on your login page).  Let me know how it
> goes.
>
> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the death
> your right to say it." - S. G. Tallentyre
>
> ...
>
> read more »

Andrew Arnott

unread,
Jun 21, 2010, 10:48:54 AM6/21/10
to dotnetopenid
Inline...

On Fri, Jun 18, 2010 at 2:23 PM, Peter <flora...@gmail.com> wrote:
Hi Andrew,

Basically I just want the DotNetOpenAuth.dll and the
DotNetOpenAuth.xml

How can I get those for the latest nightly build? I downloaded
the .vsi, but its unclear to me, since I dont see that I can build
anything that generates the above dll's...
Or is there perhaps somewhere I can download those dll's?
One of the artifacts of the nightly build is a .zip file, which has a Bin directory, that contains the two files you want.
 

And do you think that you'll be able to fix the issue that the
controls run inside an updatepanel?

I haven't looked at it yet.  So I can't say for sure.  But I expect I will.
Reply all
Reply to author
Forward
0 new messages