title: VB.NET: error BC30389: 'i' is not accessible in this context because it is 'Friend'
body: <p>I maintain an ASP.NET/VB.NET website that targets .NET 3.5. I used to build with no issues. all of the sudden I start getting building errors:</p>
  
  <p>error BC30389: 'i' is not accessible in this context because it is 'Friend'</p>
  
  <p>for every single-letter for loop control variable. for example:</p>
  
  <pre><code>For i = 0 To oDataTable.Columns.Count - 1
  strHtml += "&lt;td style='border : 1px solid black; font-size :13pt;'&gt;" +         oDataTable.Columns(i).ColumnName + "&lt;/td&gt;"
  Next
  </code></pre>
  
  <p>If I change the var name from 'i' to 'ii' it goes away but that's not an option because we use for loop control vars like that in a million places in this site. I have never seen this type of errors before.</p>
  
  <p>Here are my compiler settings:</p>
  
  <pre><code>&lt;compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"&gt;
  &lt;providerOption name="CompilerVersion" value="v3.5"/&gt;
  &lt;providerOption name="OptionInfer" value="true"/&gt;
  &lt;providerOption name="WarnAsError" value="false"/&gt;
  &lt;/compiler&gt;
  </code></pre>
  
  <p>The only thing new on my work station is that I installed .NET 4.5.2. </p>
  
  <p>Any help would be greatly appreciated. </p>