YAFLogo

robyapchanyk
7 years ago
Hi all,

I have a clean install, haven't done much but tinker around with the site. However, I cannot successfully update my profile, I receive an error: "There has been a serious error loading the forum. No further information is available."

The event log shows the message below, and after browsing the source, it would appear to be related to the line "this.TimeZones.SelectedValue.ToType()," in EditUsersProfile.ascx.cs, based on it seems to be the only thing using "ToType". I should note that the profile information is updated when I come back in, but the time zone is not. I've tried in Chrome and Firefox, but get the same result. I've also tried selecting a few different time zones, but they all result in the same error.

I am using the downloaded install package version, not the source and publish, so I haven't altered any code.

Exception at URL: http://[urlhere]/Default.aspx?g=cp_editprofile

System.FormatException: Input string was not in a correct format.

at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)

at System.String.System.IConvertible.ToInt32(IFormatProvider provider)

at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)

at YAF.Types.Extensions.ObjectExtensions.ToType[T](Object instance)

at YAF.Controls.EditUsersProfile.UpdateProfile_Click(Object sender, EventArgs e)

at System.Web.UI.WebControls.Button.OnClick(EventArgs e)

at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
7 years ago
Which version did you use? This issue is already been fixed with the latest version 2.2.4.5
robyapchanyk
7 years ago
From the Version Check admin page:

Your YAF.NET Version: 2.2.4.5 (Date: 11/18/2017).

The Latest Stable Version is: 2.2.4.5 (Date: 11/18/2017).

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
7 years ago
Okay looks like i fixed that issue after the release of version 2.2.4.5. Version 2.2.4.6 is online!
robyapchanyk
7 years ago
Thanks!

So I'm very new to YAF and this is the first time I've had to upgrade.

I followed the instructions here:

https://github.com/YAFNET/YAFNET/wiki/Upgrade- (from-Version-1.9.5.5-or-above)

But it resulted in the error below. Find in Files only returned CHANGES.MD and YAF.DotNetNuke.Module.dll containing the string "2.2.4.5", if that's of any help...assuming it's not a matter of me screwing something up! I downloaded the Upgrade Package, deleted the appropriate folders from the forum root, and extracted all from ZIP into forum root.

[FileLoadException: Could not load file or assembly 'YAF, Version=2.2.4.5, Culture=neutral, PublicKeyToken=8b49dc47f4701f66' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]

System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0

System.Reflection.RuntimeAssembly.GetExportedTypes() +31

YAF.Core.<>c__DisplayClass0_0`1.b__0(Assembly a) +23

System.Linq.WhereSelectArrayIterator`2.MoveNext() +105

YAF.Core.AssemblyExtensions.FindClassesWithAttribute(IEnumerable`1 assemblies) +386

YAF.Core.Modules.DynamicServicesModule.RegisterDynamicServices(Assembly[] assemblies) +185

YAF.Core.Modules.DynamicServicesModule.Load(ContainerBuilder containerBuilder) +30

YAF.Core.BaseModule.Configure(IComponentRegistry componentRegistry) +131

Autofac.ContainerBuilder.Build(IComponentRegistry componentRegistry, Boolean excludeDefaultModules) +142

YAF.Core.IHaveComponentRegistryExtensions.UpdateRegistry(IHaveComponentRegistry haveComponentRegistry, ContainerBuilder containerBuilder) +105

YAF.Core.BaseModule.RegisterBaseModules(Assembly[] assemblies, IEnumerable`1 exclude) +622

YAF.Core.Modules.BootstrapModule.Load(ContainerBuilder builder) +141

YAF.Core.BaseModule.Configure(IComponentRegistry componentRegistry) +131

Autofac.ContainerBuilder.Build(IComponentRegistry componentRegistry, Boolean excludeDefaultModules) +142

Autofac.ContainerBuilder.Build(ContainerBuildOptions options) +105

YAF.Core.GlobalContainer..cctor() +21

[TypeInitializationException: The type initializer for 'YAF.Core.GlobalContainer' threw an exception.]

YAF.Core.YafTaskModule.Init(HttpApplication httpApplication) +172

System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +601

System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172

System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +423

System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +359

[HttpException (0x80004005): The type initializer for 'YAF.Core.GlobalContainer' threw an exception.]

System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +534

System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +119

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +726

robyapchanyk
7 years ago
FYI, I figured the function was just working through each DLL and since I don't use DNN I just deleted the DLL and my forum is working fine, including being able to update profile and save time zone.

Also, not that it actually matters, but because people will probably complain, I noticed that it remembers the UTC offset, but picks the first one. For example, I selected Eastern US and it shows Bogata; both are -0500 so it doesn't actually matter, but just so you know :)

Thanks again!

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

FYI, I figured the function was just working through each DLL and since I don't use DNN I just deleted the DLL and my forum is working fine, including being able to update profile and save time zone.

Originally Posted by: robyapchanyk 

Yes sorry that dll should not be part of the download packages. I removed it and updated the downloads

Also, not that it actually matters, but because people will probably complain, I noticed that it remembers the UTC offset, but picks the first one. For example, I selected Eastern US and it shows Bogata; both are -0500 so it doesn't actually matter, but just so you know :)

Thanks again!

Originally Posted by: robyapchanyk 

Yes i know its all the same timezones. I will fix that with the next update!

Users browsing this topic