?
Solved

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

Posted on 2014-02-14
2
Medium Priority
?
1,034 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 1000 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 1000 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
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.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Suggested Courses

752 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