Monday, March 12, 2007

"Index was outside the bounds of the array" Error and VS.NET 2005 SP1

After upgrading my Visual Studio.NET 2005 installation to SP1, none of my website applications would publish. Aggravating. I started getting the hideously vague error "Index was outside the bounds of the array." Here are some suggestions on how to handle this problem.

http://forums.asp.net/thread/1499559.aspx

http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx

My solution was to go into my Projects/[project name]/ directory and rename the current directory, there from my last Publish run, and then to try and publish it again. This worked for all of my projects.

1 comment:

kannan10 said...

gr8 it works. the other way is search "Websites.xml" in C:\\Users directory. remove the reference of the projects an restart your VS2005 it will work.