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

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

c++ - Accessing inactive union member and undefined behavior? -

php - Get uncommon values from two or more arrays -