By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,902 Members | 1,352 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,902 IT Pros & Developers. It's quick & easy.

System.Security.SecurityException when clicking a linkbutton

P: 23
I get the error at the bottom of this post when i click on a linkbutton,
Expand|Select|Wrap|Line Numbers
  1.  javascript:__doPostBack('ctl00$Main$btnchangeemail','') 
The problem is intermitant, sometimes it works and sometimes it errors,

The page is running in an iframe if this makes a difference.

ANY IDEAS???

Thanks

Expand|Select|Wrap|Line Numbers
  1. Security Exception 
  2. 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. 
  3.  
  4. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
  5.  
  6. Source Error: 
  7.  
  8.  
  9. [No relevant source lines]
  10.  
  11.  
  12. Source File: App_Web_3lkoj9s5.28.cs    Line: 0 
  13.  
  14. Stack Trace: 
  15.  
  16.  
  17. [SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
  18.    System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
  19.    System.Security.CodeAccessPermission.Demand() +59
  20.    System.IO.Path.GetFullPath(String path) +98
  21.    System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath, Boolean& pathTooLong) +50
  22.    System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath) +23
  23.    System.Web.CachedPathData.GetConfigPathData(String configPath) +465
  24.    System.Web.CachedPathData.GetConfigPathData(String configPath) +243
  25.    System.Web.Compilation.CompilationUtil.GetAssembliesForAppLevel() +193
  26.    System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +297
  27.    System.Web.UI.Page.get_IsPartialRenderingSupported() +71
  28.    System.Web.UI.WebControls.BaseValidator.RegisterValidatorCommonScript() +21
  29.    System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +70
  30.    System.Web.UI.Control.PreRenderRecursiveInternal() +77
  31.    System.Web.UI.Control.PreRenderRecursiveInternal() +161
  32.    System.Web.UI.Control.PreRenderRecursiveInternal() +161
  33.    System.Web.UI.Control.PreRenderRecursiveInternal() +161
  34.    System.Web.UI.Control.PreRenderRecursiveInternal() +161
  35.    System.Web.UI.Control.PreRenderRecursiveInternal() +161
  36.    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6978
  37.    System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
  38.    System.Web.UI.Page.ProcessRequest() +86
  39.    System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
  40.    System.Web.UI.Page.ProcessRequest(HttpContext context) +49
  41.    ASP._myaccount_aspx.ProcessRequest(HttpContext context) in App_Web_3lkoj9s5.28.cs:0
  42.    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +303
  43.    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
  44.  
  45.  
Dec 26 '07 #1
Share this Question
Share on Google+
4 Replies


P: 23
anyone? thanks. ..........................
Jan 2 '08 #2

radcaesar
Expert 100+
P: 759
What you do in that button click.

It seems that you referenced some custom assembly in that button click which don't have enough permission. Grant permission to that assembly and all will set.

Until you explain what you had done in that click, this is what my suggestion is.

:)
Jan 2 '08 #3

P: 23
What you do in that button click.

It seems that you referenced some custom assembly in that button click which don't have enough permission. Grant permission to that assembly and all will set.

Until you explain what you had done in that click, this is what my suggestion is.

:)
I didn't make the assembly so i was guessing it was generated automatically, if so surely it should have correct permission, also the problem is on and off...
How would i go about setting the assembly;s permission?
Thanks mate
Jan 3 '08 #4

P: 23
anyone , please help me!
Jan 10 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.