Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationError ... StartIndex cannot be less than zero. Parameter name: startIndexError ... StartIndex cannot be less than zero. Parameter name: startIndex
Previous
 
Next
New Post
3/3/2006 1:10 PM
 

I had posted this message on the forum:

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/89/threadid/20097/scope/posts/Default.aspx

Oddly, I haven't done a thing about this until today when I decided to try and work on it again.  However, it worked.  I haven't changed a thing, and now its working, as long as I provide a legitimate user id and password.  Hmm, makes me nervous about moving forward with rolling this out on the intranet.

But, I am getting an error message if the authentication fails.  If I enter a legitimate user id with the wrong password, or an invalid user id with a password, I get the following error message:

A critical error has occurred.
StartIndex cannot be less than zero. Parameter name: startIndex


Interestingly, this is the same error message I was getting that I referenced in the post above.  However, in my post above, the error caused an ASP.NET level exception and I got the stack dump along with the error message.  This time, something is apparently catching the exception and displaying it on the page.  In the post above, I saw no sign of DNN, just an error page with the excetpion and stack dump.  In this scenario, I get the DNN skin with page rendered just fine, but with the error message displayed in one of the panes.

Can anyone help me resolve this?  I can't roll this out if the user gets an exception when they enter their password wrong.

Thanks.

 
New Post
3/3/2006 3:28 PM
 

Oops!!!  Ok, scratch this whole post.  It turns out that I didn't have AD turned on in the web.config file today.  Now that I turned it back on, I am back to the error that mysteriously disappeared.  Actually, I am glad that is the case, but now if I can get that original problem solved I reported in the post at the link I referenced above.

Thanks.

 
New Post
3/3/2006 6:00 PM
 

Ok, if you see this message, go here to read the solution:

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/89/threadid/20097/scope/posts/Default.aspx

It turns out my admin user's email address was wrong and did not contain at @ sign.

This problem manifests itself one way if AD is turned on and a different way if AD is turned off.

 
New Post
7/16/2007 8:49 PM
 

I had the same error ' StartIndex cannot be less than zero. Parameter name: startIndex' but mine was not to do with user email address or any other authentication.

I traced the error to the 'EdtiSkins.ascx.vb' file, on line 292 (4.5.1 release), where it was doing the following:

strURL = strFile.Substring(strFile.LastIndexOf(

"\portals\"))

I then looked at where my portal subdirectory had been created (I overwrite the default portals\1 setting for a child portal) and it had created it at the website root level, so dotnetnuke\myPortal rather than dotnetnuke\portals\myPortal.  The hardcoded search for the 'portals' subdirectory call above then failed.  I manually updated the portals record with the correct subdirectory, restarted my website and it worked OK.  A trap for young players trying to override the default portals folder location.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationError ... StartIndex cannot be less than zero. Parameter name: startIndexError ... StartIndex cannot be less than zero. Parameter name: startIndex


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out