timpaxton Posted January 5, 2012 Posted January 5, 2012 (edited) Hi @nickbro I had the MyFiles preview working in HAP+ 7.7, but since I've upgraded to 7.8 I'm getting an error. This is my first HAP+ error, so go easy on me debugging it, I'm a newby! I've deleted all the HAP folder and recreated it out of the latest HAP+ Web v7.8.1211.1640.zip file, replacing my copy of the web.config and App_Data\hapconfig.xml files. Still no dice. Can you point me in the right direction to try and sort this? Thanks, Tim. The error is below: Index and count must refer to a location within the string. Parameter name: count 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: Line 84: if (window.location.href.split('#')[1] != "" && window.location.href.split('#')[1]) { Line 85: curpath = window.location.href.split("#")[1] Line 86: if (typeof (window.FileReader) != 'undefined') $("#MyFiles").attr("dropzone", "copy<%=DropZoneAccepted %>"); Line 87: if (viewMode == 1) { $("#MyFiles").addClass("details"); $("#MyFilesHeaddings").show(); } Line 88: else if (viewMode == 2) $("#MyFiles").addClass("small"); Source File: c:\inetpub\wwwroot\hap\MyFiles\Default.aspx Line: 86 Stack Trace: [ArgumentOutOfRangeException: Index and count must refer to a location within the string. Parameter name: count] System.String.RemoveInternal(Int32 startIndex, Int32 count) +0 HAP.Web.MyFiles.Default.get_DropZoneAccepted() +448 ASP.myfiles_default_aspx.__Render__control3(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\hap\MyFiles\Default.aspx:86 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +315 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +48 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246 System.Web.UI.Page.Render(HtmlTextWriter writer) +40 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5290 Edited January 5, 2012 by timpaxton linked to nickbro (hopefully!)
nickbro Posted January 5, 2012 Posted January 5, 2012 Try Home Access Plus+ - Download: v7.9 and see if it fixes it, one of the early v7.9 updates (back in dec) was to fix an issue with the Preview functionality
timpaxton Posted January 6, 2012 Author Posted January 6, 2012 Try Home Access Plus+ - Download: v7.9 and see if it fixes it, one of the early v7.9 updates (back in dec) was to fix an issue with the Preview functionality Hi again Nick. I've installed 7.9 (by entirely deleting the hap directory except ./hap/App_Data/hapconfig.xml), and used the web.config from the 7.9 zip, but modified to my requirements. I'm now getting a different error - it seems to me as a layman I've not got a variable set somewhere, should I be re-creating the hapconfig.xml file? Cheers, Tim. Index and count must refer to a location within the string. Parameter name: count 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: Line 105: if (window.location.href.split('#')[1] != "" && window.location.href.split('#')[1]) { Line 106: curpath = window.location.href.split("#")[1] Line 107: if (typeof (window.FileReader) != 'undefined') $("#MyFiles").attr("dropzone", "copy<%=DropZoneAccepted %>"); Line 108: if (viewMode == 1) { $("#MyFiles").addClass("details"); $("#MyFilesHeaddings").show(); } Line 109: else if (viewMode == 2) $("#MyFiles").addClass("small"); Source File: c:\inetpub\wwwroot\hap\MyFiles\Default.aspx Line: 107 Stack Trace: [ArgumentOutOfRangeException: Index and count must refer to a location within the string. Parameter name: count] System.String.RemoveInternal(Int32 startIndex, Int32 count) +0 HAP.Web.MyFiles.Default.get_DropZoneAccepted() +448 ASP.myfiles_default_aspx.__Render__control32(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\hap\MyFiles\Default.aspx:107 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +48 ASP.myfiles_default_aspx.__Render__control3(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\hap\55cd546f\70e6ba5a\App_Web_gbs4mq4u.1.cs:0 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +315 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +48 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246 System.Web.UI.Page.Render(HtmlTextWriter writer) +40 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5290
nickbro Posted January 6, 2012 Posted January 6, 2012 I have no idea on that error, it shouldn't be happening, can you provide a screenshot please
timpaxton Posted January 6, 2012 Author Posted January 6, 2012 (edited) I have no idea on that error, it shouldn't be happening, can you provide a screenshot please Oh dear! Screenshot attached. On a side note, the stock Web.config doesn't like adding the .svg mime type, and I've commented it out like this: If I don't do that, I can't access the stylesheets, scripts or images. Is this critical? I'm on IIS 7.5 on Server 2008R2 Datacentre Edited January 6, 2012 by timpaxton updated server OS details
nickbro Posted January 6, 2012 Posted January 6, 2012 ok, that error has something to do you your Accepted File Types, double check they are correct, post them here if you could so I can have a gander at them
timpaxton Posted January 6, 2012 Author Posted January 6, 2012 ok, that error has something to do you your Accepted File Types, double check they are correct, post them here if you could so I can have a gander at them Hi again Nick. I've fixed the extension problem by doing Like has been done further down for the .eot file type. It's not fixed my MyFiles problem though, still the same error as before.
nickbro Posted January 6, 2012 Posted January 6, 2012 Can you paste your file types section of the hapconfig.xml file
nickbro Posted January 6, 2012 Posted January 6, 2012 Sorry, I meant the filters section from the hapconfig.xml file
timpaxton Posted January 6, 2012 Author Posted January 6, 2012 My apologies, I mis-read that. Here you go:
nickbro Posted January 6, 2012 Posted January 6, 2012 Can you remove the extra semi-colons that have appeared in the publisher, and powerpoint expressions. Do a CTRL+H for ;" Replace it with " 1
timpaxton Posted January 6, 2012 Author Posted January 6, 2012 That's it, I've got a problem with my quotaserver config now, but I'm not getting the exception any more. Thanks!
nickbro Posted January 6, 2012 Posted January 6, 2012 Few, I'll have to look at the setup page and try and find why it's putting those extra semi-colons in
timpaxton Posted January 6, 2012 Author Posted January 6, 2012 I manually hacked that Nick, so don't worry, your setup page is probably fine, I'm just not a very elegant hacker
timpaxton Posted January 10, 2012 Author Posted January 10, 2012 Hi @nickbro I've not got any quota servers set up, but accessing the MyFiles preview, I'm getting an error attached about unable to contact the quota server. Any ideas? I note that my hapconfig.xml section has a "usagemode" for each of my drives, which states "quota". Is that wrong? Cheers, Tim.
timpaxton Posted January 11, 2012 Author Posted January 11, 2012 I note that my hapconfig.xml section has a "usagemode" for each of my drives, which states "quota". Is that wrong? . To answer my own question, yes, it is. It should be "DriveSpace", although I don't think the HAP+ config page is saving these correctly, they're always set to "Quota" via the UI for me at least.
KayDubYa Posted January 12, 2012 Posted January 12, 2012 Greetings Nick, I am recieving the following two errors in my event log and I am unable to load the Preview pages. Any help would be appreciated. This is a clean install of the latest 7.9 on IIS 7.5. An error occurred in Home Access Plus+ Page: /hap/api/js An error occurred in Home Access Plus+ Page: /hap/MyFiles/ Message Exception of type 'System.Web.HttpUnhandledException' was thrown. Source System.Web Target site Boolean HandleError(System.Exception) Stack trace at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.myfiles_default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\hap\55cd546f\70e6ba5a\App_Web_0islwtrm.1.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ToString() System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentOutOfRangeException: The string homeaccessplus cannot be found ---> System.NullReferenceException: Object reference not set to an instance of an object. at HAP.Web.Configuration.hapConfig.get_Local() at HAP.Web.Controls.LocalResource.get__doc() at HAP.Web.Controls.LocalResource.Render(HtmlTextWriter writer) --- End of inner exception stack trace --- at HAP.Web.Controls.LocalResource.Render(HtmlTextWriter writer) at ASP.myfiles_default_aspx.__Render__control3(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\hap\55cd546f\70e6ba5a\App_Web_0islwtrm.1.cs:line 0 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.myfiles_default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\hap\55cd546f\70e6ba5a\App_Web_0islwtrm.1.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)Message The string homeaccessplus cannot be found Source HAP.Web Target site Void Render(System.Web.UI.HtmlTextWriter) Stack trace at HAP.Web.Controls.LocalResource.Render(HtmlTextWriter writer) at ASP.myfiles_default_aspx.__Render__control3(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\hap\55cd546f\70e6ba5a\App_Web_0islwtrm.1.cs:line 0 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ToString() System.ArgumentOutOfRangeException: The string homeaccessplus cannot be found ---> System.NullReferenceException: Object reference not set to an instance of an object. at HAP.Web.Configuration.hapConfig.get_Local() at HAP.Web.Controls.LocalResource.get__doc() at HAP.Web.Controls.LocalResource.Render(HtmlTextWriter writer) --- End of inner exception stack trace --- at HAP.Web.Controls.LocalResource.Render(HtmlTextWriter writer) at ASP.myfiles_default_aspx.__Render__control3(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\hap\55cd546f\70e6ba5a\App_Web_0islwtrm.1.cs:line 0 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
nickbro Posted January 12, 2012 Posted January 12, 2012 Can you check you have the up-to-date app_localresources folder, and it contains the right information. Also check the hapconfig.xml file that local="en-gb" exists on the 2nd line
KayDubYa Posted January 12, 2012 Posted January 12, 2012 Thank you for the quick reply. I was missing the "local="en-gb" in the hapconfig.xml file. Everything is working perfect now.
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