StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



System.Security.SecurityExceptionExpand / Collapse
Author
Message
Posted 11/04/2006 5:19:58 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 11/19/2007 4:06:18 AM
Posts: 41, Visits: 99
Hi,

I have made a website project in VS2005. I am using SF 1.5.1

  • added the DataSourceItem to DataLayer in Global.asax,
  • created a BusinessObject mapped with the database table
  • created an ApplicationBasedPage(ABP) and declared my BO as well
  • inherited an ASPX from ABP, called the BO.FillDataTable method and bound the result to DataGrid

When i execute the project, i get the following exception :

System.Security.SecurityException: That assembly does not allow partially trusted callers.

After doing some web search, found teh following links related to the problem but could not find the solution for the same.

http://msdn2.microsoft.com/en-us/library/ms345097.aspx

http://blogs.msdn.com/shawnfa/archive/2005/02/04/367390.aspx

Request you to assist ASAP.

Post #4147
Posted 11/04/2006 9:11:24 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
I will need the stack trace to have an idea of where to start.  Once common error that people get all of the time is trying to run a .NET program or assembly from a network drive.  Is this project entirely on your local drive when executing?
Post #4148
Posted 11/06/2006 5:57:50 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 11/19/2007 4:06:18 AM
Posts: 41, Visits: 99
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

[SecurityException: That assembly does not allow partially trusted callers.]
   ApplicationBasePage..ctor() +0
   List_Company..ctor() +25
   ASP.list_company_aspx..ctor() +29
   __ASP.FastObjectFactory_app_web_m7l1bvyn.Create_ASP_list_company_aspx() +38
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +58
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +113
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +32
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +62
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +294
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +146

Post #4150
Posted 11/06/2006 10:11:32 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
The problem is definitely coming from your local trusts.  This is in the Start -> Control Panel -> Administrative Tools -> Microsoft .NET Framework 2.0 Configuration.
Post #4156
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 8:29pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.125. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.