0
Answer

securtiy exception while uploading on server :

max dev

max dev

17y
1.9k
1

hi friends , the error is as follows :

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.ReflectionPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type System.Security.Permissions.ReflectionPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.]
   System.Security.SecurityRuntime.FrameDescHelper(FrameSecurityDescriptor secDesc, IPermission demand, PermissionToken permToken) +549
   System.Type.GetType(String typeName, Boolean throwOnError) +0
   System.Web.Configuration.HandlerMapping..ctor(String requestType, String path, String typeName, Boolean defer) +141
   System.Web.Configuration.HttpHandlersSectionHandler.InternalCreate(Object parent, XmlNode node) +506


Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

it is in
.net 1.1 so i cant try options like settting trust level or adding <securityPolicy> tag as they don't work with web.config of asp.net 1.1 application. so plz suggest some solution as soon as possible.
regards,
max.