Jump to content
zitech21

VB.NET The system cannot find the file specified.

Recommended Posts

Posted

Erroare:

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in System.Windows.Forms.dll

Additional information: Could not load file or assembly 'TCtrl Connection, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Source:

Imports Admin_Tool_4s
Public Class Form2
Dim TCTRLCon As Connection

Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
TCTRLCon.Kick(TextBox1.Text)
End Sub

Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
TCTRLCon = New Connection("#", #)
TCTRLCon.Connect()
TCTRLCon.Login("#", "#")
End Sub

Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged

End Sub
End Class

kpDCh.png

Cand deschid form2.vb primesc eroare asta...

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in System.Windows.Forms.dll

Additional information: Could not load file or assembly 'TCtrl Connection, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Posted

Adauga-l si in directorul radacina al proiectului si, de asemenea, in directorul Release. Altfel, ai putea crea o variabila system care sa includa calea catre acel fisier si ulterior sa o incluzi in directorul libraries din cadrul proiectului.

Posted

Exista modalitati simple de a gestiona unhandled exceptions in VB.

Adaugi cateva linii de cod si vei vedea exact ce anume genereaza exceptia netratata.

Cauta pe Google si vei gasi rapid.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...