none
Wiederherstellung eines Projektes bzw. Fehler Rückgängig machen RRS feed

  • Frage

  • Hallo zusammen,

    ich habe gestern den ganzen Tag über programmiert ca. 12 Stunden lang.

    Dabei habe ich weder den PC noch mein VS2008 SP1 beendet.

    Ich programmiere gerade eine Anwendung in C# WinForms, dann kam plötzlich eine Fehlermeldung.

    Designer konnte nicht erstellt werden, Speicher voll.

    Darauf hin habe ich nur gesehen, dass der automatisch generierte Code des Designers auf einmal in der WinForm stand, diesen hab ich ganz spontan auskommentiert, da ich mich gewundert habe warum dieser dort steht.

    Debugging gestartet, funzte aber net. (wird ja autom. gespeichert)

    Somit habe ich VS2008 und den PC heruntergefahren und Neu gestartet.

    Jetzt habe ich zwar noch den programmierten Teil der Form.cs

    Aber der Code des Designers ist leer und es erscheint nur noch das Standard Fester wenn man eine neue Form anlegt.

    Ist es möglich das Projekt wiederherzustellen? Bzw. den Fehler Rückgängig zu machen auf den Stand von gestern Abend?

    Für eure Hilfe bin ich echt dankbar, sonst wäre gestern für mich ein verlorener Tag.

    Ciao Stefan

    Mittwoch, 2. Januar 2013 09:19

Antworten

  • Als ich gestern Abend noch, die exe-Datei verwendet habe, konnte ich mir den gesunden Stand der Oberfläche noch ansehen.

    Gäb es hier rüber vlt. eine Möglichkeit noch dran zu kommen?

    Wenn Du noch eine funktioniertende EXE hast, dann kannst Du dotPeek verwenden um den "Source" zu erhalten.


    Jochen Kalmbach (MVP VC++)
    • Als Antwort markiert hk_1000 Mittwoch, 2. Januar 2013 21:22
    Mittwoch, 2. Januar 2013 13:57

