YAFLogo

johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
12 years ago
I was going through the event log and found this error was logged more than 41 times.

Source of error: "ASP.forum_pages_posts_ascx"

Exception
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'YAF.Core.Data.TryInvokeMemberProxy' does not contain a definition for 'repository'
   at CallSite.Target(Closure , CallSite , Object )
   at YAF.Core.Model.CheckEmailRepositoryExtensions.<>c__DisplayClassa.<ListTyped>b__8(Object r) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Model\CheckEmailRepositoryExtensions.cs:line 74
   at CallSite.Target(Closure , CallSite , Func`2 , Object )
   at YAF.Core.Data.DynamicDbFunction.GetTyped[T](Func`2 getFunction) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Data\DynamicDbFunction.cs:line 247
   at YAF.Core.Model.CheckEmailRepositoryExtensions.ListTyped(IRepository`1 repository, String email) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Model\CheckEmailRepositoryExtensions.cs:line 74
   at YAF.Pages.recoverpassword.PasswordRecovery1_VerifyingUser(Object sender, LoginCancelEventArgs e)
   at System.Web.UI.WebControls.PasswordRecovery.OnVerifyingUser(LoginCancelEventArgs e)
   at System.Web.UI.WebControls.PasswordRecovery.AttemptSendPasswordUserNameView()
   at System.Web.UI.WebControls.PasswordRecovery.AttemptSendPassword()
   at System.Web.UI.WebControls.PasswordRecovery.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I tested the "forgot password" button and it is working fine. Though it takes about 5 minutes to get that email (compared to other emails which takes few seconds).

Another similar error message:

Source of error: "ASP.forum_default_aspx"

Exception
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'YAF.Core.Data.TryInvokeMemberProxy' does not contain a definition for 'repository'
   at CallSite.Target(Closure , CallSite , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at YAF.Core.Model.CheckEmailRepositoryExtensions.<>c__DisplayClassa.<ListTyped>b__8(Object r) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Model\CheckEmailRepositoryExtensions.cs:line 74
   at CallSite.Target(Closure , CallSite , Func`2 , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at YAF.Core.Data.DynamicDbFunction.GetTyped[T](Func`2 getFunction) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Data\DynamicDbFunction.cs:line 247
   at YAF.Core.Model.CheckEmailRepositoryExtensions.ListTyped(IRepository`1 repository, String email) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Model\CheckEmailRepositoryExtensions.cs:line 74
   at YAF.Pages.recoverpassword.PasswordRecovery1_VerifyingUser(Object sender, LoginCancelEventArgs e)
   at System.Web.UI.WebControls.PasswordRecovery.OnVerifyingUser(LoginCancelEventArgs e)
   at System.Web.UI.WebControls.PasswordRecovery.AttemptSendPasswordUserNameView()
   at System.Web.UI.WebControls.PasswordRecovery.AttemptSendPassword()
   at System.Web.UI.WebControls.PasswordRecovery.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Sponsor
johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
12 years ago
Other Event Log error:

Exception
System.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'UserName', table 'MainDB_DB.dbo.yaf_EventLog'; column does not allow nulls. INSERT fails.
The statement has been terminated.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at YAF.Types.Interfaces.Data.IDbAccessV2Extensions.<ExecuteNonQuery>b__0(IDbCommand c) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Types\Interfaces\Data\IDbAccessV2Extensions.cs:line 119
   at YAF.Core.Data.DbAccessBase.Execute[T](Func`2 execFunc, IDbCommand cmd, IDbTransaction dbTransaction) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Data\DbAccessBase.cs:line 145
   at YAF.Types.Interfaces.Data.IDbAccessV2Extensions.ExecuteNonQuery(IDbAccessV2 dbAccess, IDbCommand cmd, IDbTransaction dbTransaction) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Types\Interfaces\Data\IDbAccessV2Extensions.cs:line 119
   at YAF.Types.Interfaces.Data.IDbAccessV2Extensions.Insert[T](IDbAccessV2 dbAccess, T insert, IDbTransaction transaction) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Types\Interfaces\Data\IDbAccessV2Extensions.cs:line 283
   at YAF.Core.Extensions.IRepositoryExtensions.Insert[T](IRepository`1 repository, T entity, IDbTransaction transaction) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Extensions\IRepositoryExtensions.cs:line 177
   at YAF.Core.YafDbLogger.Log(String message, EventLogTypes eventType, String username, String source, Exception exception) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Logger\YafDbLogger.cs:line 183
   at YAF.Types.Interfaces.LoggerExtensions.Fatal(ILogger logger, Exception ex, String format, Object[] args) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Types\Interfaces\LoggerExtensions.cs:line 121
   at YAF.Core.LoadPageFromDatabase.Handle(InitPageLoadEvent event) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Context\LoadPageFromDatabase.cs:line 195
   at YAF.Core.ServiceLocatorEventRaiser.Raise[T](T eventObject) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Events\ServiceLocatorEventRaiser.cs:line 88
   at YAF.Core.YafContext.InitUserAndPage() in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Context\YafContext.cs:line 437
   at YAF.Core.UserPageBase.get_Page() in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Context\UserPageBase.cs:line 410
   at YAF.Core.YafLocalization.LoadTranslation() in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Localization\YafLocalization.cs:line 572
   at YAF.Core.YafLocalization.GetLocalizedTextInternal(String page, String tag) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Localization\YafLocalization.cs:line 612
   at YAF.Core.YafLocalization.GetText(String page, String tag) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Core\Localization\YafLocalization.cs:line 302
   at YAF.Types.Interfaces.IHaveLocalizationExtensions.GetText(IHaveLocalization haveLocalization, String page, String tag) in d:\Website\yafnet_b2018edf174c\yafsrc\YAF.Types\Interfaces\IHaveLocalizationExtensions.cs:line 50
   at YAF.Modules.PagePopupForumModule.AddErrorPopup()
   at YAF.Modules.PagePopupForumModule.ForumControl_Init(Object sender, EventArgs e)
   at System.Web.UI.Control.OnInit(EventArgs e)
   at System.Web.UI.UserControl.OnInit(EventArgs e)
   at YAF.Forum.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
ClientConnectionId:42fd0ebc-dc7b-4aa5-a93a-2bb3e80cb5cd
shide
  • shide
  • 80.6% (Honored)
  • YAF Lover
10 years ago
hi,

i have the same problem, any idea where that came from ?

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
10 years ago

hi,

i have the same problem, any idea where that came from ?

Originally Posted by: shide 

The issue with the lost password will be fixed in 2.2.0, i fixed that in the last commit from today.

shide
  • shide
  • 80.6% (Honored)
  • YAF Lover
10 years ago
great ! thanks !