Security issue with Assembly in GAC and ASP.NET run-time

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Security issue with Assembly in GAC and ASP.NET run-time

    I have an Assembly I've built and installed in the Global Assembly
    Cache. I have an ASP.NET web application that is referencing this
    Assembly and when I try to run it I get a "Parser Error: File or
    assembly name LocalLib.Common, or one of its dependencies, was not
    found."

    The trace provides some interesting clues, it reads as follows:

    === Pre-bind state information ===
    LOG: DisplayName = LocalLib.Common
    (Partial)
    LOG: Appbase = file:///c:/inetpub/wwwroot/IPDHome
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    ===

    LOG: Policy not being applied to reference at this time (private,
    custom, partial, or location-based assembly bind).
    ----------------------------------------------------------------------------

    This appears to be a secuirty issue to me. The web application is
    running under the aspnet account and this account has read/write
    permissions on the \WINDOWS\Assembly folder.

    I've run the Assembly Binding Log Viewer (fuslogvw.exe) utility and it
    registers nothing when this app runs (and fails), there is no entry.

    Does anyone know why this might be happening?

    Best Regards,
    James.
    JamesMason Guest

  2. Similar Questions and Discussions

    1. CFMX7.0.1 Administrator date time issue showing 13hrsbehind server time
      I am running a W2k SP4 box that has been upgraded from CFMX6 to CFMX7.0.1. The CFMX7.0.1 server is showing the date on the Server Settings >...
    2. Assembly system.data.dll security permission grant set is incompatible between appdomains.
      Hello, I'm getting the following error at the end of this message when trying to run the ReportManager and the ReportServer: Assembly...
    3. Problems with assembly security
      Hi Folks, I'm using a third-party module in my apllication to create PDFs. Most time the DDL works fine, but sometime I got the following error...
    4. Reading the public key inside a strongly signed assembly from the assembly itself???
      Hello, is it possible to programmatically read (and how) the public key that is embedded into an assembly that has been strongly signed??? What...
    5. Security Error When calling assembly.CreateInstance
      I don't event know where to begin to solve it. I tried everything I could find on the net, with no avail. I ma loading an assembly using http. Here...
  3. #2

    Default Re: Security issue with Assembly in GAC and ASP.NET run-time

    If you are using this component from inline code (inside the aspx page), you
    MUST add the <add assembly="..." /> in the web.config file.

    HtH
    Andrea

    "JamesMason" <jmason@funnydelight.co.uk> wrote in message
    news:d4e30081.0311241317.3cec66b3@posting.google.c om...
    > I have an Assembly I've built and installed in the Global Assembly
    > Cache. I have an ASP.NET web application that is referencing this
    > Assembly and when I try to run it I get a "Parser Error: File or
    > assembly name LocalLib.Common, or one of its dependencies, was not
    > found."
    >
    > The trace provides some interesting clues, it reads as follows:
    >
    > === Pre-bind state information ===
    > LOG: DisplayName = LocalLib.Common
    > (Partial)
    > LOG: Appbase = file:///c:/inetpub/wwwroot/IPDHome
    > LOG: Initial PrivatePath = bin
    > Calling assembly : (Unknown).
    > ===
    >
    > LOG: Policy not being applied to reference at this time (private,
    > custom, partial, or location-based assembly bind).
    > --------------------------------------------------------------------------
    --
    >
    > This appears to be a secuirty issue to me. The web application is
    > running under the aspnet account and this account has read/write
    > permissions on the \WINDOWS\Assembly folder.
    >
    > I've run the Assembly Binding Log Viewer (fuslogvw.exe) utility and it
    > registers nothing when this app runs (and fails), there is no entry.
    >
    > Does anyone know why this might be happening?
    >
    > Best Regards,
    > James.

    Andrea D'Onofrio Guest

  4. #3

    Default Re: Security issue with Assembly in GAC and ASP.NET run-time

    Hello Andrea,

    I tried adding this entry into my web.config:
    <configuration>
    <system.web>
    <compilation defaultLanguage="c#" debug="false">
    <assemblies>
    <add assembly="LocalLib.Common,
    Version=1.0.0.0,
    Culture=neutral,
    PublicKeyToken=cab7b38fd4d97938" />
    </assemblies>
    </compilation>
    ....

    It continues to fail, but this time with a "Parser Error Message: File
    or assembly name LocalLib.Common, or one of its dependencies, was not
    found."

    The trace on this error is identical to the one on my top post.

    One thing I've noticed that may be a problem, when I browse my Global
    Assembly Cache and locate LocalLib.Common, its CodeBase attribute
    reads:
    file:///c:/code/rangersec/locallib.common/bin/release/

    This is the path I ran gacutil -i from. But I've noticed none of the
    other Assemblies in the GAC have an entry for CodeBase most of them
    are blank. I don't know why this would be a problem as I've given the
    "Everyone" group FullControl on
    /code/rangersec/locallib.common/bin/release/ just to make sure this
    wasn't a NTFS security issue, but it continues to fail at run-time.




    "Andrea D'Onofrio" <andreado@microsoft.com> wrote in message news:<e4VaH6AtDHA.2308@TK2MSFTNGP11.phx.gbl>...
    > If you are using this component from inline code (inside the aspx page), you
    > MUST add the <add assembly="..." /> in the web.config file.
    >
    > HtH
    > Andrea
    >
    > "JamesMason" <jmason@funnydelight.co.uk> wrote in message
    > news:d4e30081.0311241317.3cec66b3@posting.google.c om...
    > > I have an Assembly I've built and installed in the Global Assembly
    > > Cache. I have an ASP.NET web application that is referencing this
    > > Assembly and when I try to run it I get a "Parser Error: File or
    > > assembly name LocalLib.Common, or one of its dependencies, was not
    > > found."
    > >
    > > The trace provides some interesting clues, it reads as follows:
    > >
    > > === Pre-bind state information ===
    > > LOG: DisplayName = LocalLib.Common
    > > (Partial)
    > > LOG: Appbase = file:///c:/inetpub/wwwroot/IPDHome
    > > LOG: Initial PrivatePath = bin
    > > Calling assembly : (Unknown).
    > > ===
    > >
    > > LOG: Policy not being applied to reference at this time (private,
    > > custom, partial, or location-based assembly bind).
    > > --------------------------------------------------------------------------
    > --
    > >
    > > This appears to be a secuirty issue to me. The web application is
    > > running under the aspnet account and this account has read/write
    > > permissions on the \WINDOWS\Assembly folder.
    > >
    > > I've run the Assembly Binding Log Viewer (fuslogvw.exe) utility and it
    > > registers nothing when this app runs (and fails), there is no entry.
    > >
    > > Does anyone know why this might be happening?
    > >
    > > Best Regards,
    > > James.
    JamesMason Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139