Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

Batch files are not running properly on IIS 8

$
0
0

I'm trying to run a web application on Azure VM. The website uses some batch files (.bat) to run some tasks. I realized there might be some issue with .bat files, so I tried to fix the issue:

Windows Server 2012 R2 (Azure)

IIS 8

1) Set the "Identity" of "Application Pool" to "LocalSystem"

2) Convert the .bat files to .exe and made sure it's x64 since the OS is the same

3) Give the "Full Control" permission to "EVERYONE"

4) Edit Permissions in "Handler Mapping" to allow for executable files

5) Registered the .exe and it's .dll files in "ISAPI and CGI Restrictions"

6) Allowing ASP.NET worker process to run in SYSTEM by adding:

<processModel userName="System" password="AutoGenerate"/><identity impersonate="true" userName="System" password="AutoGenerate"/>

into "machine.config" (Not sure if it was all I needed to do)

7) Adding Virtual Directory for the application in IIS

If I double click on the .exe files, they will run properly. But when I'm accessing them through the website, the .exe file appears in task manager, but nothing will happen.

I would appreciate any suggestion.


Viewing all articles
Browse latest Browse all 7363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>