REOScotte Posted November 16, 2012 Posted November 16, 2012 When we click on My Files, I get the error below. It seems to be setup correctly since I see the share name and free space in the live tile. We're new to this and are also wondering if it could be related to our active directory setup. We don't get the AD browser, which I've learned is quasi-normal, but even ignoring that and clicking save, we still get a red X on the Base Settings. [h=1]Server Error in '/HAP' Application. [/h] [h=2]Index and count must refer to a location within the string. Parameter name: count[/h]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.ArgumentOutOfRangeException: Index and count must refer to a location within the string. Parameter name: count Source Error: [TABLE=width: 100%] [TR] [TD] Line 119: if (window.location.href.split('#')[1] != "" && window.location.href.split('#')[1]) {Line 120: curpath = window.location.href.split("#")[1];Line 121: if (typeof (window.FileReader) != 'undefined') $("#MyFiles").attr("dropzone", "copy<%=DropZoneAccepted %>");Line 122: if (viewMode == 1) { $("#MyFiles").addClass("details"); $("#MyFilesHeaddings").show(); }Line 123: else if (viewMode == 2) $("#MyFiles").addClass("small");[/TD] [/TR] [/TABLE] Source File: e:\inetpub\liveweb.evangel.edu\HAP\MyFiles\Default.aspx Line: 121 Stack Trace: [TABLE=width: 100%] [TR] [TD] [ArgumentOutOfRangeException: Index and count must refer to a location within the string.Parameter name: count] System.String.RemoveInternal(Int32 startIndex, Int32 count) +0 System.String.Remove(Int32 startIndex, Int32 count) +22 HAP.Web.MyFiles.Default.get_DropZoneAccepted() +377 ASP.myfiles_default_aspx.__Render__control46(HtmlTextWriter __w, Control parameterContainer) in e:\inetpub\liveweb.evangel.edu\HAP\MyFiles\Default.aspx:121 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31 HAP.Web.Controls.CompressJS.Render(HtmlTextWriter writer) +60 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 ASP.myfiles_default_aspx.__Render__control19(HtmlTextWriter __w, Control parameterContainer) in e:\inetpub\liveweb.evangel.edu\HAP\MyFiles\Default.aspx:77 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8 System.Web.UI.Control.Render(HtmlTextWriter writer) +10 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +173 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8 System.Web.UI.Control.Render(HtmlTextWriter writer) +10 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8 System.Web.UI.Page.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060[/TD] [/TR] [/TABLE] Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
nickbro Posted November 17, 2012 Posted November 17, 2012 Can you post the filters section of your hapConfig.xml file. The error is stating something is wrong with it.
REOScotte Posted November 17, 2012 Author Posted November 17, 2012 Can you post the filters section of your hapConfig.xml file. The error is stating something is wrong with it. Thanks for the quick response. I don't think I've touched anything to do with the filters, but here ya go. Also note that I do not have any quota servers but still had to manually change the usage mode from "Quota" to "DriveSpace" even though I selected Drive Space in the GUI. \\hoth\staff\%username%
nickbro Posted November 17, 2012 Posted November 17, 2012 Ok, this is most odd. Can you try updating the App_LocalResources folder from the HAP+ Web v8.4 Full release, as it may be missing a localized string
REOScotte Posted November 17, 2012 Author Posted November 17, 2012 Ok, this is most odd. Can you try updating the App_LocalResources folder from the HAP+ Web v8.4 Full release, as it may be missing a localized string Yeah, the contents of my folder match the 2 files in 8.4. I also tried 8.3 with the same results. The os is en-us, would that make a difference? I wouldn't think so since my xml has en-gb in it.
nickbro Posted November 17, 2012 Posted November 17, 2012 We'll I'm baffled, it looks like something is playing up generating the drop zone attribute based on the MSCB filters. Does it work on a non admin user?
REOScotte Posted November 17, 2012 Author Posted November 17, 2012 I'm not sure what you mean. I'm logged into my workstation as a non-administrator, and I've logged into HAP+ as both a domain admin and as a regular user with the same results. Could it be related to the Active Directory configuration? As I mentioned in my original post, I get a red X on Base settings even after putting in a correct user. Is the AD configuration required for basic use?
nickbro Posted November 17, 2012 Posted November 17, 2012 Ah, yes AD configuration is required, HAP+ ties into AD
REOScotte Posted November 17, 2012 Author Posted November 17, 2012 So is the red X expected or is it possible I've got AD misconfigured?
nickbro Posted November 17, 2012 Posted November 17, 2012 You may have gotten AD misconfiguration. Since it sounds like it cannot get your membership information. But since you're able to log on it may not be the case
REOScotte Posted November 17, 2012 Author Posted November 17, 2012 If I change the credentials to bogus credentials, I can no longer log in, so it appears that AD is at least partially correct, but I still get the red X with valid creds.
Paul_Richardson Posted November 19, 2012 Posted November 19, 2012 Yeap problem is one I had and fixed. The issue is in the following line : The filter expression ends in a ; so the code is expecting another extension. If you change the line to : Then everything is fine. Not good that the default filters are faulty but hey it's an easy oversight. So when creating filters ensure that the expression doesn't end in a semicolon. Thanks for the quick response. I don't think I've touched anything to do with the filters, but here ya go. Also note that I do not have any quota servers but still had to manually change the usage mode from "Quota" to "DriveSpace" even though I selected Drive Space in the GUI. \\hoth\staff\%username%
nickbro Posted November 19, 2012 Posted November 19, 2012 Wow, ok that's a bit of a may bad moment, odd that it came out in v8.4 as i added that into the v8.3 release, I'll fix that when I get home, not that it should cause the issue you describe as the system should remove blank/empty extension parts at run time
REOScotte Posted November 19, 2012 Author Posted November 19, 2012 Sweet. That fixed it for me too. This seems to be particular to IIS 6 since we didn't have the same problem on IIS 7.5.
nickbro Posted November 19, 2012 Posted November 19, 2012 Just checked into codeplex the fix for this one, having a trailing semi-colon will no longer cause this error. Sorry for any issues this may of caused. Home Access Plus+ - Source Code Fixed: Issue where some empty groups were being shown Fixed: Issue where the default page would not generate due to a filter issue Added: Logic to rename mscb to my files in the hapConfig xml file v8.5 trunk Committed by nickbro 1 minute ago. Commit 81210. edit CHS Extranet/HAP.Web.Config/DriveMappings.cs (View full diff) edit CHS Extranet/HAP.Web.Config/Filters.cs (View full diff) edit CHS Extranet/HAP.Web.Config/HAP.Web.Configuration.csproj (View full diff) edit CHS Extranet/HAP.Web.Config/hapConfig.cs (View full diff) delete, source rename CHS Extranet/HAP.Web.Config/MyComputer.cs rename, edit CHS Extranet/HAP.Web.Config/MyFiles.cs (View full diff) edit CHS Extranet/HAP.Web.Config/Properties/AssemblyInfo.cs (View full diff) edit CHS Extranet/HAP.Web.Config/QuotaServers.cs (View full diff) edit CHS Extranet/HAP.Web/Default.aspx.cs (View full diff) edit CHS Extranet/HAP.Web/MyFiles/Default.aspx.cs (View full diff) edit CHS Extranet/HAP.Web/MyFiles/Homework.aspx.cs (View full diff) edit CHS Extranet/HAP.Web/Properties/AssemblyInfo.cs (View full diff)
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