Public Hotfix Patch for VS "Index was outside the bounds of the array" Publish Website Issue
Two weeks ago I posted about the availability of a public hotfix patch for some ASP.NET 2.0 compilation issues. You can read about this patch in my post here.
In the comments of that post several people asked about an issue they've encountered with Visual Studio SP1 when they use the "Publish Website" command with a web project configured to use the built-in ASP.NET Development Web Server with a "/" as the virtual path (a cool technique that I previously posted a tip/trick about).
Specifically, people who have installed VS 2005 SP1 have reported encountering an "Index was outside the bounds of the array" error message during publishing:
This bug was unfortunately a regression in VS 2005 SP1.
The good news is that we have just posted a public hotfix for the issue that you can directly download here. Omar Khan has also posted more details about the issue and patch in the WebDevTools Blog on MSDN here (which I highly recommend subscribing to).
Important: People sometimes ask me whether they should install QFE HotFixes proactively (before they ever see an issue). I always recommend against doing this - since QFE hotfixes go through targeted testing (to verify a specific issue is fixed), and don't go through a complete product end to end sign-off. As such, I'd recommend only applying one of if you are running into the specific issue it targets above.
If you have any problems installing the patch or find that you still see compilation issues after you install it, you'll want to contact Microsoft product support for assistance and they'll help debug it further. Calls to Microsoft Product Support are free if they are related to a product bug (either a QFE HotFix request or a product bug you are running into). You can find details on how to contact Microsoft product support on this page (it allows you to lookup the local phone number to use by country).
Hope this helps,
Scott