日期:2014-05-20  浏览次数:20413 次

水晶报表错误,着急中
登录失败。  
说明:   执行当前   Web   请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。  

异常详细信息:   CrystalDecisions.CrystalReports.Engine.LogOnException:   登录失败。

源错误:  

执行当前   Web   请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。    

堆栈跟踪:  


[LogOnException:   登录失败。]
      .F(String    ,   EngineExceptionErrorID   
)
      .A(Int16   ,   Int32   )
      .@(Int16   )
      CrystalDecisions.CrystalReports.Engine.FormatEngine.GetLastPageNumber(ReportPageRequestContext   reqContext)
      CrystalDecisions.ReportSource.LocalReportSourceBase.GetLastPageNumber(ReportPageRequestContext   reqContext)
      CrystalDecisions.Web.ReportAgent.get_LastPageNumber()
      CrystalDecisions.Web.ReportAgent.u(Boolean   N)
      CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs   e)
      System.Web.UI.Control.PreRenderRecursiveInternal()
      System.Web.UI.Control.PreRenderRecursiveInternal()
      System.Web.UI.Control.PreRenderRecursiveInternal()
      System.Web.UI.Page.ProcessRequestMain()

 


--------------------------------------------
版本信息:   Microsoft   .NET   Framework   版本:1.1.4322.573;   ASP.NET   版本:1.1.4322.573

------解决方案--------------------
//#region 解决登录错误问题
// TableLogOnInfo logonInfo = new TableLogOnInfo();//
// foreach( CrystalDecisions.CrystalReports.Engine.Table tb in ReportDoc.Database.Tables)
// {
// logonInfo = tb.LogOnInfo;
// logonInfo.ConnectionInfo.ServerName = "(local) ";
// logonInfo.ConnectionInfo.DatabaseName = "**** ";//
// logonInfo.ConnectionInfo.UserID = "sa ";
// logonInfo.ConnectionInfo.Password = "***** ";//
// tb.ApplyLogOnInfo(logonInfo);
//
// }
// #endregion

微软的webcast有视频教程下载