试图从一个asp.net应用程序运行的过程 [英] trying to run a process from an asp.net application

查看:160
本文介绍了试图从一个asp.net应用程序运行的过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在服务器上运行的应用程序。我有一个可执行文件,它运行得很好通过终端服务我自己的权限。它还通过asp.net运行良好,我自己的机器上,当我跑我的VS现场。

I need to run an application on the server. I have an executable file, which runs perfectly well on my own permissions through terminal services. It also runs well on my own machine through the asp.net when I run the site with my VS.

当我试图运行我的网站上真正的IIS,只是忌用。我试图改变StartInfo的凭据我自己,也试过林presonate =在web.config中对自己如此。在这两种情况下,它仍然没有奏效。

When I tried running my site on the real IIS it just hanged. I tried changing the credentials of the StartInfo to my own, and also tried Impresonate=true in the web.config to myself. In both cases it still didn't work.

我不断收到以下错误(当在我的凭据运行,然后输入/控制台上的服务器)

I keep getting the following error (when run under my credentials and entering the server on /console)

我也有允许服务与桌面交互,在IIS选项选中。

I also have "Allow service to interact with desktop" checked in the IIS options.

这里有人知道我缺少的是什么?有些选项我应该检查,或做什么,我需要的,也许一些其他的方式?

Anyone here knows what I am missing? Some option I should check, or maybe some other way of doing what I need?

感谢。

推荐答案

尝试创建一个新的管理员帐户一个新的应用程序池。如果该工程从管理组中移除用户,并创建一个新的组与应用程序所需的权限。

Try creating a new app pool with a a new admin account. If that works remove the user from the admin group and create a new group with the necessary permissions for the app.

这篇关于试图从一个asp.net应用程序运行的过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