• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1131
  • Last Modified:

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

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
shpresa
Asked:
shpresa
2 Solutions
 
Surendra NathTechnology LeadCommented:
there are various ways these random ID numbers are generated...

but one of the most common way is to use GUID....
0
 
Carl TawnSystems and Integration DeveloperCommented:
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

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now