title: "Index was outside the bounds of the array" error while publishing a .NET Web application
body: <p>I have a simple .NET Web application that works fine when I run it on my local machine. However, when I try to publish the application to a local folder, I see the error that says &quot;Index was outside the bounds of the array.&quot; This error, I'm afraid, is very vague and I am not able to figure out what the issue is.</p>
  <img src="https://i.stack.imgur.com/pVBIm.jpg">
  <p>I am creating this project on Visual Studio community 2019.</p>
  <p>Can someone please help me figure out what the issue is :)</p>