warpkid
  • Posts: 13
  • Joined: 31/03/2008
Hi guys,

Having a little problem with the host settings. Upon choosing new options and clicking save, there seems to be no post back or any activity. When returning to the page after visiting another location all the defaults have returned.

I am using Yaf 1.9.3.3.

Thanks :)

Keep up the good work.
Sponsor
book_man25
  • Posts: 21
  • Joined: 05/06/2007
I've noticed the same thing. Sometimes it will pop up an alert that says "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500", but it doesn't save the settings.

I'm using the newest version of YAF 1.9.3.3 from the svn. Everything else is looking pretty good.
book_man25
  • Posts: 21
  • Joined: 05/06/2007
Is this working and we're the only ones experiencing this issue?
phoensvx
  • Posts: 19
  • Joined: 02/04/2008
I've had the same problem, also using 1.9.3.3.
Jaben
  • Posts: 2544
  • Joined: 09/10/2004
This happens every time you attempt to save Host Settings?
phoensvx
  • Posts: 19
  • Joined: 02/04/2008
Jaben wrote:

This happens every time you attempt to save Host Settings?



On my site, every time I try to change any of the host settings (on any of the tabs), I get "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"

I have been editing the settings in the database table in the mean time, but that's a real pain because the changes won't take effect until I reset the website.
warpkid
  • Posts: 13
  • Joined: 31/03/2008
Checking the log Im getting the message:
System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (forum$ctl01$PMTabs$TemplatesTab$UserBox="

Seems to be as much info I can get from the event viewer....

Cheers,
phoensvx
  • Posts: 19
  • Joined: 02/04/2008
warpkid wrote:

Checking the log Im getting the message:
System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (forum$ctl01$PMTabs$TemplatesTab$UserBox="

Seems to be as much info I can get from the event viewer....

Cheers,



That's pretty much what I'm getting:

Exception information:
Exception type: HttpRequestValidationException
Exception message: A potentially dangerous Request.Form value was detected from the client (forum$ctl01$PMTabs$TemplatesTab$UserBox="<yaf:avatar /><yaf:b...").
Jaben
  • Posts: 2544
  • Joined: 09/10/2004
Open up the default.aspx page and edit the "Page" statement at the top as such:

<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>


phoensvx
  • Posts: 19
  • Joined: 02/04/2008
Thanks, the ValidateRequest="false" fixed it. Side effect of not using the original default.aspx I guess.
warpkid
  • Posts: 13
  • Joined: 31/03/2008
Thanks - that fixed it!
JeremyCaney
  • Posts: 5
  • Joined: 07/02/2010
If you're using ASP.NET 4.0 you may also get this error when posting back to "default.aspx?g=admin_hostsettings". This is due to the new request validation mode. The simplest approach to fixing this is to add the following to your web.config file:

<configuration>
<system.web>
<httpRuntime requestValidationMode="2.0" />
</system.web>
</configuration>

Of course, this simply reverts the request validation mode to that used in 2.0; you may prefer to instead modify ASP.NET 4.0's requestion validation configuration in order to explicitly optimize it for your application's needs.

Jeremy
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