<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Configuration and Deployment</title><link>http://forums.asp.net/26.aspx</link><description>Configuring and deploying ASP.NET applications - web.config, \bin, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Executing exe file in asp.net not working in server.</title><link>http://forums.asp.net/thread/2451334.aspx</link><pubDate>Fri, 27 Jun 2008 05:44:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2451334</guid><dc:creator>RamsZone</dc:creator><author>RamsZone</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2451334.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2451334</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi &lt;strong&gt;Benson Yu,&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Thankyou verymuch&amp;nbsp; for your valuable reply. &lt;/p&gt;&lt;p&gt;I will try it out.&lt;/p&gt;&lt;p&gt;Thanks again.&lt;/p&gt;&lt;p&gt;Rams.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Executing exe file in asp.net not working in server.</title><link>http://forums.asp.net/thread/2444907.aspx</link><pubDate>Wed, 25 Jun 2008 04:53:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2444907</guid><dc:creator>vjay</dc:creator><author>vjay</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2444907.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2444907</wfw:commentRss><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;u havent given the full permission to explorer... but be carefull not to give full permisssion for security purposes..try to give only for read/write and not for modify....&lt;/p&gt;</description></item><item><title>Re: Executing exe file in asp.net not working in server.</title><link>http://forums.asp.net/thread/2441952.aspx</link><pubDate>Tue, 24 Jun 2008 04:25:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2441952</guid><dc:creator>Benson Yu - MSFT</dc:creator><author>Benson Yu - MSFT</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2441952.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2441952</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;ramszone:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;When I host the application in the server(&lt;strong&gt;&lt;em&gt;&lt;u&gt;Windows server 2003&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt; ), the exe file is not executing.&lt;/p&gt;
&lt;p&gt;I have given full permissions to &lt;strong&gt;&lt;em&gt;&lt;u&gt;aspnet&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt; user.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi Rams,&lt;/p&gt;
&lt;p&gt;Since your operating system on the server is Windows Server 2003, the default process identity of ASP.NET is “&lt;em&gt;Network Service&lt;/em&gt;” instead of “&lt;em&gt;ASPNET&lt;/em&gt;”. To solve this issue, you can change the identity of the corresponding application pool to “&lt;em&gt;Local System&lt;/em&gt;”.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.&amp;nbsp;Open IIS manager.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp;Expand the “&lt;em&gt;Application Pools&lt;/em&gt;” node.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.&amp;nbsp;Right click the coresponding application pool, and then select “&lt;em&gt;Properties&lt;/em&gt;”.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.&amp;nbsp;Click the “&lt;em&gt;Identity&lt;/em&gt;” tab, and select the “&lt;em&gt;Local System&lt;/em&gt;” identity in the “&lt;em&gt;Predefined&lt;/em&gt;” dropdown list.&lt;/p&gt;
&lt;p&gt;However, the above method can result in security risk because the process identity of ASP.NET is too powerful. You may consider impersonating an authenticating user in code, which only for starting process. You can&amp;nbsp;find the code about&amp;nbsp;how to implement it in the following link:&lt;/p&gt;
&lt;p&gt;How to implement impersonation in an ASP.NET application&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/306158"&gt;http://support.microsoft.com/kb/306158&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For your reference, you will know the&amp;nbsp;reason&amp;nbsp;why ASP.NET cannot start a process from the following article though it applies to ASP.NET 1.0.&lt;/p&gt;
&lt;p&gt;Unable to Start a Process from ASP.NET&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/555134"&gt;http://support.microsoft.com/kb/555134&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Executing exe file in asp.net not working in server.</title><link>http://forums.asp.net/thread/2430563.aspx</link><pubDate>Wed, 18 Jun 2008 10:20:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2430563</guid><dc:creator>RamsZone</dc:creator><author>RamsZone</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2430563.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2430563</wfw:commentRss><description>&lt;p&gt;Hi niharnayak,&lt;/p&gt;&lt;p&gt;Thanks for reply.&lt;/p&gt;&lt;p&gt;But I have already given full permissions to aspnet user.&lt;/p&gt;&lt;p&gt;Is there any other settings I need to change?&amp;nbsp;&lt;/p&gt;&lt;p&gt;Rams.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Executing exe file in asp.net not working in server.</title><link>http://forums.asp.net/thread/2430306.aspx</link><pubDate>Wed, 18 Jun 2008 08:33:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2430306</guid><dc:creator>niharnayak2003</dc:creator><author>niharnayak2003</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2430306.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2430306</wfw:commentRss><description>&lt;p&gt;When you are going to run the exe from IIS you need to provide the full permission in your webserver. then only it will run.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Executing exe file in asp.net not working in server.</title><link>http://forums.asp.net/thread/2430175.aspx</link><pubDate>Wed, 18 Jun 2008 07:42:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2430175</guid><dc:creator>RamsZone</dc:creator><author>RamsZone</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2430175.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=2430175</wfw:commentRss><description>&lt;p&gt;Hi Everyone&lt;/p&gt;&lt;p&gt;I have developed a web application that runs an exe file for one event.&lt;/p&gt;&lt;p&gt;It working fine in my local machine.&lt;/p&gt;&lt;p&gt;When I host the application in the server(Windows server 2003 ), the exe file is not executing.&lt;/p&gt;&lt;p&gt;I am using following code to run the exe file.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Process batch = new Process();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; batch.StartInfo.FileName = SparseImageToolPath;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; batch.StartInfo.Arguments = args;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; batch.StartInfo.RedirectStandardInput = false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; batch.StartInfo.RedirectStandardOutput = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; batch.StartInfo.CreateNoWindow = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; batch.StartInfo.UseShellExecute = false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; batch.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; batch.EnableRaisingEvents = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; batch.Exited += delegate(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (BatchCompleted != null)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BatchCompleted(sender, e);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; batch.Start();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; batch.WaitForExit(); &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have given full permissions to aspnet user.&lt;/p&gt;&lt;p&gt;Can anybody please help me.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;p&gt;Rams.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>