Security Exception

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • trs

    #1

    Security Exception

    Hi,

    If anyone could please throw some light on how I can solve this error.
    Have tried giving permission to the folder.

    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 .SecurityExcept ion: Request for the
    permission of type 'System.Web.Asp NetHostingPermi ssion, System,
    Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9'
    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:


    [SecurityExcepti on: Request for the permission of type
    'System.Web.Asp NetHostingPermi ssion, System, Version=2.0.0.0 ,
    Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.]
    System.Reflecti on.Assembly.Get Type(String name, Boolean
    throwOnError, Boolean ignoreCase) +0
    System.Web.UI.U til.GetTypeFrom Assemblies(ICol lection assemblies,
    String typeName, Boolean ignoreCase) +140
    System.Web.UI.T emplateParser.G etType(String typeName, Boolean
    ignoreCase, Boolean throwOnError) +295
    System.Web.UI.T emplateParser.P rocessInheritsA ttribute(String
    baseTypeName, String codeFileBaseTyp eName, String src, Assembly
    assembly) +163

    System.Web.UI.T emplateParser.P ostProcessMainD irectiveAttribu tes(IDictionary
    parseData) +192




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
    ASP.NET Version:2.0.507 27.210

  • Laurent Bugnion, MVP

    #2
    Re: Security Exception

    Hi,

    trs wrote:
    Hi,
    >
    If anyone could please throw some light on how I can solve this error.
    Have tried giving permission to the folder.
    It is not clear what exactly you're trying to do when the error occurs.
    One common cause for this exception is trying to access content located
    on a network share using a UNC path. In that case, this article could help:

    TCZ Server Variable Value ALL_HTTP HTTP_CONNECTION:close HTTP_FROM:crawler@alexa.com HTTP_HOST:iislogs.com HTTP_USER_AGENT:ia_archiver HTTP_X_REWRITE_URL:/articles/ ALL_RAW Connection: close From: crawler@alexa.com Host: iislogs.com User-Agent: ia_archiver X-Rewrite-URL: /articles/ APPL_MD_PATH /LM/W3SVC/26365/Root APPL_PHYSICAL_PATH d:domainsdeviq.com AUTH_PASSWORD AUTH_TYPE AUTH_USER CERT_COOKIE CERT_FLAGS CERT_ISSUER CERT_KEYSIZE CERT_SECRETKEYSIZE CERT_SERIALNUMBER CERT_SERVER_ISSUER CERT_SERVER_SUBJECT CERT_SUBJECT CONTENT_LENGTH 0 CONTENT_TYPE GATEWAY_INTERFACE CGI/1.1 HTTPS off HTTPS_KEYSIZE HTTPS_SECRETKEYSIZE HTTPS_SERVER_ISSUER HTTPS_SERVER_SUBJECT INSTANCE_ID 26365 INSTANCE_META_PATH /LM/W3SVC/26365 LOCAL_ADDR 66.129.79.40 LOGON_USER […]


    HTH,
    Laurent
    --
    Laurent Bugnion [MVP ASP.NET]
    Software engineering, Blog: http://www.galasoft-LB.ch
    PhotoAlbum: http://www.galasoft-LB.ch/pictures
    Support children in Calcutta: http://www.calcutta-espoir.ch

    Comment

    Working...