在。net2005 上报表测试正常 数据都能带出来,并且能够根据筛选条件带出数据,但是只要一发布就出现问题 : 登录失败。详细资料: Error Code: 0x Source: ADODB.Connection Description: 未找到提供程序。该程序可能未正确安装。文件 C:\WINDOWS\TEMP\dop {BCFB1A78-C9DA-47C5-8C88-DD4D5DBA940A}.rpt 内出错:无法连接:错误的登录参数。各位大侠谁碰到过?? 期盼高手帮忙解决下 ~~~~~~~~~~~~我是个菜鸟,刚刚接触。请写得尽量详细些。下面是我的代码
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.Shared;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Web;public partial class _Default : System.Web.UI.Page
{
   
    private ReportDocument myReport;    private void ConfigureCrystalReports()
    {
       
        myReport = new ReportDocument();
        string reportPath = Server.MapPath("dop.rpt");
        myReport.Load(reportPath);
        
        ConnectionInfo connectionInfo = new ConnectionInfo();
        connectionInfo.DatabaseName = "";
        connectionInfo.UserID = "app";
        connectionInfo.Password = "007";
        connectionInfo.ServerName = "rod";        
        SetDBLogonForReport(connectionInfo, myReport);        
        CrystalReportViewer1.ReportSource = myReport;
    }    private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
    {
        Tables tables = reportDocument.Database.Tables;        foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
        {
            TableLogOnInfo tableLogonInfo = table.LogOnInfo;
            tableLogonInfo.ConnectionInfo = connectionInfo;
            table.ApplyLogOnInfo(tableLogonInfo);        }
    }
        private void Page_Init(object sender, EventArgs e)
    {
        ConfigureCrystalReports();
    }