[Mono-list] Re: Problem with SqlClient

Derek Hamilton derek@capweb.com
Thu, 7 Nov 2002 11:19:13 -0800


Hi,

Couldn't this exception be generated by using the SSPI connection strings?

Just a thought,
Derek Hamilton


> > On Thu, 2002-11-07 at 15:01, Adriaan van Wyk wrote:
> > > Hi
> > >
> > > I am trying to use the System.Data class from the
> > > mono-06-Nov-02\mono\runtime directory of your nightly build (6 Nov
> > > 2002). When I try to create a new SqlConnection with my connection
> > > string I get a System.Security.SecurityException unhandled security
> > > exception.
> > >
> > > Am I doing something wrong or is there another way to use the
> > > SqlClient class in system.data?
> > >
> > > I would appreciate your help.
> > >
> > > Kind regards,
> > > Adriaan van Wyk
> > --
> > Rodrigo Moya <rodrigo@ximian.com>
>
> Hi,
>
> Could you post a code example?
>
> I assume you're doing something like
>
> SqlConnection connection = new SqlConnection ("User
ID=a;Password=b;Server=c;Database=d");
>
> Does that throw the exception you are talking about?
>
> Also, if you could, please post the entirety of the exception trace.
> Actually, the command you use to compile it wouldn't hurt either.
> I have not seen this happen before.  In fact, as far as I know, there
> is nowhere in the System.Data code where a SecurityException would be
> thrown.
>
> It is possible, though, that it is calling some other code that throws
> that exception.
>
> Thanks,