通过模拟问题启动外部流程

发布于 2024-08-22 23:10:10 字数 642 浏览 3 评论 0原文

我从本地电脑(Windows 7)和本地家庭服务器(Windows 2008)将我的网站部署到新服务器(Windows 2003)上,但遇到了问题。

我有一个使用以下代码启动的流程。它传递一个被转换的视频文件。

System.Diagnostics.ProcessStartInfo StartInfo = new System.Diagnostics.ProcessStartInfo(Command, Parameters);  

我遇到的问题是在我的新 Windows 2003 服务器上它无法工作。没有错误或任何东西。查看服务器及其 taskmgr.exe,我看到进程已启动,但没有任何反应。

调查一下,每个人似乎都说我需要在我拥有的 webconfig 中设置 impersonate="true" ,我目前将其设置为我用来登录远程桌面的管理员帐户(我认为这很好?? ?)

<identity impersonate="true" userName="Administrator" password="********" />  

这仍然不起作用..在taskmgr.exe中查看该进程是用用户名=“NETWORK SERVICE”启动的...

有什么想法吗???

Im deploying my website onto my new server (windows 2003) from my local pc (windows 7) and my local homeserver (windows 2008) and have run in to a issue.

I have a process that starts up with the below code. It is passed a video file which gets converted.

System.Diagnostics.ProcessStartInfo StartInfo = new System.Diagnostics.ProcessStartInfo(Command, Parameters);  

Them problem I have is on my new windows 2003 server it fails to work. No error or anything. Looking at the server and its taskmgr.exe I see the Process start but nothing happens.

Looking into it, everyone seems to say I need to have impersonate="true" in the webconfig which I do have, I currently have it set to the Administrator account which I use to log into remote desktop (I assume this is fine???)

<identity impersonate="true" userName="Administrator" password="********" />  

This still doesn't work.. Looking in the taskmgr.exe the process is started with the username ="NETWORK SERVICE" ...

Any ideas???

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

乜一 2024-08-29 23:10:10

我无法提供具体的解决方案,但也许这可以帮助:

  • 使用 进程监视器来查找它是否与安全相关(缺少权限等)。
  • 构建程序的调试版本并插入一些Debug.Print()语句来缩小问题范围。这些消息可以在调试查看器中看到。
  • 也许是组件错误或丢失的问题。要查找这些问题,请查看Fusion Log Viewer

也许其中一种技术可以帮助您解决问题。

A concrete solution i can't provide, but maybe this can help:

  • Take a low level look with Process Monitor to find if it is security related (missing permissions etc.)
  • Build a Debug Version of your programm and insert some Debug.Print() statements to narrow the problem. These messages can be seen bei Debug Viewer.
  • Maybe it's a problem with a wrong or missing assembly. To find these problem take a look into the Fusion Log Viewer.

Maybe one of these techniques will help you to tackle down your problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文