YAFLogo

dragonfly
  • dragonfly
  • 63.2% (Friendly)
  • YAF Camper Topic Starter
8 years ago

We are using the Telerik RadEditor provider with YAF in our DotNetNuke installation. One of the options in the RadEditor is Media Manager. In the Media Manager, there is an option to Upload new media. Currently, the max upload file size is set at

200.00 KB. We are trying to determine how to change it, but haven't been able to yet. It seems that YAF doesn't use the configuration files in the DNN providers directory, and we are not sure where we can configure this setting. We were wondering if this goes in the web.config file. We tried to add something like:

But that didn't work.

Any ideas on how we can configure this setting?

Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
8 years ago
I guess you selected radeditor in the yaf host settings as editor? The settings should correctly work if you select Dotnetnuke Text Editor.
dragonfly
  • dragonfly
  • 63.2% (Friendly)
  • YAF Camper Topic Starter
8 years ago
Originally Posted by: tha_watcha 

I guess you selected radeditor in the yaf host settings as editor? The settings should correctly work if you select Dotnetnuke Text Editor.

Yes, we are using the Telerk RadEditor option. The reason is because when we select the DNN Text Editor option, the following error is thrown:

A critical error has occurred.

Exception has been thrown by the target of an invocation.

We are not able to select the DNN Texteditor option.

Any ideas what might be causing this?

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
8 years ago
Originally Posted by: dragonfly 

Originally Posted by: tha_watcha 

I guess you selected radeditor in the yaf host settings as editor? The settings should correctly work if you select Dotnetnuke Text Editor.

Yes, we are using the Telerk RadEditor option. The reason is because when we select the DNN Text Editor option, the following error is thrown:

A critical error has occurred.

Exception has been thrown by the target of an invocation.

We are not able to select the DNN Texteditor option.

Any ideas what might be causing this?

When exactly is the error thrown? and can you post the full error from the event log?

dragonfly
  • dragonfly
  • 63.2% (Friendly)
  • YAF Camper Topic Starter
8 years ago
Originally Posted by: tha_watcha 

Originally Posted by: dragonfly 

Originally Posted by: tha_watcha 

I guess you selected radeditor in the yaf host settings as editor? The settings should correctly work if you select Dotnetnuke Text Editor.

Yes, we are using the Telerk RadEditor option. The reason is because when we select the DNN Text Editor option, the following error is thrown:

A critical error has occurred.

Exception has been thrown by the target of an invocation.

We are not able to select the DNN Texteditor option.

Any ideas what might be causing this?

When exactly is the error thrown? and can you post the full error from the event log?

The error occurs when we save the settings. Here is the DNN EventLog Entry

MessageDotNetNuke.Services.Exceptions.PageLoadException: Exception has been thrown by the target of an invocation. ---> 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)

--- End of inner exception stack trace ---Source