N
NEWS
Hai to all,
I have a webform calling a report which was already generated in
crystalreports.
If i save my report In 'CrystalReports' with the Option "Savedata with
report",it is displaying that perticular data,
if i cancel that option and calling report it is giving an error .I am using
SqlServer as backend.All the connections were correct .
On pageload i have given the following code
Try
DBConnection()
con.Open()
CrystalReportViewer1.DisplayGroupTree = False
CrystalReportViewer1.ReportSource =
Server.MapPath("HOReport\rptEmployee.rpt"
Catch ex As Exception
Response.Write(ex.Message)
Finally
con.Close()
End Try
The error is ->
Logon failed.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException:
Logon failed.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[LogOnException: Logon failed.]
.F(String , EngineExceptionErrorID
) +506
.A(Int16 , Int32 ) +537
CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext
reqContext) +539
CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext
pageReqContext) +189
CrystalDecisions.Web.ReportAgent.u(Boolean N) +164
CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) +108
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1499
Can anyone help me how to solve it?
I have a webform calling a report which was already generated in
crystalreports.
If i save my report In 'CrystalReports' with the Option "Savedata with
report",it is displaying that perticular data,
if i cancel that option and calling report it is giving an error .I am using
SqlServer as backend.All the connections were correct .
On pageload i have given the following code
Try
DBConnection()
con.Open()
CrystalReportViewer1.DisplayGroupTree = False
CrystalReportViewer1.ReportSource =
Server.MapPath("HOReport\rptEmployee.rpt"
Catch ex As Exception
Response.Write(ex.Message)
Finally
con.Close()
End Try
The error is ->
Logon failed.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException:
Logon failed.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[LogOnException: Logon failed.]
.F(String , EngineExceptionErrorID
) +506
.A(Int16 , Int32 ) +537
CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext
reqContext) +539
CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext
pageReqContext) +189
CrystalDecisions.Web.ReportAgent.u(Boolean N) +164
CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) +108
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1499
Can anyone help me how to solve it?