通过模拟问题启动外部流程
我从本地电脑(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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法提供具体的解决方案,但也许这可以帮助:
Debug.Print()
语句来缩小问题范围。这些消息可以在调试查看器中看到。也许其中一种技术可以帮助您解决问题。
A concrete solution i can't provide, but maybe this can help:
Debug.Print()
statements to narrow the problem. These messages can be seen bei Debug Viewer.Maybe one of these techniques will help you to tackle down your problem.