YAFLogo

Posted by: PaulCactus - Monday, 30 July 2012 10:48:24
Hi, first timer so go gentle on me. I have installed YAF locally and it all seems to run ok. I went through the setup routine, and I see the forum running fine. I installed it with the web platform installer, but prefer to have it on my local IIS, so I copied the files into a new web, set it up in IIS, and also changed the connection string to link it to the db with a trusted connection on my local system. Everything seems to be running fine. I tried to login with the email and password I created during install, but it gives me the 'The user name or password entered is incorrect. Please try again.' error. I did a password lookup, but it says the email cannot be found. In the db, I checked the users table, and my email is in there, along with a 'guest' account. I see the password is 'na', which I assume is because a hash is used instead now (the ProviderUserKey looks like a hash so I guess that's the one). I checked the other fields, and it doesn't look like there is anything obvious that would make this user not visible to the system such as a field where this record is turned off. I noted my passwords used for various things during install carefully, but have tried each as the password for my login just in case I got them transposed, but no joy. Even if the pw was wrong, it doesn't explain why the password recovery cannot see the account that is in the users table - the email address definitely is the same, no leading or trailing spaces either, and case matches too (though I guess that probably isn't a factor). So I guess 2 questions: (1) Why does the system not see this account? (2) How can I reset it to see this account, or get some kind of admin account setup that I can use for the site? Any help appreciated.

Posted by: squirrel - Monday, 30 July 2012 21:57:05
[quote=PaulCactus;55801]Hi, first timer so go gentle on me. I have installed YAF locally and it all seems to run ok. I went through the setup routine, and I see the forum running fine. I installed it with the web platform installer, but prefer to have it on my local IIS, so I copied the files into a new web, set it up in IIS, and also changed the connection string to link it to the db with a trusted connection on my local system. Everything seems to be running fine. I tried to login with the email and password I created during install, but it gives me the 'The user name or password entered is incorrect. Please try again.' error. I did a password lookup, but it says the email cannot be found. In the db, I checked the users table, and my email is in there, along with a 'guest' account. I see the password is 'na', which I assume is because a hash is used instead now (the ProviderUserKey looks like a hash so I guess that's the one). I checked the other fields, and it doesn't look like there is anything obvious that would make this user not visible to the system such as a field where this record is turned off. I noted my passwords used for various things during install carefully, but have tried each as the password for my login just in case I got them transposed, but no joy. Even if the pw was wrong, it doesn't explain why the password recovery cannot see the account that is in the users table - the email address definitely is the same, no leading or trailing spaces either, and case matches too (though I guess that probably isn't a factor). So I guess 2 questions: (1) Why does the system not see this account? (2) How can I reset it to see this account, or get some kind of admin account setup that I can use for the site? Any help appreciated.[/quote] The YAF version available from the "Web Platform Installer" is several versions old. Developers are currently working on v1.9.6.2 release. v1.9.6.1 is available for download as a ZIP for manual installation from http://yafnet.codeplex.com -- I would recommend if this is a development system (not production) that you start fresh with a newer version and go from there. If that is not the route available, the only other option would be to register an account on the forums, then open the database, copy the hash from the new account over to the admin account. Then the admin would be able to login --

