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>
</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>
</td>
</tr>
<tr>
<td colspan="3">
<asp:CheckBox TextAlign="Right" Font-Bold="false"
ID="RememberMe" runat="server" Text="<%$
Resources:Glossary,loginrememberme%>" />
<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 »