Error loading report on web

Posted on 2006-04-12
Last Modified: 2008-01-09
I did a web report in crystal report XI release 2 for VS 2005 .net (vb) when i test it on my devlopement server it works fine. The problem(s) came when i try to implement it on web server, i got to change the database (mine is sqlserver2005 and his is sqlexpress) then i got the following message in my web page :
" Impossible de démarrer la connexion. Détails : [Code du fournisseur de la base de données : 17 ] Impossible de démarrer la connexion. C:\DOCUME~1\E60-DEV\ASPNET\LOCALS~1\Temp\Insectes {1C1C5FE9-3B3D-4D3D-9350-B295A90395E6}.rpt Détails : [Code du fournisseur de la base de données : 17 ] "

sadly it's in french basicly it says : impossible to start connection database provider code : 17.

and here's the code i use to change my logon :

    Dim counter As Integer

        For counter = 1 To CrystalReportViewer2.LogOnInfo.Count
            With CrystalReportViewer2.LogOnInfo(counter - 1).ConnectionInfo
                .ServerName = "********"
                .DatabaseName = "********"
                .UserID = "******"
                .Password = "******"
            End With
        Next counter

i just don't know if some permission aren't properly set on the server or if it's in the report file it can't connect.
Question by:groupedsi
    LVL 5

    Accepted Solution

    I am not an expert in this, but it would be a good idea if you could check, on your delevopment server, what error message you receive when you change the .ServerName to some invalid server name.

    When you change the server connection, doesn't the crystal report need to update the database connection information?
    LVL 1

    Author Comment

    i used that :
    Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo, ByVal myReportDocument As ReportDocument)
            Dim myTables As Tables = myReportDocument.Database.Tables
            For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables
                Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo
                myTableLogonInfo.ConnectionInfo = myConnectionInfo
        End Sub

    and it worked

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
    There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now