running ASP.Net Provider on Medium trust level servers is impossible - security reason --------------------------------------------------------------------------------------
Key: DNET-228 URL: http://tracker.firebirdsql.org/browse/DNET-228 Project: .NET Data provider Issue Type: Bug Components: ADO.NET Provider Affects Versions: 1.7.2 Environment: Turbo Delphi for .Net Explorer FirebirdSql.Data.Firebird.dll ver 1.7.2.0 Reporter: Karol Bieniaszewski Assignee: Jiri Cincura i try to connect with .Net provider to Embedded Firebird but i can not do this on Medium Trust level host some code from .Net Provider generate security exception Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers. code i very simple and work in high trust level but not with medium Var par: FirebirdSql.Data.Firebird.FbConnectionStringBuilder; begin par:= FirebirdSql.Data.Firebird.FbConnectionStringBuilder.Create; //here is error par.Database:= Server.MapPath('/') + 'S27.PLM'; par.ServerType:= 1; con.ConnectionString:= par.ConnectionString; con.Open; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider