EnableEventValidation="false"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yoni12ab
    New Member
    • Dec 2007
    • 1

    EnableEventValidation="false"

    Hi
    Im new in my job never configure iis the problem is that I reinstalled visual studio 2003 becouse of debugger problem and the local web site was working fine
    and now it doesent work it giving me this error :
    Server Error in '/appname' Application.
    _______________ _______________ __________
    Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: The 'EnableEventVal idation' attribute is not supported by the 'page' directive.

    Source Error:
    Line 4: <%@Register TagPrefix="Boo" TagName="b_Righ t" src="ascx/b_Right.ascx"%> Line 5: <%@Register TagPrefix="Scro ller" TagName="scroll er" src="../ascx/Scroller.ascx"% >Line 6: <%@ Page language="c#" EnableEventVali dation="false" Codebehind="my_ Main.aspx.cs" AutoEventWireup ="false" Inherits="me.my _Main" LCID="1037" codePage="65001 " %>Line 7: Line 8: <!-- #include file = "../Top.inc"-->

    Source File: c:\inetpub\wwwr oot\me\Boo\my_M ain.aspx Line: 6
    _______________ _______________ __________
    Version Information: Microsoft .NET Framework Version:1.1.432 2.2300; ASP.NET Version:1.1.432 2.2300


    So it deleted the 'EnableEventVal idation=false' and it did worked but I don’t want to change the code I would like to change the iis configuration

    So my Q is how to change the iis without changing the code ?

    Thanks
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    I was going to say try using it in the web.config where it would normally go, but I believe this is .net 2.0 so it may not work wherever you put it.

    Comment

    Working...