.Net ramblings
# Wednesday, 09 March 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, 09 March 2005 16:03:21 (GMT Standard Time, UTC+00:00)  #    Comments [2]  Asp.Net

Monday, 20 March 2006 05:36:42 (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 Pascoe
Monday, 20 March 2006 07:49:52 (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.
Please login with either your OpenID above, or your details below.
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