It's a issue to diagnose, scince HAP+ shouldn't ask you to log in again unless the session cookie has been expired unexpectedly
It's a issue to diagnose, scince HAP+ shouldn't ask you to log in again unless the session cookie has been expired unexpectedly
OK, looking forward to your help. Thanks once again, Nick....
I get this error page as well, whenever I click something, it returns to the login page and the user clicks the back button:
Server Error in '/hap' 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:
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:
[ViewStateException: Invalid viewstate.
Client IP: 10.120.26.11
Port: 41280
Referer: Al-Hijrah School - Home Access Plus+ - Login
Path: /hap/login.aspx
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)
ViewState: /wEPDwUKMTUzNTQ2OTI1MGRkau2HejsLfCVEFJOQvCeYg8GcTDV qqvXBnDRLDNE49LQ=]
[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(Except ion inner, String persistedState, String errorPageMessage, Boolean macValidationError) +235
System.Web.UI.ViewStateException.ThrowMacValidatio nError(Exception inner, String persistedState) +14
System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString) +274
System.Web.UI.ObjectStateFormatter.System.Web.UI.I StateFormatter.Deserialize(String serializedState) +4
System.Web.UI.Util.DeserializeWithAssert(IStateFor matter formatter, String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +241
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +106
System.Web.UI.Page.LoadAllState() +43
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
System.Web.UI.Page.ProcessRequest() +78
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.login_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temp orary ASP.NET Files\hap\84de08c5\70e6ba5a\App_Web_n0qo2cag.2.cs: 0
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +75
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
We're not using https or ssl certificates.
Help!!!
Last edited by aaqib; 10th May 2012 at 09:33 AM.
The web page of the above error page is:
=http://myfiles.al-hijrah.bham.sch.uk/hap/login.aspx?ReturnUrl=%2fhap%2fMyComputer%2fH
If I delete everything up to /hap from the address, I return to the login page (obviously) and can re-log in.
It's a real pain!
Please try searching on line for that error message
Online tool to create keys for view state validation and encryption
Where abouts do I add the machine key script? I'm a novice at this. I tried adding the machine key into various positions in the web.comfig script but errors occur.
Machine key hasn't resolved the issue, unfortunately....
Last edited by aaqib; 15th May 2012 at 02:26 PM.
Do you think it has anything to do with us going through the BgFl network?
Hi Aaqib,
Schools within the BGfL already have this setup and working. If it was a BGfL network issue, it wouldn't be working across any of the schools.
If you are getting to your webserver via the URL then this sounds like a config issue on your web server, not a BGfL issue.
There are currently 1 users browsing this thread. (0 members and 1 guests)