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. General Programming
  3. Visual Basic
  4. GAC problems,, PLEASE HELP!!

GAC problems,, PLEASE HELP!!

Scheduled Pinned Locked Moved Visual Basic
helpcsharpdotnet
6 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.
  • I Offline
    I Offline
    ibiteu2
    wrote on last edited by
    #1

    Hi I am trying to access a global assembly in the gac through a .net service. Right now I just have the code Imports assemblynamehere I keep getting the error that says namespace or type 'eventlog' for imports assemblynamehere can not be found. any help at all would be appreciated. thanx

    R 1 Reply Last reply
    0
    • I ibiteu2

      Hi I am trying to access a global assembly in the gac through a .net service. Right now I just have the code Imports assemblynamehere I keep getting the error that says namespace or type 'eventlog' for imports assemblynamehere can not be found. any help at all would be appreciated. thanx

      R Offline
      R Offline
      Ray Cassick
      wrote on last edited by
      #2

      Add a reference to the assembly first.


      Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


      I 1 Reply Last reply
      0
      • R Ray Cassick

        Add a reference to the assembly first.


        Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


        I Offline
        I Offline
        ibiteu2
        wrote on last edited by
        #3

        uhh,, reference????

        R 1 Reply Last reply
        0
        • I ibiteu2

          uhh,, reference????

          R Offline
          R Offline
          Ray Cassick
          wrote on last edited by
          #4

          In the Solution Explorer, listed under your project there is a folder named references. If you open this folder you will notice there are some entries in there like: System System.Windows.Forms System.XML These entries might be more or less, or different depending upon the type of project you are working on. These are the various assemblies that your application is using. Right click on the project and select the 'Add Reference…' option. This opens up a dialog box that lists all assemblies found in the GAC. Select your assembly from here, or browse to where it is stored. This will set the reference to the assembly that you want to use. Now your Imports statement should work.


          Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


          I 1 Reply Last reply
          0
          • R Ray Cassick

            In the Solution Explorer, listed under your project there is a folder named references. If you open this folder you will notice there are some entries in there like: System System.Windows.Forms System.XML These entries might be more or less, or different depending upon the type of project you are working on. These are the various assemblies that your application is using. Right click on the project and select the 'Add Reference…' option. This opens up a dialog box that lists all assemblies found in the GAC. Select your assembly from here, or browse to where it is stored. This will set the reference to the assembly that you want to use. Now your Imports statement should work.


            Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


            I Offline
            I Offline
            ibiteu2
            wrote on last edited by
            #5

            That worked thanks much for the help :-D:-D:-D:-D

            R 1 Reply Last reply
            0
            • I ibiteu2

              That worked thanks much for the help :-D:-D:-D:-D

              R Offline
              R Offline
              Ray Cassick
              wrote on last edited by
              #6

              No problem...


              Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


              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