title: Invalid object name error when trying to execute stored procedure?
body: <p>Not sure what the deal is I have the stored procedure named exactly what I am calling however it always gives me this invalid object error. Here is the connection code, the error is thrown on the second to last line there.</p>
  
  <pre><code>SqlConnection cnstr = new SqlConnection(ConfigurationManager.ConnectionStrings["darconn"].ConnectionString);
  SqlCommand sqlcmd = new SqlCommand();
  
  sqlcmd.CommandType = CommandType.StoredProcedure;
  sqlcmd.Connection = cnstr;
  sqlcmd.CommandText = "SetMapping";
  
  String[] pullKodID = bundlelist.SelectedValue.ToString().Split(':');
  int kod_id = System.Convert.ToInt32(pullKodID[0]);
  
  sqlcmd.Parameters.Add("@kod_id", kod_id);
  sqlcmd.Parameters.Add("@ell_id", courselist.Items[i].Text);
  cnstr.Open();
  sqlcmd.ExecuteNonQuery();
  cnstr.Close();
  </code></pre>