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

Crystal Report does not accept login information using MySql and ASP.Net

$
0
0

I am using Visual Studio 2012 Ultimate , MySQL Database , MySQL ODBC 5.1 Driver

I have created a user DSN from Administrative tool in Control Panel (same on both my development PC and Server computer i-e Windows Server 2008)

I have deployed web application from my PC to Server using IIS 7.0 and when i access it from remote computer through,then crystal report asks for login parameters and don't accept credentials.

i am using the following code.

 

 protected void btn_search_Click(object sender, EventArgs e)    {        string databaseName = "hr";        string serverName = "192.168.XX.XX";        string userID = "User";        string pass = "xxxxxxxxx";        ReportDocument reportDocument = new ReportDocument();        string reportPath = Server.MapPath(@"~/GeneralEmpReports/test.rpt");        reportDocument.Load(reportPath);                reportDocument.SetDatabaseLogon(userID, pass, serverName, databaseName);                reportDocument.SetParameterValue("D", tbx_ddoCode.Text.ToUpper());        CrystalReportViewer1.ReportSource = reportDocument;    }

Viewing all articles
Browse latest Browse all 3636

Trending Articles



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