We have a website (Classic ASP) on Windows Server 2008 which is virtualized. We have had a runtime error problem when one ASP program executes an exe file which is created by VB6. I made a test ASP program (testexe.asp) and a test exe file (testmail.exe) which is created by VB6. In the live (actual) website, the below error appears when I execute the testexe.asp:
Microsoft VBScript runtime error '800a0046'
/testexe.asp, line 9
Here is the part of source code in the testexe.asp:
set WshShell = CreateObject("WScript.Shell")
Return = WshShell.Run("D:\…\testmail.exe", 0, False) <- line 9
We also have a website as test environment, and they have same structures. I have copied testexe.asp (calling same testmail.exe). In the test site, testexe.asp can execute testmail.exe successfully.
I configured full control permission for IUSR, Administrators, Users, and SYSTEM (for test) to testexe.asp and testmail.exe in both environments, and then I executed testexe.asp. It worked in the test site, but it didn’t work in the actual site.
I have compared the Application pools of them. The setting of Manual Recycle, Primary Memory Limit, and Virtual Memory Limit are different though we don’t think that these settings cause this problem.
I also compared below IIS settings of both sites, and these settings are same.
Here is Windows Server and IIS version:
Server: Windows Server 2008 standard
IIS: IIS 7
I can't find what is wrong with it. Please help!