Product description HTML editor not working

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
steveo
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Fri Sep 23, 2011 7:54 am

Product description HTML editor not working

Post by steveo » Tue Mar 18, 2014 10:53 am

When editing or adding a new product if we add any kind of formatting in the description field and then try to save we are getting the following error:

We are sorry, but the page you are trying to access has experienced an error.
Please contact us to report this problem.

We recently mover the website to another server but everything else seems to be working fine. I am using Google Chrome, not IE.

Anyone else experience anything like this?

nadeem
Captain (CAPT)
Captain (CAPT)
Posts: 258
Joined: Tue Jul 31, 2012 7:23 pm

Re: Product description HTML editor not working

Post by nadeem » Wed Mar 19, 2014 12:04 am

This worked for me without any issue. Which build are you using? Also set the custom errors mode="Off" in web.config to get the actual error message and post here.

steveo
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Fri Sep 23, 2011 7:54 am

Re: Product description HTML editor not working

Post by steveo » Wed Mar 19, 2014 6:54 am

Here's the error. I guess it is not liking the <li> tags for some reason????

A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$MainContent$MainContent$Description="<ul><li style="text-...").

Description: ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script. The data might represent an attempt to compromise the security of your application, such as a cross-site scripting attack. If this type of input is appropriate in your application, you can include code in a web page to explicitly allow it. For more information, see http://go.microsoft.com/fwlink/?LinkID=212874.

Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$MainContent$MainContent$Description="<ul><li style="text-...").

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$MainContent$MainContent$Description="<ul><li style="text-...").]
System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +9552965
System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection) +184
System.Web.HttpRequest.get_Form() +55
System.Web.HttpRequest.get_HasForm() +9554895
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +95
System.Web.UI.Page.DeterminePostBackMode() +69
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6704
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245
System.Web.UI.Page.ProcessRequest() +72
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +58
ASP.admin_products_editproduct_aspx.ProcessRequest(HttpContext context) +4
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Product description HTML editor not working

Post by Katie » Wed Mar 19, 2014 4:08 pm

Which version and build of Ablecommerce are you using? Have you tried using different browsers (Firefox, or IE)?
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Post Reply