.NETGURU
Crystal report web control in .net
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-crystal' list.


Raghavendra Ural
Hi

i have used crystalReportViewer web control in dot and this control is
pointing to rpt file but when i run the webform I am getting the
following error. I have included the error message in this mail

can any body give me the solution .

regards
Ural

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.

rgds
Ural

Reply to this message...
 
    
Ambarish Ganguly
Hi ,
I found this code in a previous mail in this newsgroup from "Neil Langston" <Click here to reveal e-mail address>
You can try this .
========================================================================In you page_load event, enter the following code (VB.net)

*** PartView is the ID of the reportviewer ( It can be whatever you want )

If you are using an ADO connection to an access database, leave out the
ServerName,
password and Databasename line, and make the UserId="Admin"

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

If Not Page.IsPostBack Then

PartView.ReportSource = sever.mappath("YOURREPORTNAME.rpt")

PartView.LogOnInfo.Item(0).ConnectionInfo.ServerName = "YOUR SQL SERVER"

PartView.LogOnInfo.Item(0).ConnectionInfo.UserID = "YOUR SQL SERVER USER ID"

PartView.LogOnInfo.Item(0).ConnectionInfo.Password = "YOUR SQL SERVER
PASSWORD"

PartView.LogOnInfo.Item(0).ConnectionInfo.DatabaseName = "YOUR SQL SERVER
DATABASE"

End If

end sub

Raghavendra Ural wrote:Hi

i have used crystalReportViewer web control in dot and this control is
pointing to rpt file but when i run the webform I am getting the
following error. I have included the error message in this mail

can any body give me the solution .

regards
Ural

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.

rgds
Ural

| [ngfx-crystal] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-crystal.asp = JOIN/QUIT

---------------------------------
Do You Yahoo!?
Yahoo! Health - Feel better, live better
Reply to this message...
 
    
Dave Lewis
(Type your message here)

--------------------------------
From: Dave Lewis

Thank you very much for this. I'd been tearing my hair out trying to get the Crystal Viewer to co-operate and was not having any luck... until I saw this post. And now all is good in the world again :)
Reply to this message...
 
    
Tiffany Cynor
Not working...... I'm trying to connect to a postgres DB if anyone has any info it would be greatly appreciated.

--------------------------------
From: Tiffany Cynor
Reply to this message...
 
    
sakhita chowdary
(Type your message here)

--------------------------------
From: sakhita chowdary
Reply to this message...
 
 
System.EventArgs
System.Object
System.Web.UI.Page




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification