[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Error loading report on web

Posted on 2006-04-12
Medium Priority
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

Accepted Solution

gopatinc earned 1000 total points
ID: 16441078
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?

Author Comment

ID: 16445816
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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 …
Integration Management Part 2
Loops Section Overview
Suggested Courses
Course of the Month19 days, 11 hours left to enroll

873 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