Process.Start() under asp.net?

后端 未结 3 1904
抹茶落季
抹茶落季 2020-12-17 16:05

According to msdn :

ASP.NET Web page and server control code executes in the context of the ASP.NET worker process on the Web server. If you use th

3条回答
  •  感情败类
    2020-12-17 17:07

    As I found out when trying to solve this problem, lots of little things are different. It may run under RoyiN, but you may find that USERPROFILE is set to C:\Windows\system32\config\systemprofile, and not your /Users/RoyiN folder.

    Depending on what you're trying to do, that can cause some problems. In my case, starting a git process would hang forever. Not only were USERPROFILE and HOME wrong, I also found out that impersonated users do not play well with mapped network drives.

提交回复
热议问题