Hi, i have experience using OO programing and visual studio. But i spent 2 days trying to figure it out how to use this controls and i give up. I need some help.
Im starting a project using visual basic .net 2005 and postgreSQL. Ive installed PostgreSQLDirect .NET succesfully and everything is running fine.
1.- In my solution first form i have a login panel. Where the user have to imput login and password for start the solution. Ok. I need to do a simple query to the database in order to verify the login and password and im not able to figure out wich control is needed. Im pretty confused with all the controls here.
Can anyone give to me a simple explanation of how i can execute the query and the compare the values with the textboxes in my form?
Heavy problems starting (Beginner)
-
- Posts: 4
- Joined: Mon 02 Jun 2008 22:41
- Location: Caracas - Venezuela
-
- Posts: 4
- Joined: Mon 02 Jun 2008 22:41
- Location: Caracas - Venezuela
Wel after trying a lot. I do this:
When i press the play button under visual studio i get the app runing and shows the data in the desired texbox, great.
BUT in the lower part of the screen (inmediate window of visual studio 2005) i get some messages like:
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.PostgreSql.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
Why this messages?
Code: Select all
Private Sub Login_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim dataReader As PgSqlDataReader = Nothing
Me.PgSqlConnection1.Open()
dataReader = Me.PgSqlCommand1.ExecuteReader
If (dataReader.FieldCount > 0) Then
dataReader.Read()
Me.TextBoxUsername.Text = dataReader.GetValue(0)
Else
Me.TextBoxUsername.Text = "NO DATA"
End If
dataReader.Close()
End Sub
BUT in the lower part of the screen (inmediate window of visual studio 2005) i get some messages like:
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.PostgreSql.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.InvalidOperationException' occurred in CoreLab.Data.dll
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
Why this messages?
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
Hello,
First of all please take some time and look through product samples.
You can find them in Start menu: “Core Lab PostgreSQLDirect for .NET2” -> Samples.
If I'm correct you you are building a Web application, thus I suggesting to see the Web samples first.
Next, you probably would like to use ASP.NET features like memberships, roles, profiles, etc.
It's really easy with PostgreSQLDirect .NET. You will find an example in the Web folder.
Hope this helps.
Regards,
Alexey.
First of all please take some time and look through product samples.
You can find them in Start menu: “Core Lab PostgreSQLDirect for .NET2” -> Samples.
If I'm correct you you are building a Web application, thus I suggesting to see the Web samples first.
Next, you probably would like to use ASP.NET features like memberships, roles, profiles, etc.
It's really easy with PostgreSQLDirect .NET. You will find an example in the Web folder.
Hope this helps.
Regards,
Alexey.
-
- Posts: 4
- Joined: Mon 02 Jun 2008 22:41
- Location: Caracas - Venezuela
Hi, well i solve the problem. It is a visual studio problem. This error messages are some type of log and does not reflect if there exist some errors in the present execution of the software.
Supose you run VS and get one error, later no matter if you fix the error this messages will appears until you restarts visual studio.
Im developing a visual basic .NET app. Not using ASP at all.
Supose you run VS and get one error, later no matter if you fix the error this messages will appears until you restarts visual studio.
Im developing a visual basic .NET app. Not using ASP at all.
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24