Hi,
I have DNN 4.9.3 installed. I lost access to few portals and got "Startindex cannot be less than zero" error after manipulations with URL styles in web.config (at least, I think so, but I am not sure).
Symptoms:
When I browse to portal full domain name like: http://www.audarma.kz - it gives Server application error, "Startindex cannot be less tan zero"!
When I accidently tried an old not humanfriendly url style link saved in Google Chrome like:
http://www.audarma.kz/ru/Контакты/tabid/85/Default.aspx - I successfully accessed the site and could login to the portal.
When I looked the logs, I saw lots of entries with the same error "Startindex cannot be less tan zero" (and the only parameter less than zero seemed to be UserID, which value was -1).
What I did before the error: I tried to make changes in web.config
a) to switch on HumanFriendly URLs (it worked for a couple of days), and
b) to use 404 redirect in CustomErrors section (it worked fine too, for acouple of days);
But all of a sudden one day I encountered errors:
- first I could not login to few portals (only one portal worked fine - the one with 404 redirect configured, the others just returned Default.aspx page when clicking login link; and it was not a misconfigured default login page issue, since I checked the DB and saw that the value was NULL...- that is it was not a common "lost login page" mistake with "OpenSesame.aspx" solution);
- later on, I restored the old web.config file to get rid of all my changes. It helped for a day only. After a day I again could not access the same portals.
Questions:
1) Is this problem because of URLs?
2) Is this problem because of "UserID: -1" value causing "Startindex cannot be less than zero" problem?
3) How can I fix the UserID value?
4) Any other ideas?
Please, help me, I lost few portals and have no idea how to get them working again.
Regards,
Alexander