.Net ramblings
# Wednesday, March 09, 2005
FIX: Crystal Reports error "Logon Failed" happens when viewer control is not in form server tag.

I just spent hours trawling the web trying to find out why my web forms app was giving me the following error:

  • CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed

I am using a Dataset so there is obviously no logging on necessary for a disconnected data source.  By chance, i noticed that there was no server form around the crystal report viewer control, so i put one in, and it worked.  That has got to be the most annoying error message i have ever come across.


Wednesday, March 09, 2005 4:03:21 PM (GMT Standard Time, UTC+00:00)  #    Comments [2]  Asp.Net

Monday, March 20, 2006 5:36:42 AM (GMT Standard Time, UTC+00:00)
Hi Tim,

I am having the same problem and its driving me nuts. I am not sure how you fixed this, can you give me some more details?

Thanks for nay help.
Matthew
Matthew Pascoe
Monday, March 20, 2006 7:49:52 AM (GMT Standard Time, UTC+00:00)
Hi Matthew,
Does your aspx form have a server form around the crystal report viewer control?

This is all I did. But I gather that this error message can happen for a host of other situations. Sorry I can't be of any more help, as this is all I did to fix it.
Tim
tim
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

[Captcha]Enter the code shown (prevents robots):

Live Comment Preview