Msft rcmd7/30/2023 Maybe you can try to run it in Administrator permission. What about the result when you execute the assembly by double click on it after you built it with debug configuration?ģ. The unexpected value returned after you built it with release configuration and run it in Visual Studio, right?Ĥ. The unexpected value returned when you execute the assembly by double click on it after you built it with release configuration, right? The expected value returned after you built it with debug configuration and run it in Visual Studio, right?Ģ. As I suspected, the feedback with line numbers show, when I execute the code in debug mode, but not when I execute it in release mode or when I execute the built exeĬan you help me clarify below information?ġ. I don't think so the Visual studio hosting process is the key point. What about the "Optimize" option in the "Build" page when it is built with Release mode and Debug mode? I am really stuck here, so your help is greatly appreciated! But it didn't make any difference, neither :( Setting the WorkingDirectory and CurrentDirectory are the result of trials, where executed ftp.exe from the programm directory itself instead of system32. StartInfo.Arguments = "-s:" + pathFTPCommandfile įtpFeedback = () įtpError = () StartInfo.StandardOutputEncoding = (850) ProcessStartInfo startInfo = new ProcessStartInfo() Įnvironment.CurrentDirectory = ProcessWindowStyle.Hidden Using (Process ftpProcess = new Process()) This is how I call the process (first few lines, only): What is going on here? Is there any way, to get the full feedback from a built release version? I noticed, that in debugging, activating "Enable the Visual Studio hosting process" also prevents the feedback from beeing fully read.įor the build, however, I cannot choose between enabling or disabling the VS hosting process. > All the interesting stuff (logged on) is missing. Same example when started from compliled file: ini file.Ģ20 Connection will close if idle more than 15 minutes When I compile it, however, it no longer works. The content is executed properly, but I don't get any feedback other than the content of the. This works great as long as start it in debug mode. It then reads the StandardOutput and StandardError to evaluate if it was successfull. I've written a method that calls the process ftp.exe opens an ini file and executes the content. I am currently struggling with a problem I can't solve by myself.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |