Moin!
beim Einbinden einer Instanz eines Dialoges bekomme ich folgende Fehlermeldung:
Mit dem Begriff der fehlenden "CategoryName" kann ich nichts anfangen.
Besonders nachdem ich auch in die Designer-Datei geschaut habe.
Spoiler anzeigen
Kann mir jemand weiterhelfen?
Der Dialog sieht wie folgt aus:
Gruß Jan
beim Einbinden einer Instanz eines Dialoges bekomme ich folgende Fehlermeldung:
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.
************** Ausnahmetext **************
System.InvalidOperationException: Fehler bei der Initialisierung. CategoryName ist nicht vorhanden.
bei System.Diagnostics.PerformanceCounter.InitializeImpl()
bei System.Diagnostics.PerformanceCounter.EndInit()
bei EBL.MapEdit.DLG_CreateTeilstrom_Status.InitializeComponent() in C:\VSProjects\EBL.MapEdit_Dev\EBL.MapEdit_Dev\EBL.MapEdit_Dev\DLG_CreateTeilstrom_Status.Designer.vb:Zeile 133.
bei EBL.MapEdit.DLG_CreateTeilstrom_Status..ctor(Boolean flagCreateDs, Boolean flagCreateGeom, Boolean flagCreateFolder, String sFid, String TsNummer) in C:\VSProjects\EBL.MapEdit_Dev\EBL.MapEdit_Dev\EBL.MapEdit_Dev\DLG_CreateTeilstrom_Status.vb:Zeile 14.
bei EBL.MapEdit.DLG_CreateTeilstrom.CreateTeilstromDataRecord(String sFidWE, Int64 FID_Bearbeiter, String Bezeichnung, Int32 ID_Branche, String Bereich, Int32 ArtEinleitung, Int32 ID_Verordnung, Int32 Paragraph48, List`1 Geometrie, String Bemerkung) in C:\VSProjects\EBL.MapEdit_Dev\EBL.MapEdit_Dev\EBL.MapEdit_Dev\DLG_CreateTeilstrom.vb:Zeile 427.
bei EBL.MapEdit.DLG_CreateTeilstrom.Bt_create_Click(Object sender, EventArgs e) in C:\VSProjects\EBL.MapEdit_Dev\EBL.MapEdit_Dev\EBL.MapEdit_Dev\DLG_CreateTeilstrom.vb:Zeile 259.
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
Mit dem Begriff der fehlenden "CategoryName" kann ich nichts anfangen.
Besonders nachdem ich auch in die Designer-Datei geschaut habe.
VB.NET-Quellcode
- [b][/b]<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
- Partial Class DLG_CreateTeilstrom_Status
- Inherits System.Windows.Forms.Form
- 'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
- <System.Diagnostics.DebuggerNonUserCode()> _
- Protected Overrides Sub Dispose(ByVal disposing As Boolean)
- Try
- If disposing AndAlso components IsNot Nothing Then
- components.Dispose()
- End If
- Finally
- MyBase.Dispose(disposing)
- End Try
- End Sub
- 'Wird vom Windows Form-Designer benötigt.
- Private components As System.ComponentModel.IContainer
- 'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
- 'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
- 'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
- <System.Diagnostics.DebuggerStepThrough()> _
- Private Sub InitializeComponent()
- Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(DLG_CreateTeilstrom_Status))
- Me.bt_go = New System.Windows.Forms.Button()
- Me.lbl_Status_Ds = New System.Windows.Forms.Label()
- Me.pb_Status_Ds = New System.Windows.Forms.PictureBox()
- Me.PerformanceCounter1 = New System.Diagnostics.PerformanceCounter()
- Me.pb_Status_Geometrie = New System.Windows.Forms.PictureBox()
- Me.pb_Status_Verzeichnisstruktur = New System.Windows.Forms.PictureBox()
- Me.lbl_Status_Geometrie = New System.Windows.Forms.Label()
- Me.lbl_Status_VerzeichnisStruktur = New System.Windows.Forms.Label()
- Me.lbl_TsNummer = New System.Windows.Forms.Label()
- CType(Me.pb_Status_Ds, System.ComponentModel.ISupportInitialize).BeginInit()
- CType(Me.PerformanceCounter1, System.ComponentModel.ISupportInitialize).BeginInit()
- CType(Me.pb_Status_Geometrie, System.ComponentModel.ISupportInitialize).BeginInit()
- CType(Me.pb_Status_Verzeichnisstruktur, System.ComponentModel.ISupportInitialize).BeginInit()
- Me.SuspendLayout()
- '
- 'bt_go
- '
- Me.bt_go.Location = New System.Drawing.Point(96, 191)
- Me.bt_go.Name = "bt_go"
- Me.bt_go.Size = New System.Drawing.Size(75, 23)
- Me.bt_go.TabIndex = 11
- Me.bt_go.Text = "OK"
- Me.bt_go.UseVisualStyleBackColor = True
- '
- 'lbl_Status_Ds
- '
- Me.lbl_Status_Ds.AutoSize = True
- Me.lbl_Status_Ds.Location = New System.Drawing.Point(106, 51)
- Me.lbl_Status_Ds.Name = "lbl_Status_Ds"
- Me.lbl_Status_Ds.Size = New System.Drawing.Size(55, 13)
- Me.lbl_Status_Ds.TabIndex = 12
- Me.lbl_Status_Ds.Text = "Datensatz"
- '
- 'pb_Status_Ds
- '
- Me.pb_Status_Ds.Image = Global.EBL.MapEdit.My.Resources.Resources.pic_Leeren
- Me.pb_Status_Ds.Location = New System.Drawing.Point(55, 51)
- Me.pb_Status_Ds.Name = "pb_Status_Ds"
- Me.pb_Status_Ds.Size = New System.Drawing.Size(26, 22)
- Me.pb_Status_Ds.TabIndex = 13
- Me.pb_Status_Ds.TabStop = False
- '
- 'pb_Status_Geometrie
- '
- Me.pb_Status_Geometrie.Image = Global.EBL.MapEdit.My.Resources.Resources.pic_Leeren
- Me.pb_Status_Geometrie.Location = New System.Drawing.Point(55, 91)
- Me.pb_Status_Geometrie.Name = "pb_Status_Geometrie"
- Me.pb_Status_Geometrie.Size = New System.Drawing.Size(26, 22)
- Me.pb_Status_Geometrie.TabIndex = 14
- Me.pb_Status_Geometrie.TabStop = False
- '
- 'pb_Status_Verzeichnisstruktur
- '
- Me.pb_Status_Verzeichnisstruktur.Image = Global.EBL.MapEdit.My.Resources.Resources.pic_Leeren
- Me.pb_Status_Verzeichnisstruktur.Location = New System.Drawing.Point(55, 136)
- Me.pb_Status_Verzeichnisstruktur.Name = "pb_Status_Verzeichnisstruktur"
- Me.pb_Status_Verzeichnisstruktur.Size = New System.Drawing.Size(26, 22)
- Me.pb_Status_Verzeichnisstruktur.TabIndex = 15
- Me.pb_Status_Verzeichnisstruktur.TabStop = False
- '
- 'lbl_Status_Geometrie
- '
- Me.lbl_Status_Geometrie.AutoSize = True
- Me.lbl_Status_Geometrie.Location = New System.Drawing.Point(106, 91)
- Me.lbl_Status_Geometrie.Name = "lbl_Status_Geometrie"
- Me.lbl_Status_Geometrie.Size = New System.Drawing.Size(100, 13)
- Me.lbl_Status_Geometrie.TabIndex = 16
- Me.lbl_Status_Geometrie.Text = "Teilstrom-Geometrie"
- '
- 'lbl_Status_VerzeichnisStruktur
- '
- Me.lbl_Status_VerzeichnisStruktur.AutoSize = True
- Me.lbl_Status_VerzeichnisStruktur.Location = New System.Drawing.Point(106, 136)
- Me.lbl_Status_VerzeichnisStruktur.Name = "lbl_Status_VerzeichnisStruktur"
- Me.lbl_Status_VerzeichnisStruktur.Size = New System.Drawing.Size(101, 13)
- Me.lbl_Status_VerzeichnisStruktur.TabIndex = 17
- Me.lbl_Status_VerzeichnisStruktur.Text = "Verzeichnis-Struktur"
- '
- 'lbl_TsNummer
- '
- Me.lbl_TsNummer.AutoSize = True
- Me.lbl_TsNummer.Location = New System.Drawing.Point(37, 20)
- Me.lbl_TsNummer.Name = "lbl_TsNummer"
- Me.lbl_TsNummer.Size = New System.Drawing.Size(200, 13)
- Me.lbl_TsNummer.TabIndex = 18
- Me.lbl_TsNummer.Text = "Teilstrom-Nummer wurde nicht vergeben!"
- '
- 'DLG_CreateTeilstrom_Status
- '
- Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
- Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
- Me.ClientSize = New System.Drawing.Size(269, 227)
- Me.Controls.Add(Me.lbl_TsNummer)
- Me.Controls.Add(Me.lbl_Status_VerzeichnisStruktur)
- Me.Controls.Add(Me.lbl_Status_Geometrie)
- Me.Controls.Add(Me.pb_Status_Verzeichnisstruktur)
- Me.Controls.Add(Me.pb_Status_Geometrie)
- Me.Controls.Add(Me.pb_Status_Ds)
- Me.Controls.Add(Me.lbl_Status_Ds)
- Me.Controls.Add(Me.bt_go)
- Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
- Me.MaximizeBox = False
- Me.MinimizeBox = False
- Me.Name = "DLG_CreateTeilstrom_Status"
- Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
- Me.Text = "Status zur Erstelleung eines Teilstromes"
- CType(Me.pb_Status_Ds, System.ComponentModel.ISupportInitialize).EndInit()
- CType(Me.PerformanceCounter1, System.ComponentModel.ISupportInitialize).EndInit()
- CType(Me.pb_Status_Geometrie, System.ComponentModel.ISupportInitialize).EndInit()
- CType(Me.pb_Status_Verzeichnisstruktur, System.ComponentModel.ISupportInitialize).EndInit()
- Me.ResumeLayout(False)
- Me.PerformLayout()
- End Sub
- Friend WithEvents bt_go As Windows.Forms.Button
- Friend WithEvents lbl_Status_Ds As Windows.Forms.Label
- Friend WithEvents pb_Status_Ds As Windows.Forms.PictureBox
- Friend WithEvents PerformanceCounter1 As PerformanceCounter
- Friend WithEvents pb_Status_Geometrie As Windows.Forms.PictureBox
- Friend WithEvents pb_Status_Verzeichnisstruktur As Windows.Forms.PictureBox
- Friend WithEvents lbl_Status_Geometrie As Windows.Forms.Label
- Friend WithEvents lbl_Status_VerzeichnisStruktur As Windows.Forms.Label
- Friend WithEvents lbl_TsNummer As Windows.Forms.Label
- End Class
Kann mir jemand weiterhelfen?
Der Dialog sieht wie folgt aus:
Gruß Jan