code seems not executing: giving request failed

  • Thread starter Thread starter CreativeMind
  • Start date Start date
C

CreativeMind

Hi all,

I have an event method which runs perfect on local system.
but on server. it gives security exception
"System.Security.SecurityException: Request failed."
any configuration is required in web.config?

Regards,
 
Hi all,

I have an event method which runs perfect on local system.
but on server. it gives security exception
"System.Security.SecurityException: Request failed."
any configuration is  required in web.config?

Regards,

It would be helpful if you can be as specific as possible when
describing the problem, as well as detailed source code. It sounds
like you attempt to perform an operation not allowed by security
policy on the server due to lack of proper trust level or anything
else.
 
This is the error description:
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 failed.

Source Error:


Line 559: '
Response.Write(ex.InnerException.ToString())
Line 560: ' Exit Sub
Line 561: ' Label10.Text = "Video Failed to upload
(may be because of slow connection or the file is very big size),
please try again"
Line 562: 'End Try
Line 563:


Source File: \\fs2-n01\stor1wc2dfw1\466040\483027\www.aatworld.com\web
\content\aat-tube.aspx.vb Line: 561
Version Information: Microsoft .NET Framework Version:2.0.50727.4200;
ASP.NET Version:2.0.50727.4016
=========================
Protected Sub Button13_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button13.Click
Response.Write("in top most line")
Exit Sub
End Sub
============================
in web.config , versions of assemblies are Version=1.0.61025.0 and
2.0.0.0
============================
 
Back
Top