#1
Login to Forum as admin and Host Adminstration, Host Settings and just clicking on Save Settings button results in error. Trying to set Require User Login, or Server Time Zone Correction

Server Error in '/forum' Application

A potentially dangerous Request.Form value was detected from the client (forum$ctl02$HostSettingsTabs$View7$UserBox="<yaf:avatar /><div c..."😉.

[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (forum$ctl02$HostSettingsTabs$View7$UserBox="<yaf:avatar /><div c..."😉.]
System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +11483972
System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection) +82
System.Web.HttpRequest.get_Form() +212
System.Web.HttpRequest.get_HasForm() +11486708
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +141
System.Web.UI.Page.DeterminePostBackMode() +100
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11439106
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11438622
System.Web.UI.Page.ProcessRequest() +269
System.Web.UI.Page.ProcessRequest(HttpContext context) +167
ASP.default_aspx.ProcessRequest(HttpContext context) in c😕Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\forum\3a20a4a6\6b382209\App_Web_xooiczrc.3.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270
Topic Starter
  • joe4tech
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    51.8%
  • Joined: 18/05/2012
  • Posts: 3
  • Thanks: 2 times
#2
Originally Posted by: joe4tech

Login to Forum as admin and Host Adminstration, Host Settings and just clicking on Save Settings button results in error. Trying to set Require User Login, or Server Time Zone Correction

Server Error in '/forum' Application

A potentially dangerous Request.Form value was detected from the client (forum$ctl02$HostSettingsTabs$View7$UserBox="<yaf:avatar /><div c..."😉.

[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (forum$ctl02$HostSettingsTabs$View7$UserBox="<yaf:avatar /><div c..."😉.]
System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +11483972
System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection) +82
System.Web.HttpRequest.get_Form() +212
System.Web.HttpRequest.get_HasForm() +11486708
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +141
System.Web.UI.Page.DeterminePostBackMode() +100
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11439106
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11438622
System.Web.UI.Page.ProcessRequest() +269
System.Web.UI.Page.ProcessRequest(HttpContext context) +167
ASP.default_aspx.ProcessRequest(HttpContext context) in c😕Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\forum\3a20a4a6\6b382209\App_Web_xooiczrc.3.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270



Simply disable Page validation in the Web.config or Default.aspx.
UserPostedImage
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,003
  •  Germany
  • Thanks: 74 times
  • Was thanked: 1207 time(s) in 1032 post(s)
#3
default.aspx
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
Topic Starter
  • joe4tech
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    51.8%
  • Joined: 18/05/2012
  • Posts: 3
  • Thanks: 2 times
#4
forum web.config
<pages validateRequest="false" smartNavigation="false" >

And issue is still present.
Topic Starter
  • joe4tech
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    51.8%
  • Joined: 18/05/2012
  • Posts: 3
  • Thanks: 2 times
#5
<httpRuntime requestValidationMode="2.0"/>
  • bbobb
  • Rank: YAF Developer
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for a YAF Database Key Player: Holds the key to YAF database. Bow down!Medal of Honor for the Support King: Given for answering tons of support questions and generally helping the community.Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.
  • Joined: 21/10/2008
  • Posts: 1,558
  •  Man  Russian Federation
  • Location: Moscow
  • Thanks: 51 times
  • Was thanked: 287 time(s) in 253 post(s)
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved