aaqib Posted March 5, 2012 Posted March 5, 2012 Hi all, First of all, what a brilliant (free) service and blessing HPA+ is. Many thanks nickbro! I have a wierd and frustrating problem that I hope you all can help me with. All my users are able to log into my HAP 7.9 install fine. No problems. Interactive logon is set correctly all users can see all the mapped drives. My problem is that everytime a user clicks on a mapped drive or the My School Files or the Browse for Files icons OR browse back and forth through the folders in a mapped drive (or my HAP site) they are presented with the HAP LOGON WINDOW and have to LOG IN AGAIN and AGAIN! I'd love a solution to this! I'd be extremely grateful for your help. The users initially loved the access but are now getting frustrated with having to log in over and over again! Many thanks....
nickbro Posted March 5, 2012 Posted March 5, 2012 Odd, it will only go back to the logon page if they have tried getting at a restricted folder (technically it should go to the unauthorized page but sometimes it doesn't). What happens when you use the /myfiles/ version
aaqib Posted March 5, 2012 Author Posted March 5, 2012 If they try to access a mapped drive that they don't have access to, then it says ERROR: UNAUTHORISED ACCESS. But if they click on a mapped drive that they do have access to, then it let's them browse it, but not without having to log in through the tree of folders at some point! What do you mean by the /myfiles/ version? We run the basice version only and the user clicks My School Files or the Browse for files, on the right. Both eventually lets the user browse the files. Here is our webconfig files, below:
aaqib Posted March 5, 2012 Author Posted March 5, 2012 Sorry, this is my HAP config file: \\alhijrah-csvr1\users\secstaff\%username% \\alhijrah-csvr1\staffshared \\alhijrah-csvr1\subjects \\alhijrah-csvr1\classes \\ALHIJRAH-CSVR1\STAFFCOMMON \\ALHIJRAH-CSVR1\PRIMARYADMIN
mushfiq Posted March 7, 2012 Posted March 7, 2012 We've tried giving the HAP user and administrator as well as network service and authenticated users full access to the HAP folder, without any success.
nickbro Posted March 7, 2012 Posted March 7, 2012 It will not be permissions on the HAP Folder. There must be some configuration setting that's a bit screwy. How have you put TWO students groups (note plural) into the studentsgroup (note singular) name? The StudentsGroup box only supports 1 group, not 2, that could be causing you issues.
aaqib Posted March 12, 2012 Author Posted March 12, 2012 Thanks Nickbro. It's solved the problem! Such as simple solution. I didn't realise we could only put one group in there, as I was editing the hapconfig file directly and not using the wizard. I'm very grateful to you, for sorting this out! Regards...
nickbro Posted March 12, 2012 Posted March 12, 2012 Good to hear, sorry about it only supporting 1 group, HAP+ doesn't really do multi schools on the site install.
aaqib Posted April 23, 2012 Author Posted April 23, 2012 OK, Nickbro, the error's come back!!! Please help (again!). Well, I'm not sure if it had totally gone. Teachers are free to browse without having to log in too often, but they still have to login more than once! Here is my hap config file: \\alhijrah-csvr1\users\secstaff\%username% \\alhijrah-csvr1\staffshared \\alhijrah-csvr1\subjects \\alhijrah-csvr1\classes \\ALHIJRAH-CSVR1\STAFFCOMMON \\ALHIJRAH-CSVR1\PRIMARYADMIN Do I still have 'bugs' in my file?
nickbro Posted April 23, 2012 Posted April 23, 2012 What settings are in the web.config files in HAP+ this usually does extra stuff. Can't see any bugs or omissions in your hapConfig
aaqib Posted April 24, 2012 Author Posted April 24, 2012 Here's my config file. I haven't had a look at this yet. -------------- ---------------- I'm glad the hapconfig file looks right...
nickbro Posted April 24, 2012 Posted April 24, 2012 Hmm, that all looks right, really odd. There is a timeout when using HAP+, but that's usually a session timeout
aaqib Posted April 24, 2012 Author Posted April 24, 2012 OK!, It actually does feel like a timeout. You can browse backwards and still get to files and folders, but when you click to download, it'll go straight to the login page. Then when you put your login details in, you are presented with the download prompt and then you can download. But them youo're stuck in a loop of logging in and downloading the same file! You have to close the files or click back a few times before resuming to normal access.
nickbro Posted April 24, 2012 Posted April 24, 2012 Ok, I'll see if I can add a check to see if the session has expired that is running while using HAP+ so you don't try to download something when your session has timed out
aaqib Posted April 30, 2012 Author Posted April 30, 2012 OK. Thanks Nickbro? Would you like a username and password to log into our HAP? Or are you going to send me an edited config file?
nickbro Posted April 30, 2012 Posted April 30, 2012 It's a issue to diagnose, scince HAP+ shouldn't ask you to log in again unless the session cookie has been expired unexpectedly
aaqib Posted May 9, 2012 Author Posted May 9, 2012 OK, looking forward to your help. Thanks once again, Nick....
aaqib Posted May 10, 2012 Author Posted May 10, 2012 (edited) 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 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 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: 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: /wEPDwUKMTUzNTQ2OTI1MGRkau2HejsLfCVEFJOQvCeYg8GcTDVqqvXBnDRLDNE49LQ=] [HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that 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) +235 System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14 System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +274 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() +241 System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +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(HttpContext 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\Temporary ASP.NET Files\hap\84de08c5\70e6ba5a\App_Web_n0qo2cag.2.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100 System.Web.HttpApplication.ExecuteStep(IExecutionStep 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!!! Edited May 10, 2012 by aaqib
aaqib Posted May 10, 2012 Author Posted May 10, 2012 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!
nickbro Posted May 10, 2012 Posted May 10, 2012 Please try searching on line for that error message Online tool to create keys for view state validation and encryption
aaqib Posted May 10, 2012 Author Posted May 10, 2012 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.
aaqib Posted May 15, 2012 Author Posted May 15, 2012 (edited) Machine key hasn't resolved the issue, unfortunately.... Edited May 15, 2012 by aaqib
aaqib Posted May 15, 2012 Author Posted May 15, 2012 Do you think it has anything to do with us going through the BgFl network?
PeteW Posted May 15, 2012 Posted May 15, 2012 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now