title: System.OverflowException: Value was either too large or too small for an Int16 in iis 6
body: <p>i have a login method writen in visual studio 2012. The code of the login is:</p>
  
  <pre><code>public DataSet Login(string UserName, string Password)
  {
      DataSet Message = new DataSet();
      Tbl_Users User = new Tbl_Users();
      string ClientIP = Context.Request.ServerVariables["REMOTE_ADDR"];
      DataSet result = User.Login(UserName, Password, ClientIP);
      if (Int16.Parse(result.Tables[0].Rows[0][0].ToString()) &lt; 0)
      {
          DataTable dt = Message.Tables.Add("results");
          dt.Columns.Add("status");
          dt.Columns.Add("results");
          DataRow row = dt.NewRow();
          row[0] = "-1";
          row[1] = ErrorFinder.SQlErrorHandeling(Int32.Parse(result.Tables[0].Rows[0][0].ToString()));
          dt.Rows.Add(row);
      }
      else
          Message = result;
      return Message;
  }
  </code></pre>
  
  <p>when i execute it in the visual studio, every thing is ok. but when i publish the website by visual studio and put it in the windows seven iis, i got this error:</p>
  
  <pre><code>System.OverflowException: Value was either too large or too small for an Int16.
  at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info)
  at Service.Login(String UserName, String Password)
  </code></pre>
  
  <p>i dont know what is wrong with the published website?</p>