Results 1 to 3 of 3

Thread: File not found exception

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2010
    Posts
    93

    File not found exception

    I am trying to produce a report with an SQL string with a certain critea and then I get this error can anyone help how can I go ahead.The error is "Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified."

    The code that produced the error.

    Code:
     Dim iSql As String = "select * from myQuery where ID =14"
            Dim Conn As OleDbConnection = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Recordsets\Recordset\Recordset\bin\Debug\MyDB.accdb")
            Dim dt As DataTable = New DataTable
            Dim da As New OleDbDataAdapter(iSql, Conn)
            da.Fill(dt)
            myReport.SetDataSource(dt)
            CrystalReportViewer2.ReportSource = myReport
            CrystalReportViewer2.Refresh()
    Attached Images Attached Images  

  2. #2
    Hyperactive Member
    Join Date
    Jul 2010
    Location
    UK
    Posts
    288

    Re: File not found exception

    Have you checked all required assemblies are loaded and being used.
    One day I found VB.
    Now I live in the state of Confusion.

  3. #3
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,166

    Re: File not found exception

    The error message says it can't find a file. Have you checked if the file is in the location that the program is looking for it. Is this program running on the same machine that you developed it on? Or, have you installed this app on another machine?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width