title: Index and count must refer to a location within the string. Parameter name: count
body: <p>i'm getting mad with this error! The complete error is:</p>
  
  <pre><code>[ArgumentOutOfRangeException: Index and count must refer to a location within the string.
  Parameter name: count]
  System.String.RemoveInternal(Int32 startIndex, Int32 count) +0
  System.String.Remove(Int32 startIndex, Int32 count) +22
  Digi_Proveedores.SiteMaster.Page_Load(Object sender, EventArgs e) in C:\Users\User\documents\visual studio 2010\Projects\INV\Digi_Proveedores\Digi_Proveedores\Site.Master.cs:16
  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
  System.Web.UI.Control.OnLoad(EventArgs e) +91
  System.Web.UI.Control.LoadRecursive() +74
  System.Web.UI.Control.LoadRecursive() +146
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
  </code></pre>
  
  <p>The code of the Digi_Proveedores.SiteMaster.Page_Load is:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
      {
          string Usuario;
          Usuario = Request.ServerVariables["LOGON_USER"];
          Usuario = Usuario.Remove(0, 13);
          DBConnection Mov = new DBConnection();
          lbl_User.Text = Mov.ConsultaUsuario(Usuario);
      }
  </code></pre>
  
  <p>When i excecute the code in my local pc it's works fine, the problem is at the ISS7.</p>
  
  <p>I can't understand how can i solve the error. If anyone can help i'd be really grateful.</p>
  
  <p>Thanks!.</p>