I was trying to create an application that connects to a database. But the methods of SqlConnection.Open()
, SqlConnection.State
and SqlConnection.Close()
are with errors all appear the message:
The type "Component" is defined in an assembly that is not referenced, you must add a reference to the assembly [...]