tags:

views:

20

answers:

0

Hello,

My asp.net application execute WebPageManipulation.exe console app which do web page manipulation. WebPageManipulation.exe use WebBrowser .NET control which sometimes display some JS Alerts or Print Dialogs. Because my ASP.NET and WebPageManipulation.exe applications runs under Network Service account, they stop working when WebBrowser throw dialog.

I have crated code which automatically kills such dialogs, but that code do not work because IIS run under Network Service account with "Interact with Desktop" set to false.

I am not use is it good idea to enable "Interact with Desktop" on IIS because that may bring security issues.

Any ideas how this problem could be solved?

        string enginePath = Server.MapPath(@"~/engine/WebPageManipulation.exe");
        System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo(enginePath);
        System.Diagnostics.Process p = System.Diagnostics.Process.Start(info);
        p.WaitForExit();

regards, Tomas