Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to use shared assembly in asp.net 2005 application

How to use shared assembly in asp.net 2005 application

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdotnettutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zareee
    wrote on last edited by
    #1

    Hi, I have used Class library using C# ASP.NET2005 and created a public-private key using Sn -k myfile.snk syntax. I have signed in the key to the class library created and had builded it. I have added the dll to the GAC using gacutil /i myclasslib.dll The dll is successfully added to cache. Now, 1.How to include the shared myclasslib.dll to my new asp.net c# application? 2.Does the myfile(strongname) created can be used for sharing more than one dlls? 3.If so then how can the stron name can uniquely identify the assembly? 4.Does the c# dll can be used in vb.net windows application? Thanks,

    zari

    N 1 Reply Last reply
    0
    • Z zareee

      Hi, I have used Class library using C# ASP.NET2005 and created a public-private key using Sn -k myfile.snk syntax. I have signed in the key to the class library created and had builded it. I have added the dll to the GAC using gacutil /i myclasslib.dll The dll is successfully added to cache. Now, 1.How to include the shared myclasslib.dll to my new asp.net c# application? 2.Does the myfile(strongname) created can be used for sharing more than one dlls? 3.If so then how can the stron name can uniquely identify the assembly? 4.Does the c# dll can be used in vb.net windows application? Thanks,

      zari

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      zareee wrote:

      1.How to include the shared myclasslib.dll to my new asp.net c# application?

      If your assembly is added to Global Assembly Cache, then you can add reference to it.

      zareee wrote:

      4.Does the c# dll can be used in vb.net windows application?

      Yes you can use that. It will be in MSIL ( Microsoft Intermediate Language ) format. It doesn't care about C# or VB.NET.


      My Website | Ask smart questions

      Z 1 Reply Last reply
      0
      • N N a v a n e e t h

        zareee wrote:

        1.How to include the shared myclasslib.dll to my new asp.net c# application?

        If your assembly is added to Global Assembly Cache, then you can add reference to it.

        zareee wrote:

        4.Does the c# dll can be used in vb.net windows application?

        Yes you can use that. It will be in MSIL ( Microsoft Intermediate Language ) format. It doesn't care about C# or VB.NET.


        My Website | Ask smart questions

        Z Offline
        Z Offline
        zareee
        wrote on last edited by
        #3

        In add reference i dont have the dll i created. But the dll is there in c:/winnt/assembly.

        zari

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups