c# - System.Diagnostics.Process.Start throwing threadabort exception on server -
in website using system.diagnostics.process.start preview particular file. working fine on local server but, throws threadabortexception on online server when try preview file.
the preview of happens on button click of repeater. code given below:
if (e.commandname == "preview") { button btn = (button)e.commandsource; string filepath = server.mappath("~/upload"); string _downloadableproductfilename = filename; system.diagnostics.process.start(filepath + "\\" + _downloadableproductfilename); }
to use process on asp.net server need configure application full trust.
are sure need spawn process server side? seems aren't using output.
Comments
Post a Comment