YAFLogo

visendo
  • visendo
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago

Hi, i use 1.9.5.5 rc, and if i try to change something in the host settings, i got following error :

is any way to work it out, i use the 3.5 Net build

"

A potentially dangerous Request.Form value was detected from the client (ctl00$PlaceHolderMain$forum$ctl03$UserBox="

http://go.microsoft.com/fwlink/?LinkId=153133 .

Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$PlaceHolderMain$forum$ctl03$UserBox="

regards

Sponsor
squirrel
13 years ago
Your YAF is running under .NET 4.0 - you must add/modify the following lines to your web.config (inside the section):


<pages validateRequest="false">
<httpRuntime requestValidationMode="2.0">

You should also be running the .NET v4.0 Binaries.


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
visendo
  • visendo
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
Hi,

thx for tips

i switch back to 3.5 build, and set the pool also but now i got a different error, any idea ?

"

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]

YAF.Pages.Admin.hostsettings.Save_Click(Object sender, EventArgs e) in E:\MyProjects\websites\yaf_new_codeplex\YAF\yafsrc\YetAnotherForum.NET\pages\admin\hostsettings.ascx.cs:318

System.Web.UI.WebControls.Button.OnClick(EventArgs e) +114

System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +139

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +28

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2980

"