c# - WCF hosted on Windows Service throw FaultException -
good morning,
i trying start process through wcf hosted windows service. problem if run process, throw exception. illustration message shown. can problem?
scenaro 1:
i have wcf service 2 methods: one returns string "hello world". second returns nil code within is:process.start("c:\");
i have windows service reference wcf project. onstart method creates host this service installed on computer i have console application represents client this project has service reference windows service project (to host) now create client instance , phone call function described above result: "hello world" shown on console. process not started - throws faultexception.
scenario 2:
second thing tried is:
wcf service above console application reference wcf project. (host created here) console application represents client. , calling methods client.result: "hello world" shown , process started without problem.
i want run first scenario. think can security problem.
thanks help.
edit: added screenshots.
c# .net windows wcf service
No comments:
Post a Comment