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. C#
  4. Problem uninstalling win service

Problem uninstalling win service

Scheduled Pinned Locked Moved C#
csharpvisual-studiosysadmintestingdebugging
3 Posts 3 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.
  • M Offline
    M Offline
    mark_me
    wrote on last edited by
    #1

    Hello, i am assigned to work on a windows service developed by another programmer. I am having problems attaching to the windows service. the service was communicating with a remote server and for testing purposes, i want it to work on my local host.Whenever i get disconnected from LAN, it won't run probably because it can't make a connection to server, but i want to insert a breakpoint right at the beginning so whenever i find a connection to remote server, i change it. this didn't work, so i thought of uninstalling the current service and installing a new instance of it with local host only, But i am having the following probs.///i don't know the exact path. solution (folder)has been pasted to another location c:\Program Files\Microsoft Visual Studio 9.0\VC>installutil /u marketordermanage r.exe Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not load file or assembly 'file:///c:\Pro gram Files\Microsoft Visual Studio 9.0\VC\marketordermanager.exe' or one of its dependencies. The system cannot find the file specified.. i don't have it in controlpanel\add or remove programs... i even tried the sc command, it didnt work. how do i delete this service. thanx inadvance

    M K 2 Replies Last reply
    0
    • M mark_me

      Hello, i am assigned to work on a windows service developed by another programmer. I am having problems attaching to the windows service. the service was communicating with a remote server and for testing purposes, i want it to work on my local host.Whenever i get disconnected from LAN, it won't run probably because it can't make a connection to server, but i want to insert a breakpoint right at the beginning so whenever i find a connection to remote server, i change it. this didn't work, so i thought of uninstalling the current service and installing a new instance of it with local host only, But i am having the following probs.///i don't know the exact path. solution (folder)has been pasted to another location c:\Program Files\Microsoft Visual Studio 9.0\VC>installutil /u marketordermanage r.exe Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not load file or assembly 'file:///c:\Pro gram Files\Microsoft Visual Studio 9.0\VC\marketordermanager.exe' or one of its dependencies. The system cannot find the file specified.. i don't have it in controlpanel\add or remove programs... i even tried the sc command, it didnt work. how do i delete this service. thanx inadvance

      M Offline
      M Offline
      mohmeh83
      wrote on last edited by
      #2

      I think if you use "service" control in cs you can solve your problem.

      1 Reply Last reply
      0
      • M mark_me

        Hello, i am assigned to work on a windows service developed by another programmer. I am having problems attaching to the windows service. the service was communicating with a remote server and for testing purposes, i want it to work on my local host.Whenever i get disconnected from LAN, it won't run probably because it can't make a connection to server, but i want to insert a breakpoint right at the beginning so whenever i find a connection to remote server, i change it. this didn't work, so i thought of uninstalling the current service and installing a new instance of it with local host only, But i am having the following probs.///i don't know the exact path. solution (folder)has been pasted to another location c:\Program Files\Microsoft Visual Studio 9.0\VC>installutil /u marketordermanage r.exe Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not load file or assembly 'file:///c:\Pro gram Files\Microsoft Visual Studio 9.0\VC\marketordermanager.exe' or one of its dependencies. The system cannot find the file specified.. i don't have it in controlpanel\add or remove programs... i even tried the sc command, it didnt work. how do i delete this service. thanx inadvance

        K Offline
        K Offline
        King Julien
        wrote on last edited by
        #3

        Hi the problem is nothing.... your marketordermanager.exe is not in the same path c:\Program Files\Microsoft Visual Studio 9.0\VC> use this batch script

        ECHO OFF
        set DOTNETFX2=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727
        set PATH=%PATH%;%DOTNETFX2%
        echo Uninstalling WindowsService...
        echo ---------------------------------------------------
        InstallUtil /u "%~dp0/marketordermanager.exe"

        echo ---------------------------------------------------
        echo Done
        pause

        just copy the code in a notepad and save it as a batch file. Then run the batch file from the same path where you have the exe... It will solve your problem....

        Have a Happy Coding.....

        modified on Tuesday, May 5, 2009 3:25 AM

        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