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. .NET (Core and Framework)
  4. Starting a .NET application from .NET service

Starting a .NET application from .NET service

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdotnethelpquestion
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.
  • S Offline
    S Offline
    Subby Dev
    wrote on last edited by
    #1

    Hi there, I like to start n number of instances of a .net application from my .net windows serivce. I was wondering if there is a limit for n. Because I tried implementing it but I saw some a .net framework error while I am able to start any number instaces of the same application when I convert this service to a Windows Application. Any idea what's going on here? Thanks,

    K S 2 Replies Last reply
    0
    • S Subby Dev

      Hi there, I like to start n number of instances of a .net application from my .net windows serivce. I was wondering if there is a limit for n. Because I tried implementing it but I saw some a .net framework error while I am able to start any number instaces of the same application when I convert this service to a Windows Application. Any idea what's going on here? Thanks,

      K Offline
      K Offline
      Kurt _B
      wrote on last edited by
      #2

      I think you might run into some security problems trying to start a windows application from a service. Try setting the login credentials of your service.

      S 1 Reply Last reply
      0
      • K Kurt _B

        I think you might run into some security problems trying to start a windows application from a service. Try setting the login credentials of your service.

        S Offline
        S Offline
        Subby Dev
        wrote on last edited by
        #3

        Thanks for responding. Service is already running under an admin account's privileges, and I noticed that it starts few of the processes but stops starting anymore after 24 processes.

        1 Reply Last reply
        0
        • S Subby Dev

          Hi there, I like to start n number of instances of a .net application from my .net windows serivce. I was wondering if there is a limit for n. Because I tried implementing it but I saw some a .net framework error while I am able to start any number instaces of the same application when I convert this service to a Windows Application. Any idea what's going on here? Thanks,

          S Offline
          S Offline
          Subby Dev
          wrote on last edited by
          #4

          I started the jit on dev machine and found a clue that this exection is win32exception and raising in the Windows Application (Form Appliction) which is being started by this service. Here is the what I saw, but I am still not sure why this error comes after 24 processes are started without such error. Any comment? Errors: 1. An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.windows.forms.dll Additional information: The parameter is incorrect And 2. An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.windows.forms.dll Additional information: Error creating window handle.

          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