The HTML Editor control fails on post back in medium trust with a security exception.
In the LoadPostData method this line of code is failing:
post = postCollection[ActiveModeId];
if (!string.IsNullOrEmpty(post))
{
ActiveMode = (ActiveModeType) Int64.Parse(post, CultureInfo.InvariantCulture);
}
In the setter for ActiveMode the call to RefreshDesigner and ultimately _designer.UpdateDesignTimeHtml() is what is causing the failure.
Comments: Hi All, I created a quick work around by adding a Try Catch to the following line of code: ActiveMode = (ActiveModeType) Int64.Parse(post, CultureInfo.InvariantCulture); The line of code can be found in the EditPanel.cs file in the LoadPostData method. This quick fix works for me but has not been tested on other projects. Use at your own risk. Find ddl's attached with fix included. Thanks. Regards, Dale.
In the LoadPostData method this line of code is failing:
post = postCollection[ActiveModeId];
if (!string.IsNullOrEmpty(post))
{
ActiveMode = (ActiveModeType) Int64.Parse(post, CultureInfo.InvariantCulture);
}
In the setter for ActiveMode the call to RefreshDesigner and ultimately _designer.UpdateDesignTimeHtml() is what is causing the failure.
Comments: Hi All, I created a quick work around by adding a Try Catch to the following line of code: ActiveMode = (ActiveModeType) Int64.Parse(post, CultureInfo.InvariantCulture); The line of code can be found in the EditPanel.cs file in the LoadPostData method. This quick fix works for me but has not been tested on other projects. Use at your own risk. Find ddl's attached with fix included. Thanks. Regards, Dale.