I have a freetextbox editor and i have set ValidateRequest ="false" but why am i still getting this error, its driving me insane

Last post 06-30-2009 4:28 AM by Rangapure.S.Swapnil. 7 replies.

Sort Posts:

  • I have a freetextbox editor and i have set ValidateRequest ="false" but why am i still getting this error, its driving me insane

    06-29-2009, 9:14 AM
    • Member
      339 point Member
    • Nivash
    • Member since 01-31-2007, 10:58 AM
    • Posts 146

    Server Error in '/applicationV2' Application.

    The state information is invalid for this page and might be corrupted.

    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.Web.HttpException: The state information is invalid for this page and might be corrupted.

    Source Error:

    The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

      <%@ Page Language="C#" Debug="true" %>

    or:

    2) Add the following section to the configuration file of your application:

    <configuration>
       <system.web>
           <compilation debug="true"/>
       </system.web>
    </configuration>

    Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

    Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

    Stack Trace:

    [FormatException: Invalid character in a Base-64 string.]
       System.Convert.FromBase64String(String s) +0
       System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +72
       System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
       System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
       System.Web.UI.HiddenFieldPageStatePersister.Load() +113
    
    [ViewStateException: Invalid viewstate. 
    	Client IP: 127.0.0.1
    	Port: 
    	User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)
    	ViewState: /wEPDwUKMTY1NDU2MTA1Mg9kFgJmD2QWAgIDD2QWAgIBDw8WAh4EVGV4dAUGbml2YXNoZGRkzDI1GHzMxkZdo9/TylZehKe90Jc=,/wEPDwUKMTk4ODczNTYzMw9kFgICAw9kFgQCAQ8QDxYCHgtfIURhdGFCb3VuZGdkEBUTBEhvbWUHQWJvdXRVcw9XZWJzaXRlIEhvc3RpbmcZd2ViX2hvc3RpbmdfY29tcHJlaGVuc2l2ZQ5XZWJzaXRlX0Rlc2lnbhFTeXN0ZW1fZGVzaWduX0NDSBJJbnRlcm5ldF9tYXJrZXRpbmcDU2VvE0ludGVybmV0X2R2ZXJ0aXNpbmcMRGlyZWN0IEVtYWlsBFZvaXAJUG9ydGZvbGlvD1dlYl9kZXZlbG9wbWVudA1TeXN0ZW1fZGVzaWduDlJlX2RldmVsb3BtZW50B0Nvbm5lY3QRQ29ubmVjdF9zb2x1dGlvbnMEQWRzbBRTb2Z0d2FyZV9kZXZlbG9wbWVudBUTBEhvbWUHQWJvdXRVcw9XZWJzaXRlIEhvc3RpbmcZd2ViX2hvc3RpbmdfY29tcHJlaGVuc2l2ZQ5XZWJzaXRlX0Rlc2lnbhFTeXN0ZW1fZGVzaWduX0NDSBJJbnRlcm5ldF9tYXJrZXRpbmcDU2VvE0ludGVybmV0X2R2ZXJ0aXNpbmcMRGlyZWN0IEVtYWlsBFZvaXAJUG9ydGZvbGlvD1dlYl9kZXZlbG9wbWVudA1TeXN0ZW1fZGVzaWduDlJlX2RldmVsb3BtZW50B0Nvbm5lY3QRQ29ubmVjdF9zb2x1dGlvbnMEQWRzbBRTb2Z0d2FyZV9kZXZlbG9wbWVudB...]
    
    [HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
       System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +106
       System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +14
       System.Web.UI.HiddenFieldPageStatePersister.Load() +217
       System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105
       System.Web.UI.Page.LoadAllState() +43
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
       System.Web.UI.Page.ProcessRequest() +80
       System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
       System.Web.UI.Page.ProcessRequest(HttpContext context) +49
       ASP.administration_default_aspx.ProcessRequest(HttpContext context) +4
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

    Remember to click “Mark as Answer” on the post, if it helps you. Because It helps others to find the solution
  • Re: I have a freetextbox editor and i have set ValidateRequest ="false" but why am i still getting this error, its driving me insane

    06-29-2009, 9:52 AM
    • Contributor
      5,138 point Contributor
    • papabear
    • Member since 08-08-2005, 3:49 PM
    • Posts 851

    If I remember correctly, you need to set EnableEventValidation="false" in the Page section:

    <%@Page EnableEventValidation="false" ..... />

    I encountered this esp when using ajax...

    ;)

    give me suggestions for what to blog... http://www.myfriedmind.com/techblog -> thx

    Mark as "Answered" if this solves that wee old problem...
  • Re: I have a freetextbox editor and i have set ValidateRequest ="false" but why am i still getting this error, its driving me insane

    06-29-2009, 9:56 AM

    on top of ur soruce code add   Debug="true" in

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" Debug="true" %>

    or to apply for all page add in web.config

    <compilation debug="true"/>

  • Re: I have a freetextbox editor and i have set ValidateRequest ="false" but why am i still getting this error, its driving me insane

    06-29-2009, 10:31 AM
    • Member
      339 point Member
    • Nivash
    • Member since 01-31-2007, 10:58 AM
    • Posts 146

     Hi

    Thanks for your reply but sadly i have done that and it still does not work :(

    any other ideas?

    Remember to click “Mark as Answer” on the post, if it helps you. Because It helps others to find the solution
  • Re: I have a freetextbox editor and i have set ValidateRequest ="false" but why am i still getting this error, its driving me insane

    06-29-2009, 10:32 AM
    • Member
      339 point Member
    • Nivash
    • Member since 01-31-2007, 10:58 AM
    • Posts 146

    Hi

     

    Thanks for your reply also but sadly i have done that and it still does not work, i am running out of time.

    Thanks again guys, but any ideas?

    Remember to click “Mark as Answer” on the post, if it helps you. Because It helps others to find the solution
  • Re: I have a freetextbox editor and i have set ValidateRequest ="false" but why am i still getting this error, its driving me insane

    06-29-2009, 10:54 AM

    <compilation debug="false" strict="false" explicit="true" />

    and also

    <%@ Page ValidateRequest="False" %>

  • Re: I have a freetextbox editor and i have set ValidateRequest ="false" but why am i still getting this error, its driving me insane

    06-30-2009, 3:47 AM
    • Member
      339 point Member
    • Nivash
    • Member since 01-31-2007, 10:58 AM
    • Posts 146

     Nope i have tried what was suggested but still not working, heres my code

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" EnableEventValidation = "false" ValidateRequest ="false" Debug ="true" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <link href="ajaxtabs.css" rel="stylesheet" type="text/css" />
        <script src="ajaxtabs.js" type="text/javascript"></script>
        
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <p>
        -<asp:LinkButton ID="LinkButton1" runat="server" EnableViewState = "false">Sign Out</asp:LinkButton>
        <br />
    </p>
        </div>
    
    
    
    
    <div id="flowernote" style="display:none; position:absolute; right: 30px; width:150px; height:150px; background-color:red; color:white">
    Arbitrary DIV 1
    
    </div>
    
    <div id="flowernote2" style="display:none; position:absolute; right: 200px; width:80px; height:80px; background-color:black; color:white">
    Arbitrary DIV 2
    </div>
    
    <div id="flowernote3" style="display:none; position:absolute; right: 30px; width:140px; height:140px; background-color:navy; color:white">
    Arbitrary DIV 3
    </div>
    
    
    <div id="flowerdivcontainer" style="border:1px solid gray; width:350px; height: 200px; background-color: lightyellow; padding: 5px">
    </div>
    
    <div id="flowertabs" class="modernbricksmenu2">
    <ul>
    <li><a href="Item1.aspx" rel="flowerdivcontainer" class="selected">Tab 1</a></li>
    
    <li><a href="Item2.aspx" rel="flowerdivcontainer" rev="flowernote,flowernote2">Tab 2</a></li>
    <li><a href="Item3.aspx" rel="flowerdivcontainer">Tab 3</a></li>
    <li><a href="SignOut.aspx" rel="flowerdivcontainer" rev="flowernote3">Tab 4</a></li>
    
    </ul>
    </div>
    <br style="clear: left" />
    
    <script type="text/javascript">
    
    var myflowers=new ddajaxtabs("flowertabs", "flowerdivcontainer")
    myflowers.setpersist(true)
    myflowers.setselectedClassTarget("link") //"link" or "linkparent"
    myflowers.init()
    
    </script>
    
    <p><a href="javascript:myflowers.cycleit('prev')" style="margin-right: 250px; text-decoration:none">Back</a>  <a href="javascript:myflowers.cycleit('next')" style="text-decoration:none">Forward</a></p>
    
    <hr />
    
        </form>
    </body>
    </html>
    


     Thank you

    Remember to click “Mark as Answer” on the post, if it helps you. Because It helps others to find the solution
  • Re: I have a freetextbox editor and i have set ValidateRequest ="false" but why am i still getting this error, its driving me insane

    06-30-2009, 4:28 AM

    on 16th line remove "-"

Page 1 of 1 (8 items)