I get the error at the bottom of this post when i click on a linkbutton, - 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 - 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: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
-
-
Source Error:
-
-
-
[No relevant source lines]
-
-
-
Source File: App_Web_3lkoj9s5.28.cs Line: 0
-
-
Stack Trace:
-
-
-
[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
-
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
-
System.Security.CodeAccessPermission.Demand() +59
-
System.IO.Path.GetFullPath(String path) +98
-
System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath, Boolean& pathTooLong) +50
-
System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath) +23
-
System.Web.CachedPathData.GetConfigPathData(String configPath) +465
-
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
-
System.Web.Compilation.CompilationUtil.GetAssembliesForAppLevel() +193
-
System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +297
-
System.Web.UI.Page.get_IsPartialRenderingSupported() +71
-
System.Web.UI.WebControls.BaseValidator.RegisterValidatorCommonScript() +21
-
System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +70
-
System.Web.UI.Control.PreRenderRecursiveInternal() +77
-
System.Web.UI.Control.PreRenderRecursiveInternal() +161
-
System.Web.UI.Control.PreRenderRecursiveInternal() +161
-
System.Web.UI.Control.PreRenderRecursiveInternal() +161
-
System.Web.UI.Control.PreRenderRecursiveInternal() +161
-
System.Web.UI.Control.PreRenderRecursiveInternal() +161
-
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6978
-
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
-
System.Web.UI.Page.ProcessRequest() +86
-
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
-
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
-
ASP._myaccount_aspx.ProcessRequest(HttpContext context) in App_Web_3lkoj9s5.28.cs:0
-
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +303
-
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
-
-
4 1745
anyone? thanks. ..........................
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.
:)
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
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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:
...
|
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
...
|
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)
{
...
|
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...
|
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...
|
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.
...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
| |