locked
session cleared after calling new function. RRS feed

  • Question

  • User2114772480 posted

    Session data cleared after running the below code

    ProcessStartInfo startInfo = new ProcessStartInfo();
    startInfo.CreateNoWindow = true;
    startInfo.UseShellExecute = false;
    startInfo.FileName = opensslcmdName1;
    startInfo.WorkingDirectory = System.IO.Path.GetDirectoryName(startInfo.FileName);
    startInfo.WindowStyle = ProcessWindowStyle.Hidden;
    startInfo.Arguments = cmdArgText;

    using (Process exeProcess = Process.Start(startInfo))
    {
    exeProcess.WaitForExit();

    }

    Thursday, June 21, 2018 2:56 PM

All replies

  • User475983607 posted

    My best guess is you are saving a file to web application directory which causes the app to restart.

    Thursday, June 21, 2018 4:19 PM
  • User2114772480 posted

    yes , the file is saving in application bin directory and moving that file to separate  application file directory. Does this causes to restart the application ?

    Friday, June 22, 2018 6:55 AM
  • User475983607 posted

    yes , the file is saving in application bin directory and moving that file to separate  application file directory. Does this causes to restart the application ?

    Yes, saving a file in the bin causes a restart.

    Friday, June 22, 2018 10:35 AM
  • User2114772480 posted

    thank you very much for your help , Issue has been resolved. I saved the file  in another directory.

    Friday, June 22, 2018 11:35 AM