Framework.cs error!

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

Error description: