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. Serviced Component

Serviced Component

Scheduled Pinned Locked Moved Visual Basic
helpcom
4 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.
  • L Offline
    L Offline
    lagumaster
    wrote on last edited by
    #1

    hi, i created a serviced component but i cant run the program it says: Access is denied. and i cant send a message to the application log. i even tried shutting down the serviced component in the com+ catalog, i just installed it in assembly (using gacutil.exe) but i'm still getting the error and no message is being created on the application log. i tried configuring my HKEY_.... but nothing happened :sigh:....please help!

    R 1 Reply Last reply
    0
    • L lagumaster

      hi, i created a serviced component but i cant run the program it says: Access is denied. and i cant send a message to the application log. i even tried shutting down the serviced component in the com+ catalog, i just installed it in assembly (using gacutil.exe) but i'm still getting the error and no message is being created on the application log. i tried configuring my HKEY_.... but nothing happened :sigh:....please help!

      R Offline
      R Offline
      Rizwan Bashir
      wrote on last edited by
      #2

      Hello There What you are doing is creating a reference by the keyword New like Dim obj as new myproject.Myclass but infact you have to use this dim obj as object obj=createObject("myproject.myclass") ' secondly are you registering the component through Vs.Net Command prompt. then dont do that. I had a problem with this that even if there is some thing wrong with the component it registers it by force. so register it through Component Service in GUI environment. hope this helps.. if not then I am still here cheers........

      L 1 Reply Last reply
      0
      • R Rizwan Bashir

        Hello There What you are doing is creating a reference by the keyword New like Dim obj as new myproject.Myclass but infact you have to use this dim obj as object obj=createObject("myproject.myclass") ' secondly are you registering the component through Vs.Net Command prompt. then dont do that. I had a problem with this that even if there is some thing wrong with the component it registers it by force. so register it through Component Service in GUI environment. hope this helps.. if not then I am still here cheers........

        L Offline
        L Offline
        lagumaster
        wrote on last edited by
        #3

        thanks for your reply :) i figured it out already i unchecked the Enforced acess check box in the service component i created. i thought registering it in the command prompt is safe...oh well still need to learn a lot of things... btw, do you know how can i create a new table in a sql server database?

        R 1 Reply Last reply
        0
        • L lagumaster

          thanks for your reply :) i figured it out already i unchecked the Enforced acess check box in the service component i created. i thought registering it in the command prompt is safe...oh well still need to learn a lot of things... btw, do you know how can i create a new table in a sql server database?

          R Offline
          R Offline
          Rizwan Bashir
          wrote on last edited by
          #4

          for creating a table use the same way as you use to execute any query for insert or update. like this ' where cmd is command object cmd.commandtext=="Create table tablename ....." cmd.executenoquery()

          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