Alle Antworten

  • Wenn Du keine Sicherung hast, dann geht es wohl nicht.


    Jochen Kalmbach (MVP VC++)
    Mittwoch, 2. Januar 2013 09:25
  • Also meine AutoWiederherstellung steht auf alle 5Min.

    Aber wie kann ich die manuell aufrufen und die Datei zurück setzen?

    Mittwoch, 2. Januar 2013 09:29
  • Das funktioniert nur, wenn VS abstürzt. Wenn Du es gespeichert und beendet hast, ist ja keine Wiederherstellung nötig.


    Jochen Kalmbach (MVP VC++)
    Mittwoch, 2. Januar 2013 09:43
  • Wie sieht es mit einer Windows wiederherstellung aus?

    Wäre das möglich??

    Mittwoch, 2. Januar 2013 09:51
  • Komischer Weise befindent sich im Designer der Form, dennoch alle Elemente welche ich für die Oberfläche verwendet habe.

    Es fehlt halt der automatisch generierte Code von Windows mit seiner Method:

    private void InitializeComponent()

    {

    ....

    }

    namespace CoDiC
    {
        partial class frmAuftragswesen
        {
            private System.Windows.Forms.Button button30;
            private System.Windows.Forms.ImageList imageList1;
            private System.ComponentModel.IContainer components;
            private System.Windows.Forms.Button button31;
            private System.Windows.Forms.Button button32;
            private System.Windows.Forms.Button button1;
            private System.Windows.Forms.Button button2;
            private System.Windows.Forms.CheckBox checkBox1;
            private System.Windows.Forms.GroupBox groupBox12;
            private System.Windows.Forms.ComboBox comboBox9;
            private System.Windows.Forms.Label label90;
            private System.Windows.Forms.TextBox textBox37;
            private System.Windows.Forms.TextBox textBox43;
            private System.Windows.Forms.Label label10;
            private System.Windows.Forms.Label label21;
            private System.Windows.Forms.Label label60;
            private System.Windows.Forms.TextBox textBox53;
            private System.Windows.Forms.TextBox textBox54;
            private System.Windows.Forms.TextBox textBox55;
            private System.Windows.Forms.TextBox textBox67;
            private System.Windows.Forms.GroupBox groupBox13;
            private System.Windows.Forms.Label label93;
            private System.Windows.Forms.ComboBox comboBox11;
            private System.Windows.Forms.TextBox textBox39;
            private System.Windows.Forms.Label label81;
            private System.Windows.Forms.Label label82;
            private System.Windows.Forms.Label label83;
            private System.Windows.Forms.TextBox textBox3;
            private System.Windows.Forms.TextBox textBox4;
            private System.Windows.Forms.TextBox textBox5;
            private System.Windows.Forms.TextBox textBox6;
            private System.Windows.Forms.TextBox textBox15;
            private System.Windows.Forms.Label label19;
            private System.Windows.Forms.BindingNavigator bindingNavigator1;
            private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
            private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
            private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
            private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
            private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
            private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
            private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
            private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
            private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
            private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
            private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
            private System.Windows.Forms.DateTimePicker dateTimePicker1;
            private System.Windows.Forms.Label label1;
            private System.Windows.Forms.GroupBox groupBox6;
            private System.Windows.Forms.Button button3;
            private System.Windows.Forms.ImageList imageList2;
            private System.Windows.Forms.DataGridView dGV_Anhang;
            private System.Windows.Forms.DataGridViewTextBoxColumn ZusammenfassungsID;
            private System.Windows.Forms.Button btn_K_Anhang;
            private System.Windows.Forms.Label label2;
            private System.Windows.Forms.DateTimePicker dateTimePicker2;
            private System.Windows.Forms.CheckBox checkBox2;
            private System.Windows.Forms.RichTextBox richTextBox1;
            private System.Windows.Forms.Label label3;
            private System.Windows.Forms.GroupBox groupBox1;
            private CoDiCDataSet coDiCDataSet;
            private System.Windows.Forms.Label label4;
            private System.Windows.Forms.DateTimePicker dateTimePicker3;
            private System.Windows.Forms.Label label5;
            private System.Windows.Forms.GroupBox groupBox2;
            private System.Windows.Forms.DataGridView dataGridView2;
            private System.Windows.Forms.GroupBox groupBox3;
            private System.Windows.Forms.DataGridView dataGridView3;
            private System.Windows.Forms.DataGridViewComboBoxColumn Bezeichnung;
            private System.Windows.Forms.DataGridViewTextBoxColumn Menge;
            private System.Windows.Forms.DataGridViewTextBoxColumn Preis;
            private System.Windows.Forms.BindingSource tblMaterialBindingSource;
    
            #region Windows Form Designer generated code
    
    
            #endregion
    
            private CoDiC.CoDiCDataSetTableAdapters.tbl_MaterialTableAdapter tbl_MaterialTableAdapter;
            private System.Windows.Forms.DataGridView dataGridView4;
            private System.Windows.Forms.BindingSource vwMatverbrBindingSource;
            private CoDiC.CoDiCDataSetTableAdapters.Vw_MatverbrTableAdapter vw_MatverbrTableAdapter;
            private System.Windows.Forms.DataGridViewTextBoxColumn datumDataGridViewTextBoxColumn2;
            private System.Windows.Forms.DataGridViewTextBoxColumn materialbezDataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewComboBoxColumn Column1;
            private System.Windows.Forms.DataGridViewTextBoxColumn mengeDataGridViewTextBoxColumn1;
            private System.Windows.Forms.DataGridViewTextBoxColumn AuftragsID;
            private CoDiC.CoDiCDataSetTableAdapters.tbl_MaterialverbrauchTableAdapter tbl_MaterialverbrauchTableAdapter;
            private System.Windows.Forms.TextBox textBox8;
            private System.Windows.Forms.TextBox textBox7;
            private System.Windows.Forms.TextBox textBox2;
            private System.Windows.Forms.TextBox textBox1;
            private System.Windows.Forms.DateTimePicker dateTimePicker4;
            private System.Windows.Forms.ComboBox comboBox1;
            private System.Windows.Forms.TextBox textBox9;
            private System.Windows.Forms.TextBox textBox10;
            private System.Windows.Forms.BindingSource tblMitarbeiterBindingSource;
            private CoDiC.CoDiCDataSetTableAdapters.tbl_MitarbeiterTableAdapter tbl_MitarbeiterTableAdapter;
            private System.Windows.Forms.Label label8;
            private System.Windows.Forms.Label label7;
            private System.Windows.Forms.Label label6;
            private System.Windows.Forms.Label label9;
            private System.Windows.Forms.Label label11;
            private System.Windows.Forms.Label label12;
            private System.Windows.Forms.Label label13;
            private System.Windows.Forms.Label label14;
            private System.Windows.Forms.Button button4;
            private System.Windows.Forms.BindingSource vwAuftragsstundenBindingSource;
            private CoDiC.CoDiCDataSetTableAdapters.Vw_AuftragsstundenTableAdapter vw_AuftragsstundenTableAdapter;
            private System.Windows.Forms.Label label23;
            private System.Windows.Forms.Label label22;
            private System.Windows.Forms.Label label20;
            private System.Windows.Forms.Label label18;
            private System.Windows.Forms.Label label17;
            private System.Windows.Forms.Label label16;
            private System.Windows.Forms.Label label15;
            private System.Windows.Forms.DataGridViewTextBoxColumn auftragsIDDataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn mitarbeiterIDDataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn GanzerName;
            private System.Windows.Forms.DataGridViewTextBoxColumn datumDataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn arbeitsstundenDataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn baggerstundenDataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn lKWstundenDataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn dumperstundenDataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn radladerstundenDataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn kompressorDataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn maschine1DataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn maschine2DataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn maschine3DataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn maschine4DataGridViewTextBoxColumn;
            private System.Windows.Forms.DataGridViewTextBoxColumn maschine5DataGridViewTextBoxColumn;
        }
    }

    Als ich gestern Abend noch, die exe-Datei verwendet habe, konnte ich mir den gesunden Stand der Oberfläche noch ansehen.

    Gäb es hier rüber vlt. eine Möglichkeit noch dran zu kommen?

    Ciao Stefan

    Mittwoch, 2. Januar 2013 13:32
  • Als ich gestern Abend noch, die exe-Datei verwendet habe, konnte ich mir den gesunden Stand der Oberfläche noch ansehen.

    Gäb es hier rüber vlt. eine Möglichkeit noch dran zu kommen?

    Wenn Du noch eine funktioniertende EXE hast, dann kannst Du dotPeek verwenden um den "Source" zu erhalten.


    Jochen Kalmbach (MVP VC++)
    • Als Antwort markiert hk_1000 Mittwoch, 2. Januar 2013 21:22
    Mittwoch, 2. Januar 2013 13:57
  • Danke, dann werde ich das mal probieren.

    Mittwoch, 2. Januar 2013 21:22
  • Komisch, die .exe-Datei finde ich nicht mehr, und wenn ich das Projekt neu Compiliere, dann ist der alte Stand überschrieben. Wisst Ihr, wie ich an meine alte exe-ran kommen kann?.

    Freitag, 4. Januar 2013 09:56