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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Windows Service

Windows Service

Scheduled Pinned Locked Moved C#
helpcsharpmysqlquestionannouncement
4 Posts 3 Posters 1 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.
  • U Offline
    U Offline
    User 4264148
    wrote on last edited by
    #1

    I have developed a windows service in C#, however, when I start the service. I get the error detailed below. Can anyone help solve this problem? Could not load file or assembly 'MySql.Data, Version=1.0.7.30072' or one of its dependencies. The system cannot find the file specified.

    S 1 Reply Last reply
    0
    • U User 4264148

      I have developed a windows service in C#, however, when I start the service. I get the error detailed below. Can anyone help solve this problem? Could not load file or assembly 'MySql.Data, Version=1.0.7.30072' or one of its dependencies. The system cannot find the file specified.

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi, I guess you implemented something with MySql. The service needs the assembly "MySql.Data.dll" within the GAC. Try to register the assembly there and your service will start (hopefully). Regards Sebastian

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      U 1 Reply Last reply
      0
      • S SeMartens

        Hi, I guess you implemented something with MySql. The service needs the assembly "MySql.Data.dll" within the GAC. Try to register the assembly there and your service will start (hopefully). Regards Sebastian

        It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

        U Offline
        U Offline
        User 4264148
        wrote on last edited by
        #3

        Thanks for ur reply. How do I Install MySql.Data.dll in gac. When I tried using gacutil -i MySql.Data.dll, got an error "Attempt to install an assembly without a strong name"

        C 1 Reply Last reply
        0
        • U User 4264148

          Thanks for ur reply. How do I Install MySql.Data.dll in gac. When I tried using gacutil -i MySql.Data.dll, got an error "Attempt to install an assembly without a strong name"

          C Offline
          C Offline
          Calla
          wrote on last edited by
          #4

          Maybe this is what you're looking for?

          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