Wİndows service start failure
===

hi i'm taking "Cannot start service from the command line or debugger. A winwows Service must first be installed(using installutik.exe) and then started with the ServerExplorer, Windows Services Afministrative tool or the NET START command."
and i dont undesrtand why im taking this error.
And here is mu code:`
              
         {
              string Hash = ""; 
              string connectionstring = ConfigurationManager.ConnectionStrings["myConnectionString"].ConnectionString;
              SqlConnection myConnection = new SqlConnection(connectionstring);
              SqlCommand myCommand = new SqlCommand("GetNullHash", myConnection);
              myCommand.CommandType = CommandType.StoredProcedure;
              myConnection.Open();
              SqlDataReader rdr = myCommand.ExecuteReader();
             
             while(rdr.Read())
             {
                 string filename = @"\\" + rdr.GetString(3);
                 filename = System.IO.Path.Combine(filename, rdr.GetString(2));
                 filename = System.IO.Path.Combine(filename, rdr.GetString(1));
                 Hash = rdr.GetString(0);
                 Hash = computeHash(filename);
                
             }
             myConnection.Close();
                return Hash;
         }

    }`