Hotfix Update for “Index was outside the bounds of the array.” Error when Publishing a Website

Hotfix Update for “Index was outside the bounds of the array.” Error when Publishing a Website

  • Comments 9

I am glad to announce that an updated version of a Publish Website hotfix for VS 2005 SP1 is now available for download and includes Vista support.

 

In April we released a hotfix to address an “Index was outside the bounds of the array” error that prevented a website to be published.  You see this issue in VS 2005 SP1 when you execute the Publish Website command for a website that was configured to use “/” as the Virtual Path.  This Virtual Path property was introduced in SP1 to allow running a website in the root folder of the built-in ASP.NET Web Server. There are some previous posts here and here that give more details about the patch.

 

 

In the comments for the previous posts, people asked about this fix not working if you have the VS 2005 SP1 update for Vista installed.  We have confirmed the issue, and this patch has been updated now to also work with the VS 2005 Update for Vista.

 

Hope this helps!

 

-Alison Lu

Visual Studio Web Tools

 

Leave a Comment
  • Please add 1 and 7 and type the answer here:
  • Post
  • Is there a trick to the install?  Ran this on Vista and still a no go not updating the DLL.  Any help would be appericated.

    Chris

  • Hi Chris,

    I don't remember using any special tricks when installing.  Do you see any error messages during the install?

    Also, what is the version of your mswebprj.dll? You can check by going to C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\mswebprj.dll and rt-click to bring up its properties.  It should be something like 50727.892 if the patch was applied correctly.

    Thanks,

    Alison

  • 50727.859 12/5/2006 No errors just a clean run and no update.  Error persists.  Any ideas?

    VS2005 SP1 for Vista

  • Same issue here... it updated the DLL to version 8.0.50727.892 however the symptoms are still the same...  there appears to have been no effect.  No error messages on the install, it appeared to run just fine.

  • Hi Chris and dmuch,

    I will try to repro the problems here and install VS 2005 + SP1 update for Vista + hotfix.

  • Hi All, I tried on a clean machine with no problems.  Let me try to get some more info from you.

    Chris,

    The .859 version of the .dll is unfamiliar to me.  If the VS2005 SP1 update for Vista was installed correctly, the .dll should have version .867.  Does your machine have SP1 on Vista Beta version instead of the final release?  You will need to install the final SP1 Vista update (see my link in the post).

    dmuch,

    How are you publishing your project?  to File System? FTP? Also, did you have VS or the website project open while you were applying the patch? If you create a new website with nothing in it and set Virtual Path to "/" do you still get the error?

    Thanks,

    Alison

  • This fixed this problem for me!  Thanks!  Installed without a problem!

  • Did not work for me.  This bug still plagues me and sucks away my productivity.  (I spent 2 hours waiting for it to finish and got no success out of it).

  • Chad Selph - can you confirm the version of mswebprj.dll? Go to C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\mswebprj.dll and rt-click to bring up its properties. Click the Version tab.

    Is the version 8.0.50727.89?

Page 1 of 1 (9 items)