title: Error message "Compiler Error Message: CS1525: Invalid expression term '}'"
body: <p>I have this piece of code which gives me the error:</p>
  <blockquote>
  <p>Compiler Error Message: CS1525: Invalid expression term '}'</p>
  </blockquote>
  <p>The error indicates the closing braces in line 69:</p>
  <pre class="lang-none prettyprint-override"><code>Line 67:              @ibItem.ToString()
  Line 68:              @ibCount++
  Line 69:          }
  Line 70:      &lt;/div&gt;
  Line 71:      &lt;!-- Carousel nav --&gt;
  </code></pre>
  <p>Code:</p>
  <pre><code>@{int ibCount = 0;}
  @foreach (var ibItem in Model.imagePath)
  {
         @ibItem.ToString()
         @ibCount++
  }
  </code></pre>
  <p>Can I solve the issue?</p>