Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


October 2001

Curing ASP-Run Executable Problems in IIS 5.0


RSS
Subscribe to Windows IT Pro | See More Active Server Pages (ASP) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

We use ServerObjects' AspExec ActiveX control to run an executable from Active Server Pages (ASP). This control has always worked for us under Microsoft Internet Information Server (IIS) 4.0 on Windows NT 4.0. However, the executable isn't working on our Windows 2000 server. The program is running in a hidden window, so we can't troubleshoot the problem. The executable won't terminate the process, and we can't kill it through Task Manager, which displays an Access denied error. The problem isn't specific to our executable. Do you know of another way to run executables from ASP, or can you tell us how to stop the executable or make the program run in a visible window?

Your problem relates to differences between the default application protection and isolation settings in Internet Information Services (IIS) 5.0 and in IIS 4.0. These settings control how applications run on the server. Applications can run in the same process as the Web server (Low setting), in a separate pooled process with other applications (Medium setting), or in an isolated separate process (High setting). You can configure these settings on the Home Directory tab of your IIS system's Web Site Properties dialog box, which Figure 1 shows.

The default setting under IIS 5.0 on Win2K servers is Medium (Pooled). When a site's Application Protection option is set to Medium (Pooled), IIS uses a program called dllhost.exe to execute DLLs, and you end up with an orphaned process. Your program probably requires a setting of Low (IIS Process), which is the default under NT 4.0 and IIS 4.0 and the reason the executable worked under those versions. You should be able to solve the problem by changing the Application Protection option to Low (IIS Process) for all sites on which ASP uses AspExec to call executables. (For more information about the differences between IIS 5.0 and IIS 4.0 and about IIS application settings, see Brett Hill, "Migrating from IIS 4.0 to IIS 5.0," September 2001, and Ken Spencer, "Introducing Internet Information Services 5.0," http://www.win2000mag.com, InstantDoc ID 8212.)

End of Article



Reader Comments
Sometimes working with legacy programs is a hassle. Who remembers all that asp stuff? The first line of this article was all I needed to get going again. Thanks!

annethom99 August 24, 2009 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Confirmed: Battery Life Issues Not Windows 7's Fault

Microsoft on Monday issued a lengthy statement about the recent Windows 7 battery controversy, echoing my assessment from earlier in the day, but backing it up with hard, cold evidence. ...

Battery Life Issues Almost Certainly Not Windows 7's Fault

While Microsoft is still investigating a notebook battery life issue that was supposedly caused by Windows 7, some interesting trends have emerged. ...

Microsoft Warns of Windows Version Expirations

Microsoft warned that this year will see three out-of-date Windows versions slip into retirement. ...


Windows OSs Whitepapers Protecting Microsoft SharePoint

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2010 Penton Media, Inc. Terms of Use | Privacy Statement