securtiy exception in web.config while uploading on server
-
hello friends : the exception 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 on local pc , everything is working fine. I have tried options like "setting trust level full" and "adding " but both these option not work with asp.net 1.1 web.config file. also installation of .net framework is fine. plz help regards, max
-
hello friends : the exception 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 on local pc , everything is working fine. I have tried options like "setting trust level full" and "adding " but both these option not work with asp.net 1.1 web.config file. also installation of .net framework is fine. plz help regards, max
first try to rename web.config on server then upload. otherwise upload zip file the extract it on server.
Anshuman Singh [anshumas@rediffmail.com](mailto:Anshuman Singhanshumas@rediffmail.com)