Where do I put the .snk file?

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

    Where do I put the .snk file?

    Okay. I'm creating a dll I'd like to put into the GAC, this way I can reuse
    some of my common classes. I need to strongname it though. I've created the
    key, and I've added the line to the AssemblyInfo.vb file, but when I compile,
    it says it can't find the file. Where should I put it so it can find the file?

    <Assembly: AssemblyKeyFile ("strongNameFil e.snk")>

    Thanks again for the help!
  • Herfried K. Wagner [MVP]

    #2
    Re: Where do I put the .snk file?

    "Casey" <Casey@discussi ons.microsoft.c om> schrieb:[color=blue]
    > I've created the key, and I've added the line to the
    > AssemblyInfo.vb file, but when I compile, it says it can't
    > find the file. Where should I put it so it can find the file?[/color]

    See (complete thread):

    <URL:http://groups.google.d e/groups?threadm= %23lleIagdDHA.4 60%40cpmsftngxa 06.phx.gbl>

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    • Casey

      #3
      Re: Where do I put the .snk file?

      Hey that worked. I got the file to compile.
      I then added my compiled dll file to the GAC. It seemed to work fine, but
      when I try to use it by adding it into the machine.config file, (so I can use
      it in web apps), the server freaks out, claiming it can't find it or one if
      it's dependicies. I'm thinking that it cannot find the .snk file.
      Where on the web server sould THAT file go?

      Thanks!

      "Herfried K. Wagner [MVP]" wrote:
      [color=blue]
      > "Casey" <Casey@discussi ons.microsoft.c om> schrieb:[color=green]
      > > I've created the key, and I've added the line to the
      > > AssemblyInfo.vb file, but when I compile, it says it can't
      > > find the file. Where should I put it so it can find the file?[/color]
      >
      > See (complete thread):
      >
      > <URL:http://groups.google.d e/groups?threadm= %23lleIagdDHA.4 60%40cpmsftngxa 06.phx.gbl>
      >
      > --
      > M S Herfried K. Wagner
      > M V P <URL:http://dotnet.mvps.org/>
      > V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
      >
      >[/color]

      Comment

      • Casey

        #4
        Re: Where do I put the .snk file?

        Nevermind. I actually figured it out.
        I added the file to the GAC on MY machine, but not the web server.
        Once I did that, it seemed to work fine.

        Thanks!

        "Casey" wrote:
        [color=blue]
        > Hey that worked. I got the file to compile.
        > I then added my compiled dll file to the GAC. It seemed to work fine, but
        > when I try to use it by adding it into the machine.config file, (so I can use
        > it in web apps), the server freaks out, claiming it can't find it or one if
        > it's dependicies. I'm thinking that it cannot find the .snk file.
        > Where on the web server sould THAT file go?
        >
        > Thanks!
        >
        > "Herfried K. Wagner [MVP]" wrote:
        >[color=green]
        > > "Casey" <Casey@discussi ons.microsoft.c om> schrieb:[color=darkred]
        > > > I've created the key, and I've added the line to the
        > > > AssemblyInfo.vb file, but when I compile, it says it can't
        > > > find the file. Where should I put it so it can find the file?[/color]
        > >
        > > See (complete thread):
        > >
        > > <URL:http://groups.google.d e/groups?threadm= %23lleIagdDHA.4 60%40cpmsftngxa 06.phx.gbl>
        > >
        > > --
        > > M S Herfried K. Wagner
        > > M V P <URL:http://dotnet.mvps.org/>
        > > V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
        > >
        > >[/color][/color]

        Comment

        Working...