AtlServer on IIS 7.0

Oct 25, 2007 at 3:54 PM
These instructions have been tested on Vista IIS7.0 and Windows Server 2008 IIS 7.0. It is assumed you know your way around IIS 7.0. If not, you will have to refer to www.iis.net and MSDN.

These two questions are answered below:

1. Does AtlServer work on IIS 7.0?
2. What are the minimum settings that need to be applied to get the AtlServer web service running in this configuration?

Test Bed
Vista Development machine: Build environment with VS 2005 (latest SP and updated installed)
Vista Production Machine: New Install of Vista Enterprise Edition with all latest updates
On the build machine:
Create default AtlServer project using VS2005 (HelloWorld). Statically link the ATL libraries. Build a release version.

On the target machine, Default install of IIS and include 'ISAPI Extensions' by checking that option in the 'World Wide Web Services' 'Application Development Features' section during install (or if already installed ensure that feature is checked when in 'Turn Windows Features on or off'.

Add an Application to the Default web Site. Note the ApplicationPath should match your project name, and Path I chose was under WWWROOT\AtlServerTest (yours may be different)

Copy files from the project (htm page, disco and the two DLL’s generated) to your application directory on the target machine.

Add the script mapping to your application. Click on the application in the InetMgr choose Handler Mappings and Add the Script Map. The 'Request Path' will be your dll without ISAPI in the name. The Executable will be the dll with ISAPI in the name. Say yes to the next dialog to allow the ISAPI to exectute.

I got a 500 error when testing and discovered the VC redistributable files were not on the target server. I ran vcredist_x86 from my development machine and it all worked fine!

1. Does AtlServer work on IIS 7.0? Yes
2. What are the minimum settings that need to be applied to get the AtlServer web service running in this configuration? IIS with ISAPI Extensions configured and the MSVC Runtime installed. Scriptmap needs to be defined for the Service DLL that maps it to the ISAPI dll.


Note on deploying the ATLServer project on the development machine:
Basically, simply enable all the IIS 6.0 compatibility features in IIS through the Add Windows Components UI and run Visual Studio as Administrator (if using UAC).
The one rub is that it does not seem to do the scriptmap portion that maps the AtlServerTest.dll to the AtlServerTestISAPI.dll in Vista. You will have to do that step (see above) manually.
Nov 14, 2007 at 9:56 PM
Does anyone know the steps to get Visual Studio 2005 debugging to work via F5 on Vista? I have been pulling my hair out with no luck... Thanks to anyone that can help...
Dec 4, 2007 at 2:50 PM


mattdavison wrote:
Does anyone know the steps to get Visual Studio 2005 debugging to work via F5 on Vista? I have been pulling my hair out with no luck... Thanks to anyone that can help...


Not sure exactly what you are asking here. If you are debugging an ISAPI then the same steps you would use in other OSes applies. If this is a general Debugging question, you would be better served asking this on the MSDN newsgroups (or opening a support case with Microsoft).