We have a WCF service, which we recently switched from self-hosting to IIS hosting. To run the executable file, you must run Process.Start (). This works fine when it runs on its own, but when placed in IIS we get an error:
System.ComponentModel.Win32Exception: the system cannot find the specified file
We have exe both in the bin directory and in the root of the application (next to the .svc file.) But it does not seem to be able to find exe.
Any help would be greatly appreciated. Thanks!
EDIT: I forgot to mention that we are running the following code: Process.Start ("LeakingWrapper.exe");
FURTHER INFORMATION: Unfortunately, we do not have the ability to switch exe to a DLL, because it is a shell of a third-party library that has memory leaks. Therefore, we must include it in our own process to ensure that our long-term WCF service does not leak!
source
share