title: the hidden expression for table contains an error: Object variable or with block variable not set
body: <p>I am trying to hide an SSRS column based on the ReportServerURL.  If it is on site A it will be hidden but if it is on Site B it will be shown.  This is the expression that I am using in the Column Visibility property.  <code>=IIf(Globals!ReportServerUrl.IndexOf("devrxanalytics") &gt;= 0, false, true)</code></p>
  
  <p>The problem is that it works once it is deployed to either sharepoint site, but when I try to view it in Visual Studio under preview, I get the following error: </p>
  
  <blockquote>
    <p>the hidden expression for table contains an error: Object variable or
    with block variable not set</p>
  </blockquote>
  
  <p>Not a big deal since it works on the site but how would I resolve this so that I may view the report in Preview mode?</p>