an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Error when changing Summary Grid Height
Last Post 7/16/2012 10:24:57 AM By Bahram. 2 replies.
7/11/2012 1:01:00 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Error when changing Summary Grid Height
Hi Luke,
 
 
Since I the change of ourprice labels on the CSS does not have any effect on the display, I decided to change the Grid height of product summary and encountered this error:
 
 
 
A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$ctl00$txtProductSummaryTemplate="<div class="ProductB...").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.
 
Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$ctl00$txtProductSummaryTemplate="<div class="ProductB...").
 
Source Error:
 
 
 
 
 
[No relevant source lines]
 
Source File: d:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\estore\56c574a9\1d2029d8\App_Web_zxl2h5ll.4.cs    Line: 0
 
Stack Trace:
 
 
 
 
 
[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$ctl00$txtProductSummaryTemplate="<div class="ProductB...").]
   System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +8862660
   System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection) +122
   System.Web.HttpRequest.get_Form() +150
   System.Web.HttpRequest.get_HasForm() +9038959
   System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +97
   System.Web.UI.Page.DeterminePostBackMode() +69
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.editblockcontrol_aspx.ProcessRequest(HttpContext context) in d:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\estore\56c574a9\1d2029d8\App_Web_zxl2h5ll.4.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
 
 
 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 =
 
7/13/2012 3:24:07 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Error when changing Summary Grid Height
The error message is very clear. Add the following settings to your web.config.
 
<pages validateRequest="false" />
<httpRuntime requestValidationMode="2.0" />
 
DotShoppingCart Staff
7/16/2012 10:24:57 AM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: Error when changing Summary Grid Height
Hi Luke,
 
Thanks, but This fix will prevent the error to be raised , but the Grid summary hieght or other HTML code changes does not take effect.
Since this error occures in our test site and not on the main, Any change to the Summary Grid won't work.
 
Thanks,