Getting an error when trying to connect using the SqlConnection
I am getting the following error when write out this line of code.
Imports System.DataImports System.Data.SqlClient Dim conStr As String = "SERVER=LMI167\DBTEST;Database =ORKA Test; trusted_connection= yes" Dim objcon As New SqlConnection(conStr)
Reference required to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes' containing the base class 'System.ComponentModel.Component'. Add one to your project.
Visual Basic.NET
Last Comment
cmdolcet
8/22/2022 - Mon
ste5an
Check your projects properties first:
When you need .NET 2.0 as destination target, then you need to select it there.
When you need .NET 2.0 as destination target, then you need to select it there.