Visualizzazione dei risultati da 1 a 7 su 7
  1. #1
    Utente di HTML.it
    Registrato dal
    Aug 2012
    Messaggi
    45

    [C#]Validation of viewstate MAC failed

    Salve a tutti,
    Ho un problema con il mio sito web.
    Da qualche giorno quando si tenta di accedere nell'area riservata del sito tramite form di login si presenta questo errore su alcuni dispositivi (windows xp e android no windows 7):
    codice:
    Server Error in '/' Application.
    
    Validation of viewstate MAC failed. If this application is hosted by a
    Web Farm or cluster, ensure that <machineKey> configuration specifies
    the same validationKey and validation algorithm. AutoGenerate cannot
    be used in a cluster.
    
    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: Validation of viewstate
    MAC failed. If this application is hosted by a Web Farm or cluster,
    ensure that <machineKey> configuration specifies the same
    validationKey and validation algorithm. AutoGenerate cannot be used in
    a cluster.
    Qualcuno sa come posso risolvere? Grazie
    Ultima modifica di Jackons; 26-11-2013 a 19:51
    Se hai bisogno di uno spazio di
    archiviazione cloud gratuito clicca
    http://db.tt/mTNdaaN e entrambi otteremo spazio extra
    gratis

  2. #2
    Moderatore di Windows e software L'avatar di URANIO
    Registrato dal
    Dec 1999
    residenza
    Casalpusterlengo (LO)
    Messaggi
    1,255
    che versione del framework .net stai usando?

  3. #3
    Utente di HTML.it
    Registrato dal
    Aug 2012
    Messaggi
    45
    Quote Originariamente inviata da URANIO Visualizza il messaggio
    che versione del framework .net stai usando?
    4.0
    Se hai bisogno di uno spazio di
    archiviazione cloud gratuito clicca
    http://db.tt/mTNdaaN e entrambi otteremo spazio extra
    gratis

  4. #4
    Moderatore di Windows e software L'avatar di URANIO
    Registrato dal
    Dec 1999
    residenza
    Casalpusterlengo (LO)
    Messaggi
    1,255
    prova a vedere qua:
    http://blogs.msdn.com/b/tom/archive/...led-error.aspx

    Ma verifica che l'applicazione non stia girando in realtà con inferiore al 3.5

  5. #5
    Utente di HTML.it
    Registrato dal
    Aug 2012
    Messaggi
    45
    Allora fino a qualche tempo fa l'applicazione girava su framework 2.0 poi è stata aggiornata a framework 4.0

    Come verifico il framework reale?
    Ultima modifica di Jackons; 26-11-2013 a 22:58
    Se hai bisogno di uno spazio di
    archiviazione cloud gratuito clicca
    http://db.tt/mTNdaaN e entrambi otteremo spazio extra
    gratis

  6. #6
    Utente di HTML.it
    Registrato dal
    Aug 2012
    Messaggi
    45
    Questo potrebbe essere utile:

    codice:
    Server Error in '/' Application.
    
    Validation of viewstate MAC failed. If this application is hosted by a
    Web Farm or cluster, ensure that <machineKey> configuration specifies
    the same validationKey and validation algorithm. AutoGenerate cannot
    be used in a cluster.
    
    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: Validation of viewstate
    MAC failed. If this application is hosted by a Web Farm or cluster,
    ensure that <machineKey> configuration specifies the same
    validationKey and validation algorithm. AutoGenerate cannot be used in
    a cluster.
    
    Source Error:
    
    
    [No relevant source lines]
    
    Source File: App_Web_uij5tcqu.1.cs    Line: 0
    
    Stack Trace:
    
    
    [ViewStateException: Invalid viewstate.
            Client IP: 93.107.45.199
            Port: 0
            Referer:
    http://www.apd.ie/Login.aspx?ReturnU...Operators.aspx
            Path: /Login.aspx
            User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML,
    like Gecko) Chrome/31.0.1650.57 Safari/537.36
            ViewState:
    /wEPDwUIMjQxODA0OTcPZBYCAgMPZBYEAgEPDxYCHgRUZXh0BcokUFJFUEFSRSBERVRBSU
    xFRCBCT0ZRIE9OIExBUkdFIFBST0pFQ1QgR0FMV0FZIENJVFkgLSBQUkVQQVJFIEEgREVU
    QUlMRUQgQk9GUSBPTiBBIExBUkdFIFBST0pFQ1QgSU4gTElORSBXSVRIIEFSTSA0LCBQUk
    VWSU9VUyBCSUxMUyBNVVNUIEJFIFNFRU4gQkVGT1JFIEFOWU9ORSBJUyBBUFBPSU5URUQs
    IExPT0tJTkcgVE8gU1RBUlQgQVNBUCAtIFFVQU5USVRZIFNVUlZFWU9SIC0gR0FMV0FZIC
    0gMjYvMTEvMjAxMyAmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJz
    cDsmbmJzcDsmbmJzcDsgSU5TVEFMTCBJTlNFUlQgU1RPVkUgJiBQTFVNIElUIFRPIEhFQV
    RJTkcgTkFBUyAtIElOU1RBTEwgSU5TRVJUIFNUT1ZFIEFORCBQTFVNIElUIFRPIEhFQVRJ
    TkcgLSBQTFVNQkVSIC0gSEVBVElORyBDT05UUkFDVE9SIC0gS0lMREFSRSAtIDI1LzExLz
    IwMTMgJm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7
    Jm5ic3A7IFJFSEFORyBJTlRFUk5BTCBET09SUyAtIEFOIElOVEVSTk...]
    
    [HttpException (0x80004005): Validation of viewstate MAC failed. If
    this application is hosted by a Web Farm or cluster, ensure that
    <machineKey> configuration specifies the same validationKey and
    validation algorithm. AutoGenerate cannot be used in a cluster.]
       System.Web.UI.ViewStateException.ThrowError(Exception inner, String
    persistedState, String errorPageMessage, Boolean macValidationError)
    +198
       System.Web.UI.ObjectStateFormatter.Deserialize(String inputString,
    Purpose purpose) +432
    
    System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter2.Dese
    rialize(String serializedState, Purpose purpose) +8
       System.Web.UI.Util.DeserializeWithAssert(IStateFormatter2
    formatter, String serializedState, Purpose purpose) +40
       System.Web.UI.HiddenFieldPageStatePersister.Load() +248
       System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +88
       System.Web.UI.Page.LoadAllState() +36
       System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    +6704
       System.Web.UI.Page.ProcessRequest(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    +245
       System.Web.UI.Page.ProcessRequest() +72
       System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
    +21
       System.Web.UI.Page.ProcessRequest(HttpContext context) +58
       ASP.login_aspx.ProcessRequest(HttpContext context) in
    App_Web_uij5tcqu.1.cs:0
    
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecut
    ionStep.Execute() +341
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
    Boolean& completedSynchronously) +69
    
    Version Information: Microsoft .NET Framework Version:4.0.30319;
    ASP.NET Version:4.0.30319.18045
    Se hai bisogno di uno spazio di
    archiviazione cloud gratuito clicca
    http://db.tt/mTNdaaN e entrambi otteremo spazio extra
    gratis

  7. #7
    Utente di HTML.it L'avatar di Legnetto
    Registrato dal
    May 2002
    Messaggi
    1,419
    In fondo alla sezione da te postata:

    ...
    Version Information: Microsoft .NET Framework Version:4.0.30319;
    ASP.NET Version:4.0.30319.18045

    Ciao
    Legnetto

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.