[IronPython] Code Access Security?

Neidhoo Xaphier xaphiern at googlemail.com
Fri Apr 16 10:30:37 CEST 2010

a.py is importing SimpleSqlClient.py which again is importing System.Data
which implements the .NET SQL support.

So I tried to import System.Data also in a.py and in the main application.
Unfortunatelly I still get the error message:

SystemError: Fehler bei der Anforderung des Berechtigungstyps
System.Data.SqlClient.SqlClientPermission, System.Data, Version=,
Culture=neutral, PublicKeyToken=b77a5c561934e089.

I have notived that languages like C# have special constructs to request
access grand to system functions. How do I request full access to
System.Data in python?

2010/4/15 Bruce Bromberek <bruce.bromberek at gmail.com>

> Does a.py have any module imports?  I always find I have to mess around
> with standard python modules being available in order for my DLL's to work
> when I distribute exe's.  But then I'm usually using ODBC connections to
> *.mdb files
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100416/f702a6a9/attachment.html>

More information about the Ironpython-users mailing list