From: CreativeMind on
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,
From: Alexey Smirnov on
On Apr 27, 10:25 am, CreativeMind <aftab.pu...(a)gmail.com> wrote:
> 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.
From: CreativeMind on
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
============================


On Apr 27, 1:32 pm, Alexey Smirnov <alexey.smir...(a)gmail.com> wrote:
> On Apr 27, 10:25 am, CreativeMind <aftab.pu...(a)gmail.com> wrote:
>
> > 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.