问题描述
ServerErrorin'/'Application.--------------------------------------------------------------------------------Unabletovalidatedata.Description:Anunhandledexceptionoccurredduringtheexecutionofthecurrentwebrequest.Pleasereviewthestacktraceformoreinformationabouttheerrorandwhereitoriginatedinthecode.ExceptionDetails:System.Web.HttpException:Unabletovalidatedata.SourceError:Anunhandledexceptionwasgeneratedduringtheexecutionofthecurrentwebrequest.Informationregardingtheoriginandlocationoftheexceptioncanbeidentifiedusingtheexceptionstacktracebelow.StackTrace:[HttpException(0x80004005):Unabletovalidatedata.]System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(BooleanfEncrypt,Byte[]buf,Byte[]modifier,Int32start,Int32length,BooleanuseValidationSymAlgo,BooleanuseLegacyMode,IVTypeivType,BooleansignData)+1081System.Web.UI.Page.EncryptStringWithIV(Strings,IVTypeivType)+120System.Web.Handlers.AssemblyResourceLoader.FormatWebResourceUrl(StringassemblyName,StringresourceName,Int64assemblyDate,BooleanhtmlEncoded)+51System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrlInternal(Assemblyassembly,StringresourceName,BooleanhtmlEncoded,BooleanforSubstitution,IScriptManagerscriptManager)+1644System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrl(Typetype,StringresourceName,BooleanhtmlEncoded,IScriptManagerscriptManager)+722System.Web.UI.ClientScriptManager.GetWebResourceUrl(Pageowner,Typetype,StringresourceName,BooleanhtmlEncoded,IScriptManagerscriptManager)+167System.Web.UI.ClientScriptManager.RegisterClientScriptResource(Typetype,StringresourceName)+67System.Web.UI.WebControls.BaseValidator.RegisterValidatorCommonScript()+215System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgse)+69System.Web.UI.Control.PreRenderRecursiveInternal()+103System.Web.UI.Control.PreRenderRecursiveInternal()+175System.Web.UI.Control.PreRenderRecursiveInternal()+175System.Web.UI.Control.PreRenderRecursiveInternal()+175System.Web.UI.Control.PreRenderRecursiveInternal()+175System.Web.UI.Page.ProcessRequestMain(BooleanincludeStagesBeforeAsyncPoint,BooleanincludeStagesAfterAsyncPoint)+2496--------------------------------------------------------------------------------VersionInformation:Microsoft.NETFrameworkVersion:4.0.30319;ASP.NETVersion:4.0.30319.1是什么原因啊怎么修改啊查了好多都不行啊
解决方案
解决方案二:
在Web.Config文件中配置EnableViewStateMAC=false试试看
解决方案三:
试了不行啊