cschmid Posted January 6, 2012 Author Posted January 6, 2012 This is an odd one, since the dll in the zip file fixes that issue, will try again Hi Nickbro, Thanks for those files again, this time if resolved the issue nd i can see and access the "My Files" section.. YIPPIE!! however there is now another issue, i have lost all login capabilities, I can no longer login as a domain admin or a normal user?? I just get this: Exception: Something is wrong] HAP.AD.User.ImpersonateContained() +683 HAP.Web.Default.Page_Load(Object sender, EventArgs e) +2149 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064 Regards;
nickbro Posted January 6, 2012 Posted January 6, 2012 Odd, the Something is wrong error message only comes up if it can't impersonate the user. What authentication system are you using? Forms or Windows? 1
cschmid Posted January 7, 2012 Author Posted January 7, 2012 AH HA! That was it! I checked the Auth settings on the HAP ( virtual site ) and for some reason all the Auth methods apart fro Anonymous were disabled?? I re-enabled forms and everything started working again..... Thanks for the point in the right direction. Now that everything seems to be working, time to stress test it before staff and students get back and I may also play with the HTML/CSS to see if I can get it to match the school theme.. Thanks again
cschmid Posted January 7, 2012 Author Posted January 7, 2012 Additionally, I have started testing on my Macbook, however the "Drag and Drop" will not work.( everything else seems fine so far ) I have tried with the following: Firefox Chrome Safari Silverlight is up-to-date
nickbro Posted January 7, 2012 Posted January 7, 2012 Are you trying Drag and Drop in the new My Files beta? If so, Mac's may not support it
cschmid Posted January 8, 2012 Author Posted January 8, 2012 Are you trying Drag and Drop in the new My Files beta? If so, Mac's may not support it Not sure, just using whatever was supplied with HAP+ 7.8 ?
nickbro Posted January 8, 2012 Posted January 8, 2012 Does the page you on say My Files or My Computer?
cschmid Posted January 8, 2012 Author Posted January 8, 2012 The url page says /mycomputersl.aspx and the page title says My Computer - Extended Version Hope this helps.
aaqib Posted January 10, 2012 Posted January 10, 2012 I'm getting the same internal error message and all I'm trying to do is add the school name and web address. I can access the AD on the Active Directory page but cannot get it to save wothout error messages coming up either. You're help is very much appreciated. I've pasted the debug, below: 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. body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } 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: [HttpException (0x80004005): Unable to validate data.] System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +329 System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +145 [ViewStateException: Invalid viewstate. Client IP: ::1 Port: 54778 Referer: [url]https://localhost/hap/setup.aspx[/url] Path: /hap/setup.aspx User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/5.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C; .NET4.0E) ViewState: /wEPDwUKLTY0Mzg3MTA2NA9kFgICAw9kFhgCAg8PFgIeBFRleHQFAzcuMGRkAgMPFgIfAAUaSUlTNyBJbnRlZ3JhdGVkIFBpcGVsaW5lOiBkAhMPFgIeC18hSXRlbUNvdW50ZmQCLQ8WAh8BAgQWCGYPZBYCZg8VAwJNZQJNZQJNZWQCAQ9kFgJmDxUDCFBhc3N3b3JkCFBhc3N3b3JkCFBhc3N3b3JkZAICD2QWAmYPFQMIQm9va2luZ3MIQm9va2luZ3MIQm9va2luZ3NkAgMPZBYCZg8VAwdUaWNrZXRzB1RpY2tldHMHVGlja2V0c2QCLg8WAh8BAgQWCGYPZBYCZg8VCwJNZQJNZQJNZQJNZQJNZQJNZQJNZQNBbGwCTWWGAjxkaXYgc3R5bGU9Im92ZXJmbG93OiBoaWRkZW47IGNsZWFyOiBib3RoOyI+PGxhYmVsIGZvcj0iaG9tZXBhZ2V0YWJzLU1lLWFsbG93dXBkYXRldG8iPkFsbG93IFVwZGF0ZSBUbzogPC9sYWJlbD48aW5wdXQgdHlwZT0idGV4dCIgaWQ9ImhvbWVwYWdldGFicy1NZS1hbGxvd3VwZGF0ZXRvIiB2YWx1ZT0iRG9tYWluIEFkbWlucyIgb25jbGljaz0ic2hvd2FkYnVpbGRlcih0aGlzLCBmYWxzZSk7IiBvbmNoYW5nZT0idXBkYXRldGFiKCdNZScpOyIgLz4...] [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) +198 System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14 System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +255 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.setup_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\hap\84de08c5\70e6ba5a\App_Web_ox0qustw.3.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.1
nickbro Posted January 10, 2012 Posted January 10, 2012 See Online tool to create keys for view state validation and encryption on that error
Avalon Posted January 13, 2012 Posted January 13, 2012 Hi Nickbro, Thanks for those files again, this time if resolved the issue nd i can see and access the "My Files" section.. YIPPIE!! however there is now another issue, i have lost all login capabilities, I can no longer login as a domain admin or a normal user?? I just get this: Exception: Something is wrong] HAP.AD.User.ImpersonateContained() +683 HAP.Web.Default.Page_Load(Object sender, EventArgs e) +2149 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064 Regards; I am also getting a 'something is wrong' error. I have checked authentication in ISS and anonymous and forms are already set to enabled, any ideas?
nickbro Posted January 13, 2012 Posted January 13, 2012 Does your server have Interactive Logon Rights? The Something is Wrong error is usually because of that. If you don't want to enable Interactive Logon Rights, you will need to switch to Basic Windows Authentication (set it to Basic auth, and set authmode="Windows" in the hapconfig.xml's element
aaqib Posted January 17, 2012 Posted January 17, 2012 I get this 'Validation of viewstate MAC failed' when I add 2 drive mappings in the 'hapconfig' file, 1 for teachers' home directory and 1 for pupils' homedirectory, AND both are mapped to the same drive letter! The shared folders are on different locations on the same server. But for some reason when I have the 2 lines added like this: mapping drive="H" name="Teacher's Personal H Files" enablereadto="AllStaff,Domain Admins" enablewriteto="AllStaff,Domain Admins" enablemove="True" usagemode="Quota">\\server1\users\secstaff\%username% \\server1\users\secpupils\%username% I get the mac failed error. But when I take the pupil one out, it works fine.
aaqib Posted January 17, 2012 Posted January 17, 2012 Also, Nick, How do I add the key that gets created by that link you sent us, into the webconfig file found in root of the hap folder? An example of where in the config file it should go would be great.
nickbro Posted January 17, 2012 Posted January 17, 2012 You cannot have drive mappings with identical drive letters, they need to be all unique. Try this generator instead, works a bit better, with some more info Generate Machine Key
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