Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
| Search | Today's Posts | Mark Forums Read
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 12th, 2006, 04:01 PM
Authorized User
 
Join Date: Aug 2004
Location: dollard des ormeaux, Quebec, Canada.
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to macupryk Send a message via Yahoo to macupryk
Default Login Failed. Weird error with viewing reports.

I am trying to view a report and I get the following:

Server Error in '/corporate_customer/applications/CISS' Application.
--------------------------------------------------------------------------------

Logon failed. Details: ADO Error Code: 0x80040e4d Source: Microsoft OLE DB Provider for SQL Server Description: Login failed for user 'SA'. SQL State: 42000 Native Error: 18456 Error in File UNKNOWN.RPT: Unable to connect: incorrect log on parameters.
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: System.Runtime.InteropServices.COMException: Logon failed. Details: ADO Error Code: 0x80040e4d Source: Microsoft OLE DB Provider for SQL Server Description: Login failed for user 'SA'. SQL State: 42000 Native Error: 18456 Error in File UNKNOWN.RPT: Unable to connect: incorrect log on parameters.

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:


[COMException (0x8004100f): Logon failed.
Details: ADO Error Code: 0x80040e4d
Source: Microsoft OLE DB Provider for SQL Server
Description: Login failed for user 'SA'.
SQL State: 42000
Native Error: 18456
Error in File UNKNOWN.RPT:
Unable to connect: incorrect log on parameters.]
   CrystalDecisions.ReportAppServer.ClientDoc.ReportC lientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
   CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.Open(Object& DocumentPath, Int32 Options) +72
   CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.EnsureDocumentIsOpened() +218

[Exception: Load report failed.]
   CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.EnsureDocumentIsOpened() +269
   CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +760
   CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load(String filename) +52
   CISS.CISSViewer.Page_Load(Object sender, EventArgs e) in Q:\entrisk\corporate_customer\applications\CISS\CI SSViewer.aspx.vb:82
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +750


Any feedback would be great

Knowledge is to be shared.
__________________
Knowledge is to be shared.
 
Old January 19th, 2006, 05:53 AM
Authorized User
 
Join Date: Jan 2006
Location: Hyderabad, Andhra Pradesh, India.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
I would like to See your Code,,, i think i know the Solution, So better Paste your Code also,
Bye


Mohammed Raza Ullah Khan
 
Old January 19th, 2006, 05:55 AM
Authorized User
 
Join Date: Jan 2006
Location: Hyderabad, Andhra Pradesh, India.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK,, Check Whether Yourcode Log on info is Similor to this or not .............


 Dim myTable As CrystalDecisions.CrystalReports.Engine.Table
            Dim myLogin As CrystalDecisions.Shared.TableLogOnInfo
            For Each myTable In Rport.Database.Tables
                myLogin = myTable.LogOnInfo
                myLogin.ConnectionInfo.ServerName = ServerName
                myLogin.ConnectionInfo.DatabaseName = DatabaseName
                myLogin.ConnectionInfo.Password = Password
                myLogin.ConnectionInfo.UserID = UserName
                myTable.ApplyLogOnInfo(myLogin)
            Next
            CrystalReportViewer1.Visible = True
            Rport.SetDatabaseLogon(UserName, Password, ServerName, DatabaseName)



The above code is mandatory if u r looking for dynamic reports else the log on may fail...
take care
bye

Mohammed Raza Ullah Khan




Similar Threads
Thread Thread Starter Forum Replies Last Post
error Login failed for user 'HOME\ASPNET' Raif ASP.NET 1.0 and 1.1 Basics 3 December 23rd, 2005 02:09 PM
Sql Server Login Failed error a42 ASP.NET 1.0 and 1.1 Basics 3 December 14th, 2004 05:19 PM
crystal reports .net designer login failed error dilshan Crystal Reports 3 September 23rd, 2004 01:38 PM
error Login failed for user 'HOME\ASPNET' Raif General .NET 2 July 23rd, 2004 12:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.