Are you using SSL by chance? Or are you sure you are passing the username
and password properly? Just a couple ideas. I haven't come across that error

On Wed, Apr 16, 2008 at 4:54 PM, Bob Cagle <bcagle@xxxxxxxxxxx> wrote:

OK, I have a test program that uses all 3 methodologies –
IBM.DTA.DB2.iSeries, OleDB, and ODBC. On the OleDB and ODBC connections, I
keep getting the following error:

A first chance exception of type 'System.Security.SecurityException'
occurred in System.Data.dll

The error occurs at the datatable fill statement in both cases.
Obviously, I'll be using the IBM.DTA provider, since that's what works now.
But I'm curious why I'm getting this error and how to resolve it.

Anyone have any ideas?



*From:* systemidotnet-bounces@xxxxxxxxxxxx [mailto:
systemidotnet-bounces@xxxxxxxxxxxx] *On Behalf Of *Elvis Budimlic
*Sent:* Wednesday, April 16, 2008 10:58 AM
*To:* '.net use with the System i'
*Subject:* Re: [SystemiDotNet] Beginning VB.Net project

I am also just learning the .NET. I'm using C# so far, but all .NET
languages are very much alike nowadays.

IBM advises using IBM.Data.DB2.iSeries provider for our beloved IBM i, so
that's what I've been using in my learning projects. It has worked well so

I am using DataGridView component for this experimentation. That also is
working well so far.

I don't think there's anything wrong with using OleDb or ODBC providers.
The only thing is that they're unmanaged code so it sort of goes against
the general .NET philosophy. Since I'm in the academic phase yet, I wanted
to remain in the managed code. When I get to the "real" stuff, who knows.

HTH, Elvis

Celebrating 11-Years of SQL Performance Excellence on IBM i5/OS and OS/400


*From:* systemidotnet-bounces@xxxxxxxxxxxx [mailto:
systemidotnet-bounces@xxxxxxxxxxxx] *On Behalf Of *Bob Cagle
*Sent:* Wednesday, April 16, 2008 10:11 AM
*To:* systemidotnet@xxxxxxxxxxxx
*Subject:* [SystemiDotNet] Beginning VB.Net project

I am fairly new to VB.NET. I have a simple project that I'm working on to
get my feet wet. I have the data stored on my i5. This will be a simple
file maintenance app – add/delete/edit records, etc.

I know there are several ways to connect to a database. But, in your
opinion, what's the best way to connect to the i5 to pull data into your
VB.NET app? And why?

Bob Cagle

This is the .net use with the System i (SystemiDotNet) mailing list
To post a message email: SystemiDotNet@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: SystemiDotNet-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page