Quantcast
Viewing all articles
Browse latest Browse all 3636

Error On Webserver

I get this error:

 

Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. SQL State: 08001 Native Error: Error in File C:\Windows\TEMP\cryVls1a33 {4BDD2EA8-A768-48B8-8C19-6732161B387F}.rpt: Unable to connect: incorrect log on parameters.

 

on the webserver when I try to run my CrystalReport in a CrystalReportViewer. It works fine while on my local host machine, but when it's moved to the webserver I get this error. The SQL database is on the same webserver that the program is and so is the rpt file.

 

Here's the conection code that I'm using;

 

        Dim Selected As String = ddlReport.SelectedItem.Text
        Dim ConnInfo As New ConnectionInfo

      

        With ConnInfo
            .ServerName = "server used"
            .DatabaseName = "database used"
            .UserID = "UserID"
            .Password = "Password"
        End With

 

        If Selected = "Pending License Renewal Fee" Then
            For Each cnInfo As TableLogOnInfo In Me.CrystalReportViewer2.LogOnInfo

                cnInfo.ConnectionInfo = ConnInfo

            Next
            Exit Sub
        End If

 

I also create a gridview of the data used in the crystal report and the gridview displays the correct data.

The icons all appear on the viewer, but no data. Why does it not display the data and why the error?


Viewing all articles
Browse latest Browse all 3636

Trending Articles