joe4tech
  •  joe4techTopic Starter
  • YAF Forumling
  • 51.8% (Neutral)
2012-05-18T18:53:20Z
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
Sponsor
tha_watcha
2012-05-18T19:04:35Z
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
joe4tech
  •  joe4techTopic Starter
  • YAF Forumling
  • 51.8% (Neutral)
2012-05-18T19:29:20Z
default.aspx
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
joe4tech
  •  joe4techTopic Starter
  • YAF Forumling
  • 51.8% (Neutral)
2012-05-18T19:35:50Z
forum web.config
<pages validateRequest="false" smartNavigation="false" >

And issue is still present.
bbobb
  •  bbobb
  • YAF Developer
  • 100% (Exalted)
2012-05-18T20:32:34Z
<httpRuntime requestValidationMode="2.0"/>

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