English 中文(简体)
如何利用伙伴关系在2008年Windows上安装EXE文档。 NET
原标题:How to execute EXE file on Windows 2008 using ASP.NET

如何利用伙伴关系在2008年Windows上安装EXE文档。 NET和IIS7? 我试图在下面制定法典,但似乎不可行。 法典执行时没有任何错误,但我看不到进程清单中的“灯塔”。 如果我使用ASP,所有东西都会做罚款。 NET开发商服务器,但与IIS7无关。

string enginePath = "notepad";

var password = new System.Security.SecureString();
foreach (char character in ConfigurationManager.AppSettings["Credentials"])
    password.AppendChar(character);

var p = new Process
            {
                StartInfo =
                    {
                        FileName = enginePath,    
                        UseShellExecute = false,
                    }
            };


p.StartInfo.UserName = "Administrator";
p.StartInfo.Password = password;

p.Start();
问题回答

针对安全关切,微软公司不断加大了对国际会计准则进程的孤立,因此,你不能(或我没有找到能够允许你......的工作)直接援引国际会计准则适用范围之外的任何东西。 你可以建立一个Windows服务,利用WCF渠道间接跨越这一边界。 这一服务(被授权与台式互动)反过来又可以发射你的笔记。

实现这一点,是判断力的bit脚石,我当然有兴趣看到其他人是否有更好的答案。

我删除了以下线,并突然开始工作。 我可以解释一下,如何能够在IIS7账户下开销,但它正在发挥作用。

p.StartInfo.UserName = "Administrator";
p.StartInfo.Password = password;




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签