title: crystalReportViewer in windows application
body: <p>i'm using a code to send the ConnectionInfo to the crystalReportViewer</p>
  <pre><code>private void button1_Click(object sender, EventArgs e)
      {
          ConnectionInfo myConnectionInfo = new ConnectionInfo();
          myConnectionInfo.ServerName = &quot;192.168.3.58&quot;;
          myConnectionInfo.DatabaseName = &quot;SHRK-Traffic&quot;;
          myConnectionInfo.UserID = &quot;sa&quot;;
          myConnectionInfo.Password = &quot;pass&quot;;
          setDBLOGONforREPORT(myConnectionInfo);
          crystalReportViewer1.Visible = true;
      }
      private void setDBLOGONforREPORT(ConnectionInfo myconnectioninfo)
      {
          TableLogOnInfos mytableloginfos = new TableLogOnInfos();
          mytableloginfos = crystalReportViewer1.LogOnInfo;
          foreach (TableLogOnInfo myTableLogOnInfo in mytableloginfos)
          {
              myTableLogOnInfo.ConnectionInfo = myconnectioninfo;
          }
      }
  </code></pre>
  <p>i'm working with this code in web app  and it's working fine..but in windows app it show that error</p>
  <p><a href="https://i.stack.imgur.com/GtJgE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GtJgE.jpg" alt="error" /></a></p>
  
  <p>
  i'm getting an error</p>