Posted by: PaulCactus - Monday, 30 July 2012 22:41:56
Thanks for the response. I grabbed the latest one from Codeplex and followed the documentation steps there. I got the installer to fire up, but it choked with an error on the step after it asks for test email details. When I check the db, it seems the table structure is there, but there is no data in it. Not sure if it is supposed to add some data in, but the message suggests so. Server Error in '/YAF_tomeCMS2' Application. No data for board ID: 1 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: YAF.Core.EmptyBoardSettingException: No data for board ID: 1 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: [EmptyBoardSettingException: No data for board ID: 1] YAF.Core.CurrentBoardSettings.b__0() +319 YAF.Core.HttpApplicationStateBaseExtensions.GetOrSet(HttpApplicationStateBase httpApplicationState, String key, Func`1 getValue) +364 YAF.Core.CurrentBoardSettings.get_Instance() +105 Autofac.Builder.<>c__DisplayClass1`1.b__0(IComponentContext c, IEnumerable`1 p) +15 Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +30 Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +89 Autofac.Core.Resolving.InstanceLookup.Execute() +181 Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +201 Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +57 [DependencyResolutionException: An exception was thrown while executing a resolve operation. See the InnerException for details.] Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +288 Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +189 Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) +168 YAF.Types.Interfaces.IServiceLocatorExtensions.Get(IServiceLocator serviceLocator) +78 YAF.Core.UnloadSessionForumModule.UnloadSessionModule_Unload(Object sender, EventArgs e) +87 YAF.Forum.OnUnload(EventArgs e) +90 System.Web.UI.Control.UnloadRecursive(Boolean dispose) +160 System.Web.UI.Control.UnloadRecursive(Boolean dispose) +323 System.Web.UI.Control.UnloadRecursive(Boolean dispose) +323 System.Web.UI.Page.UnloadRecursive(Boolean dispose) +24 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11438910 System.Web.UI.Page.ProcessRequest() +269 System.Web.UI.Page.ProcessRequest(HttpContext context) +167 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270 thanks.

Posted by: squirrel - Tuesday, 31 July 2012 00:43:56
It looks like the installer did not complete. If the tables are empty, it ran as an upgrade. Try creating a blank database with a new user and password and re-running the installer against the new database. After all the steps of the installation are complete, it is supposed to take you to the forums.

Posted by: tha_watcha - Tuesday, 31 July 2012 01:05:01
[quote=PaulCactus;55808]Thanks for the response. I grabbed the latest one from Codeplex and followed the documentation steps there. I got the installer to fire up, but it choked with an error on the step after it asks for test email details. When I check the db, it seems the table structure is there, but there is no data in it. Not sure if it is supposed to add some data in, but the message suggests so. [/quote] Please on Install don't check "Upgrade BBCode Extensions..." and the install will finish.

Posted by: PaulCactus - Tuesday, 31 July 2012 10:53:21
Thanks - that did the trick - i had the 'Upgrade BBCode extensions box checked'. I am up and running locally now and can login as admin too.

Posted by: Mino - Sunday, 5 August 2012 00:57:41
Hello, I am also having issues with installation. All seemed to go according to plan until the very last step when it tries to open the forum for the first time. I am getting the following YSOD: Server Error in '/forum' Application. Method not found: 'System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.Convert(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, System.Type, System.Type)'. 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.MissingMethodException: Method not found: 'System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.Convert(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, System.Type, System.Type)'. Stack Trace: [MissingMethodException: Method not found: 'System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.Convert(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, System.Type, System.Type)'.] YAF.Core.LoadPageFromDatabase.Handle(InitPageLoadEvent event) +0 YAF.Core.<>c__DisplayClass4`1.b__0(IHandleEvent`1 x) +45 System.Collections.Generic.List`1.ForEach(Action`1 action) +145 YAF.Core.ServiceLocatorEventRaiser.Raise(T eventObject) +297 YAF.Core.YafContext.InitUserAndPage() +399 YAF.Core.UserPageBase.get_Page() +81 YAF.Core.UserPageBase.get_PageUserID() +15 YAF.ForumPageBase.Page_Error(Object sender, EventArgs e) +94 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.TemplateControl.OnError(EventArgs e) +8766062 System.Web.UI.Page.HandleError(Exception e) +86 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8422 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253 System.Web.UI.Page.ProcessRequest() +78 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.default_aspx.ProcessRequest(HttpContext context) +4 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 Have I missed something in the installation?

Posted by: haryaziz - Sunday, 12 August 2012 16:06:27
wow[url=http://zonakamu.com],[/url]now i know it[url=http://azzu.info].[/url]thanks for sharing