[IronPython] Code Access Security?

Curt Hagenlocher curt at hagenlocher.org
Fri Apr 16 17:19:37 CEST 2010


What kind of environment are you running from? Is this, for instance, an
ASP.NET application? If so, can you get the same error when running from
outside that environment?

On Fri, Apr 16, 2010 at 1:30 AM, Neidhoo Xaphier <xaphiern at googlemail.com>wrote:

> 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=2.0.0.0,
> 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
>>
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100416/ca5d7179/attachment.html>


More information about the Ironpython-users mailing list