ConfigMgr client problems downloading packages that include .aspx pages

Recently I have looked into an issue with package downloads freezing half way through the download and never complete. This is normally a fairly simple process of checking in the IIS logs for what file is stopping the download and then changing the applicationhost.config file to add the file extension, under requestFiltering section and set it to true (or simply change allowUnlisted to be true and remove all the pre-defined extensions completely). Unfortunately for this particular file, with a .aspx extension, this method didn’t work.

This became quite frustrating but after a bit of reading it looks like that it is actually a limitation of BITS, which is by design. The problem is that by default, IIS passes requests for certain file types to be serviced by ASP.NET. Files with extensions such as .aspx, .asmx and .ashx are mapped to the ASP.NET ISAPI extension (Aspnet_isapi.dll) which means the files are never downloaded by BITS.

Initially I was very annoyed as it seems pretty ridiculous it can’t be changed and would mean us having to edit a number of our packages. Thankfully, there is a work around though.

Within IIS, under Application Pools, there should be a SMS Distribution Points Pool and the Managed Pipeline setting will be set to ‘Integrated’. I changed this setting to ’Classic’ as the problem affects, among others, managed handlers in IIS 7.0 that are running in Integrated mode. Once we changed this setting, then ran an IISRESET, the files downloaded fine.

Obviously, you don’t want to do this on all your sites manually, so you can also this below script:

%WINDIR%\system32\inetsrv\appcmd set apppool “SMS Distribution Points Pool” /managedPipelineMode:”Classic”

Finally, this shouldn’t cause any other problems as ConfigMgr 2007 was designed to work with IIS 6, where only the ’Classic’ mode was available.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: