[Mono-list] Re: Problem with SqlClient

Tim Coleman tim@epenguin.org
Thu, 07 Nov 2002 10:35:28 -0500


> 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,

-- 
Tim Coleman <tim@timcoleman.com>                       [43.43 N 80.45 W]
BMath, Honours Combinatorics and Optimization, University of Waterloo
Software Developer, Global Services, Open Text Corporation
"Under capitalism, man exploits man.  Under communism, it's just the
 opposite." -- J.K. Galbraith