Solved

Index and length must refer to a location within the string. Parameter name: length

Posted on 2014-02-14
2
1,009 Views
Last Modified: 2014-03-11
Hi experts,
I am trying to figure out an old survey website that sends mass email to end users tu submit a survey

I am guessing the database generates itself some kind of webId.
I entered a test user to see if i can receive a generated webid generated in a link but it didn't generate.
 
Any sugggestion on how are such fields generated.

here is how the data looks on the database, so i guess, it is generated automatically somehow.

uJbjjJdQ6UnmENZgluvHL78gU

I tried to send an email to myself without a generated webID and this is the error i received.


Exception Details: System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length

+ webid.Substring(0, 4)
0
Comment
Question by:shpresa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Assisted Solution

by:Surendra Nath
Surendra Nath earned 250 total points
ID: 39860138
there are various ways these random ID numbers are generated...

but one of the most common way is to use GUID....
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 250 total points
ID: 39864252
The fact your code appears to be trying to retrieve the first 4 characters of the webid might suggest it isn't a simple GUID, but rather some encoded information. I would guess the id is being generated in your code somewhere.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question