i have developed crystal reports (vb.NET 2003 version)
it asks for Login and server name etc.
i mena in report viewer login window comes .. this happens when the server is changed
for example client side or installatin site..

but in my code i am also allocating login info and stuff run time.

belolw is the code that does that

rep.Load(Application.StartupPath & "\report\" & rptFileName)
' loading rpt file

CrystalReportViewer1.ReportSource = rep
' rep variable is report document

CrystalReportViewer1.SelectionFormula = rptSelectFormula
'-- below constr is the connection string info for SQL server
'-- i am splitting information to get server name and pwd and uid stuff
Dim tempservinfo() As String = Split(conStr, ";")
Dim server = Split(tempservinfo(0), "=")
Dim database = Split(tempservinfo(1), "=")
CrystalReportViewer1.LogOnInfo(0).ConnectionInfo.S erverName = server(1)
CrystalReportViewer1.LogOnInfo(0).ConnectionInfo.D atabaseName = database(1)
If tempservinfo.Length > 3 Then
Dim uname = Split(tempservinfo(2), "=")
Dim pword = Split(tempservinfo(3), "=")
CrystalReportViewer1.LogOnInfo(0).ConnectionInfo.U serID = uname(1)
CrystalReportViewer1.LogOnInfo(0).ConnectionInfo.P assword = pword(1)
End If

in above code everything works fine i have checked while doing debugging and all information goes properly but then also that login window comes

any help would be helpfull ASAP plz
thanx in advance