There appears to be an issue when logging onto a protected page (fron-end not CMS). I get this error:
Server Error in '/' Application.
Length cannot be less than zero. Parameter name: length
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: Length cannot be less than zero. Parameter name: length
Source 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.
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?
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!
Error when logging on
There appears to be an issue when logging onto a protected page (fron-end not CMS). I get this error:
Server Error in '/' Application.
Length cannot be less than zero.
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.Parameter name: length
Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
Source 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.
Stack Trace:
Thanks Gordon, I'll look into this - try to get a quick fix for you.
Hi Gordon,
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?
Thanks, Lee.
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!
Thanks, Lee.
I downloaded the source but the "Microsoft.Web.Infrastructure" reference (referenced dll) is missing - where does it come from?
Hi Gordon,
If you've got WebMatrix installed (or ASP.NET Web Pages 1.0), then it should be under this path:
Otherwise I've just included the assembly in the source code repo.
Cheers, Lee.
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.
Cheers, Lee.
is working on a reply...