title: CrystalDecisions.Web reference version changes suddenly when run the webapp
body: <p>I'm breaking my head with this issue, I have a webapp that has a report using crystal report, in the development pc it works fine, but when copy the same project to another pc, when I load the project (VS 2003) the following msg appears:</p>
  
  <p><code>One or more projects in solution need to be updated to use Crystal Reports XI Release 2. If you choose "Yes", the update will be applied permanently...</code></p>
  
  <p>I choose "Yes" and after that I can see that CrystalDecisions.Web reference has the correct version, and location according to the develpment machine, in this case: 11.5.3300.0.</p>
  
  <p>But when run the webapp, I can see when the version and path suddenly changes to: 11.0.3300.0.</p>
  
  <p>And when trying to see the report the following error appears:</p>
  
  <p><strong>Parser Error Message:</strong> The base class includes the field 'CrystalReportViewer1', but its type (CrystalDecisions.Web.CrystalReportViewer) is not compatible with the type of control (CrystalDecisions.Web.CrystalReportViewer).</p>
  
  <p><strong>the asp.net has the following:</strong></p>
  
  <pre><code>&lt;%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %&gt;
  </code></pre>
  
  <p>How is this possible? what's happening here?</p>
  
  <p><strong>EDIT</strong>
  This is what I did:</p>
  
  <p>the wrong version (11.0.3300.0) was located at:
  <code>C:\Program Files\Common Files\Business Objects\3.0\managed</code></p>
  
  <p>and the right version (11.5.3300.0) is located at:
  <code>C:\Program Files\Business Objects\Common\3.5\managed</code></p>
  
  <p>So I just deleted the files of the wrong solution, and I made it work in my new computer, no more errors when running the webapp, the report shows fine.</p>
  
  <p>But when try to do the same thing in production server, a different error came out, now an exception:</p>
  
  <p><code>This report could not be loaded due to the following issue: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.</code></p>
  
  <p>Any idea what could be causing this error now?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>Try
              Dim cr As New ReportDocument
              cr.Load(strpath)
              cr.SetDatabaseLogon("user", "pwd")
              Select Case rt
                  Case 1
                      cr.SummaryInfo.ReportTitle = "RMA Ticket"
                  Case 2
                      cr.SummaryInfo.ReportTitle = "Service Ticket"
              End Select
              'cr.SummaryInfo.ReportTitle = tt
              cr.SetParameterValue("TicketNo", tn)
              'cr.SummaryInfo.ReportComments = comment
              CrystalReportViewer1.PrintMode = CrystalDecisions.Web.PrintMode.ActiveX
              CrystalReportViewer1.ReportSource = cr
              CrystalReportViewer1.ShowFirstPage()
              'cr.Close()
              'cr.Dispose()
          Catch ex As Exception
              MsgBox1.alert("This report could not be loaded due to the following issue: " &amp; ex.Message)
          End Try
  </code></pre>