Hello,
I am looking for a solution to my problem that I want to run system exe(notepad,word,etc.) in my sandbox solution.
Is it possible to run exe in such a way.
Please need your help.
The only way I can think of is if you are running CSOM from an external ASPX site, but then you are limited to running the exe on that server only. You can’t initiate an executable from a client app to the best of my knowledge. To me that would be a huge security risk.
Maybe someone else has accomplished this, but I have never done it, nor heard of it being done, so unless someone shows me how they did it, I can’t see this being possible.
Yes it helps.
Can we go for CSOM to achieve this on our browser.
Nope. This is how sandbox solutions work. A sandbox solution is designed specifically to work within the site you are creating it for. It does not allow for external access at all, be it data access to other areas of SharePoint or network drives or to access files outside of the system. If you want to do this, a sandbox solution will not work. The idea behind a sandbox solution is for it to run directly within a separate worker process (SPUCWorkerProcess.exe). The solution allows for complete isolation so a badly designed process doesn’t affect the whole farm. Launching a exe, breaks a sandbox requirement as you are now accessing resources outside of the site.
Please see this for more information on Sandbox Solutions and their capabilities and limitations.
Hope this explains things ok.
David