Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
There appears to be an issue when logging onto a protected page (fron-end not CMS). I get this error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
[ArgumentOutOfRangeException: Length cannot be less than zero.Parameter name: length] System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +9381627 Our.Umbraco.SafeMailLink.Filters.EncodeMailLink.Write(Byte buffer, Int32 offset, Int32 count) +858 System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr) +9155697 System.Web.HttpResponse.FilterOutput() +159 System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +52 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Thanks Gordon, I'll look into this - try to get a quick fix for you.
I've given this a test on my local dev - using both IIS 7.5 Express and full IIS 7.5 (app-pool in Integrated Mode).
My test site was quite simple, restricted public access for a single node for a single member-group. Logged in as the member (of that group), saw the page (with the correct mailto link).
I'd like to help get to the bottom of this error ... but not sure how much info you can give me about your website's set-up?
I am using a custom membership provider ... but I'm not sure if / how that could affect it?
I will try and find some time to debug the code.
Not sure how a custom membership provider would impact it. From looking at the exception message, the error is due to a string position check ... hmmm, not sure what it could be.
If you get chance to debug, let me know - we'll patch it up!
I downloaded the source but the "Microsoft.Web.Infrastructure" reference (referenced dll) is missing - where does it come from?
If you've got WebMatrix installed (or ASP.NET Web Pages 1.0), then it should be under this path:
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies
Otherwise I've just included the assembly in the source code repo.
As emailed directly, I have now fixed the problem :-)
Just released v1.0.1 of the package. Applied your fix. Let me know if you run into any other issues.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted