﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » System.Security.SecurityException</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 11:51:41 GMT</lastBuildDate><ttl>20</ttl><item><title>System.Security.SecurityException</title><link>http://forum.strataframe.net/FindPost4147.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I have made a website project in VS2005. I am using SF 1.5.1&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;added the DataSourceItem to DataLayer in Global.asax, &lt;/LI&gt;&lt;LI&gt;created a BusinessObject mapped with the database table&lt;/LI&gt;&lt;LI&gt;created an ApplicationBasedPage(ABP) and declared my BO as well&lt;/LI&gt;&lt;LI&gt;inherited an ASPX from ABP, called the BO.FillDataTable method and bound the result to DataGrid&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When&amp;nbsp;i execute the project, i get the following exception :&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;System.Security.SecurityException: That assembly does not allow partially trusted callers.&lt;/FONT&gt;&lt;BR&gt;&lt;/P&gt;&lt;P&gt;After doing some web search, found teh following links related to the problem but could not find the solution for the same.&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms345097.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms345097.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.msdn.com/shawnfa/archive/2005/02/04/367390.aspx"&gt;http://blogs.msdn.com/shawnfa/archive/2005/02/04/367390.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Request you to assist ASAP.</description><pubDate>Mon, 06 Nov 2006 10:11:32 GMT</pubDate><dc:creator>Vikram Saxena</dc:creator></item><item><title>RE: System.Security.SecurityException</title><link>http://forum.strataframe.net/FindPost4156.aspx</link><description>The problem is definitely coming from your local trusts.&amp;nbsp; This is in the Start -&amp;gt; Control Panel -&amp;gt; Administrative Tools -&amp;gt; Microsoft .NET Framework 2.0 Configuration.</description><pubDate>Mon, 06 Nov 2006 10:11:32 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: System.Security.SecurityException</title><link>http://forum.strataframe.net/FindPost4150.aspx</link><description>the project is completely on my local drive. i made the project afresh and it worked fine. dont know what possibly could have caused the issue. but anyways, below is the complete stackTrace&lt;/P&gt;&lt;P&gt;[SecurityException: That assembly does not allow partially trusted callers.]&lt;BR&gt;&amp;nbsp;&amp;nbsp; ApplicationBasePage..ctor() +0&lt;BR&gt;&amp;nbsp;&amp;nbsp; List_Company..ctor() +25&lt;BR&gt;&amp;nbsp;&amp;nbsp; ASP.list_company_aspx..ctor() +29&lt;BR&gt;&amp;nbsp;&amp;nbsp; __ASP.FastObjectFactory_app_web_m7l1bvyn.Create_ASP_list_company_aspx() +38&lt;BR&gt;&amp;nbsp;&amp;nbsp; System.Web.Compilation.BuildResultCompiledType.CreateInstance() +58&lt;BR&gt;&amp;nbsp;&amp;nbsp; System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +113&lt;BR&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +32&lt;BR&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +62&lt;BR&gt;&amp;nbsp;&amp;nbsp; System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +294&lt;BR&gt;&amp;nbsp;&amp;nbsp; System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139&lt;BR&gt;&amp;nbsp;&amp;nbsp; System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously) +146&lt;BR&gt;</description><pubDate>Mon, 06 Nov 2006 05:57:50 GMT</pubDate><dc:creator>Vikram Saxena</dc:creator></item><item><title>RE: System.Security.SecurityException</title><link>http://forum.strataframe.net/FindPost4148.aspx</link><description>I will need the stack trace to have an idea of where to start.&amp;nbsp; Once common error that people get all of the time is trying to run a .NET program or assembly from a network drive.&amp;nbsp; Is this project entirely on your local drive when executing?</description><pubDate>Sat, 04 Nov 2006 21:11:24 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>