473,408 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

System.Security.SecurityException when clicking a linkbutton

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
4 1745
anyone? thanks. ..........................
Jan 2 '08 #2
radcaesar
759 Expert 512MB
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
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
anyone , please help me!
Jan 10 '08 #5

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

Similar topics

1
by: Sam | last post by:
I have a desktop VB.Net application I developed locally. I uploaded it to a file server we have and the .Net Framework is installed on the file server. When I try to run the executable from the...
0
by: James B | last post by:
OMA (Outlook Mobile Access) under Exchange is giving me a System.Security.SecurityException error. From what I gather this is a problem with the security level under which the OMA application is...
0
by: Brian A | last post by:
I have code that calls some Win32 code. My library is accessed via remoting from a client. In version 1.0 of the framework I had no problems. With 1.1 I consitently get the securityException: ...
2
by: MFRASER | last post by:
I am getting a System.Security.SecurityException when I try and laod a dataset from an xml file any ideas on what would cause this? System.Security.SecurityException' occurred in mscorlib.dll ...
0
by: Luis Esteban Valencia | last post by:
Hello I have this error when I submit the page with the following code. I had never see this kind of errors. Thanks private void btnsubmit_Click(object sender, System.EventArgs e) { ...
1
by: eisenb | last post by:
microsoft.public.dotnet.languages.vb.upgrade isn't getting much traffic, so I'll try here. Ours is a VB6 shop exploring .NET. First I wrote a new application with VB .NET 2003 to create a pdf...
3
by: steveeisen | last post by:
microsoft.public.dotnet.languages.vb.upgrade isn't getting much traffic, so I'll try here. Ours is a VB6 shop exploring .NET. First I wrote a new application with VB .NET 2003 to create a...
0
by: Lambuz | last post by:
Hi all, I've got this problem. I've to implemente a solution like the example in http://support.microsoft.com/default.aspx?scid=kb;EN-US;313891, but I can't configure correctly the example. ...
4
by: stephen | last post by:
Hi, I am getting an error while trying to create an excel file. "Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.