Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Event validation - can't modify site's Alias settingsEvent validation - can't modify site's Alias settings
Previous
 
Next
New Post
4/16/2014 1:32 PM
 

When trying to change my site's aliases the page script got looped and the settings were not saved.

The Event Viewer mentions  <pages enableEventValidation="true"/> and <%@ Page EnableEventValidation="true" %>.

My google search fetched in this dnn Wiki page about the issue: http://www.dnnsoftware.com/wiki/loc/p...

After changing the web.config file's entry of enableEventValidation to "false" I was able to add/change the site's aliases.

So the question is should I toggle the enableEventValidation value every time I want to change the site's aliases or is there another workaround to this or is this a bug?

EDIT:
My configuration:
DNN 7.2.2
IIS7.5
.Net Framework 4.0.30319


English-Polish translations, one-to-one English/Polish tutoring, Windows server management, website development - HTML/JS/CSS/Razor
 
New Post
4/16/2014 10:45 PM
 

The attribute enableRequestValidation should not have to be set to "false". Please check that the <httpRuntime . . . /> node of web.config includes the attribute and value:

requestValidationMode="2.0"

If you have upgraded the site to 7.x and its application pool from ASP.Net v 2.0/3.5 to the now required 4.0/4.5, this attribute/value should have been automatically added during the upgrade process. If it is not present, it is likely that the ASP.Net worker process (IIS identity account) did not have sufficient permissions on the root website folder or that web.config had its read only attribute set at the time of the upgrade.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/17/2014 2:15 AM
 

William, thanks for your prompt reply.

However, the source of the problems you describe seems not to be applicable in my case.

  1. the attribute is in my web.config file and it reads "true": <pages validateRequest="false" enableViewStateMac="true" enableEventValidation="true" viewStateEncryptionMode="Always" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
  2. requestValidationModereads "2.0": <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="27648" requestLengthDiskThreshold="27648" requestValidationMode="2.0" requestPathInvalidCharacters="&lt;,>,*,%,:,\,?" />
  3. the applPool is 4.0.30319 (Integrated) and has full control over the root folder and web.config
  4. the web config is not restricted to be read only
  5. perhaps the full content of the error message will shed some more light:

AssemblyVersion:7.2.2
PortalID:0
PortalName:Greensky Portal
UserID:1
UserName:Greg
ActiveTabID:63
ActiveTabName:Site Settings
RawURL:/pl-pl/pl-pl/admin/sitesettings.aspx
AbsoluteURL:/Default.aspx
AbsoluteURLReferrer:http://green-sky.sytes.net/pl-pl/pl-pl/admin/sitesettings.aspx
UserAgent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:e1ce0935-2dc4-490e-964c-59a128995bc7
InnerException:Unhandled Error:
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:System.Web.UI.ClientScriptManager.ValidateEvent
StackTrace:
Message:

System.Exception: Unhandled Error:  ---> DotNetNuke.Services.Exceptions.PageLoadException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. ---> System.ArgumentException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
   w System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument)
   w System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument)
   w System.Web.UI.WebControls.DropDownList.LoadPostData(String postDataKey, NameValueCollection postCollection)
   w System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
   w System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   w System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   --- Koniec śladu stosu wyjątków wewnętrznych ---
   w DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL)
   w DotNetNuke.Framework.PageBase. (EventArgs e)
   w System.Web.UI.Page.HandleError(Exception e)
   w System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   w System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   w System.Web.UI.Page.ProcessRequest()
   w System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   w System.Web.UI.Page.ProcessRequest(HttpContext context)
   w ASP.default_aspx.ProcessRequest(HttpContext context)
   w System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   w System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   --- Koniec śladu stosu wyjątków wewnętrznych ---

Source:

Server Name: Laptop-G

As I wrote in my first post I toggle the enableEventValidation attribute only when I need to change the alias settings meaning I change the value back to "true" when the the changes in the alias settings have been made.

Any insight on this would be appreciated.


English-Polish translations, one-to-one English/Polish tutoring, Windows server management, website development - HTML/JS/CSS/Razor
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Event validation - can't modify site's Alias settingsEvent validation - can't modify site's Alias settings


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out