[IronPython] Code Access Security?

Neidhoo Xaphier xaphiern at googlemail.com
Tue Apr 13 16:25:53 CEST 2010


I created an DLL-File 'a.dll' from my IronPython module/library 'a.py'. This
module uses SqlClient functions. While 'a.py' is running nicely directly
from IronPython the 'a.dll' doesn't run correctly when I try to use any of
the SQL-related parts. I get the following error message:

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

My questions is therefore: How do I grant the proper permission to 'a.dll'
so that I can access SqlClient and run correctly?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100413/f586aa3e/attachment.html>

More information about the Ironpython-users mailing list