Error loading report on web

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.
LVL 1
groupedsiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gopatincCommented:
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?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
groupedsiAuthor Commented:
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
            myTable.ApplyLogOnInfo(myTableLogonInfo)
        Next
    End Sub

and it worked
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.