Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  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

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
CES 2009: Ballmer Announces Windows 7, Windows Live, Live Search Milestones

During his first-ever Consumer Electronics Show (CES) 2009 keynote address last night in Las Vegas, Microsoft CEO Steve Ballmer announced the pending public availability of a feature-complete Windows 7, the final version of Windows Live Essentials, and ...

10 Reasons to Deploy Windows Vista

The decision to upgrade your XP systems to Vista is simple when you consider features such as easier backup, a great desktop search, and vastly improved security options. ...

10 Reasons Not to Deploy Windows Vista

The decision to upgrade to Vista has to make business sense, but many companies find the costs in training and application compatibility problems outweigh any benefits Vista brings. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

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 Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


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 Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing