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

前端 未结 1 1091
感动是毒
感动是毒 2021-01-23 04:19

i\'m getting mad with this error! The complete error is:

[ArgumentOutOfRangeException: Index and count must refer to a location within the string.
Parameter name         


        
相关标签:
1条回答
  • 2021-01-23 04:41

    You can't remove 13 characters from the string, containing less that 13; that is what error stated. What is the content of Usuario after the first assignemt?

        Usuario = Request.ServerVariables["LOGON_USER"];
        Usuario = Usuario.Remove(0, 13);
    
    0 讨论(0)
提交回复
热议问题