Can't reference Assemblies in GAC?

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

  1. #1

    Default Can't reference Assemblies in GAC?

    I've just created a simple class library, gave it a strong name using
    sn.exe, then copied it to c:\winnt\assembly directory. I then created an
    ASP client that reference that assembly. The client works only works if I
    have the assembly under the ASP client's \bin directory, even though it's
    also in GAC. Does anyone know what the problem is?

    I got the following error:

    File or assembly name <xxxx>, or one of its dependencies, was not found.

    The assembly load trace does not seem to include the directory
    "c:\winnt\assembly". Does it not always look for the assembly in GAC?

    Thanks in advance.
    Nick


    Nick Guest

  2. Similar Questions and Discussions

    1. Are MS Assemblies in the GAC?
      I want to create strongly signed support assemblies so they can be shared by different ASP.NET web apps. This requires that they be installed into...
    2. Returning a reference to an existing C++ object as a reference
      Hi All, Given: package x; sub new { return bless {}, $_; } #-- callback() is call by the C++ class (reader_as_cpp_object) #-- whenever...
    3. Too many assemblies asp.net
      I have been developing several web applications in VB.NET. I have started to notice that when I run one of the applications, all the assemblies for...
    4. how to reference assemblies from web.configs in subdirs?
      Hello, I was wondering how I can reference assemblies from web.config files residing in subdirectories without having to create a new project for...
    5. versioning of assemblies
      Hi, I was reading a doc on versioning, and came to know that versioning of assemblies are easier than ever. Can sb pl mention me, how this can be...
  3. #2

    Default Re: Can't reference Assemblies in GAC?

    Not sure if you got a response elsewhere. Anyways, an attempt will be made
    to look in the GAC, only if you reference the assembly by the full name -
    like so "MyCo.MyAssembly, Version=1.0.1175.28478,
    Culture=neutral,PublicKeyToken=5378d68701e60agd"
    If you have partial references and don't (cannot) want to change, you can
    use qualifyAssembly element in Web.Config to redirect partial-name assembly
    requests to full-name requests which then get redirected to GAC.

    "Nick" <nicktu@hotmail.com> wrote in message
    news:O9wfSN9SDHA.2036@TK2MSFTNGP10.phx.gbl...
    > I've just created a simple class library, gave it a strong name using
    > sn.exe, then copied it to c:\winnt\assembly directory. I then created an
    > ASP client that reference that assembly. The client works only works if I
    > have the assembly under the ASP client's \bin directory, even though it's
    > also in GAC. Does anyone know what the problem is?
    >
    > I got the following error:
    >
    > File or assembly name <xxxx>, or one of its dependencies, was not found.
    >
    > The assembly load trace does not seem to include the directory
    > "c:\winnt\assembly". Does it not always look for the assembly in GAC?
    >
    > Thanks in advance.
    > Nick
    >
    >

    Guru Prasad 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