I am writing a WCF Service to be hosted with WAS...

Discussion in 'ASP.NET / ASP.NET Core' started by snorwood, Aug 7, 2008.

  1. This service needs to call a native win32 exe. I know how to call another process in .net, and capture its console output. What I don't know is the best way to find the app. I would like to install the exe with the service into the same folder, either bin or the 'root'. I would like to have the working directory the 'root' directory were the service was installed, instead of c:\windows\system32\inetsrv. I know I can find the bin folder because of the location of the running assembly, but I am hoping there is a more elegant way then that. I am also looking for suggestions of were to have the exe. Thanks in advance.
     
  2. You will not be able to do this on DiscountASP servers. WCF services can only be run in IIS and accessible only through HTTP/HTTPS.




    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page