Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Need assistance with SetDatabaseLogon

$
0
0

I have not used Crystal Reports since 2001.  This is my first report. I am using CR 2008 (12.3.0.601) and Visual Studio 2008 on an ASP site.

 

I am receiving a 'Log On Failure' when I attempt to reference another server (production server) or my local server. It works fine on my development server.  My IT Admin. has assured me that CR has been installed. I am suspecting an issue on the server side but could be wrong.

 

This is a smiple Test.rpt report that I created. Here is my code.

 

        crystalReport.Load(Server.MapPath("\reports\test.rpt"))

        crystalReport.SetDatabaseLogon("user", "password", "grddev02", "database")               '  this one works

 

       ' These two do not work

       ' crystalReport.SetDatabaseLogon("user", "password", "grdlt070", "database")            

       ' crystalReport.SetDatabaseLogon("user", "password", "GRDSQL02", "database")            

 

        crystalReport.VerifyDatabase()

        CrystalReportViewer1.ReportSource = crystalReport


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>