Posted by: MJCS - Wednesday, 9 November 2011 03:38:23 |
---|
I have had this exception now for 3 versions of YAF and have now decided to post about it. My main forum is http://www.firstalphaquadrant.net/ and I have a another site that uses the same user database at http://forums.legionkdf.com/. When I log into the 2nd site and go to Host Settings and try to change the forum e-mail address I get a nice exception. [code]System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Null object cannot be converted to a value type. at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at YAF.Classes.Pattern.RegistryDictionaryOverride.SetValue[T](String name, T value, Boolean setOverrideOnly) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index) at YAF.Pages.Admin.hostsettings.Save_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)[/code] Let me know if more information is needed |