Logon Failure

Updated June 5, 2006
Iron Speed Designer V3.2 and V4.0

Problem

You get this error when using Crystal Reports in your application:

Logon Failure

Solution

This typically means that the ASPNET account does not have permission to the file, folder or the database.  Make sure the folder containing the file and the file itself has the same permissions as your application folder.

Follow this procedure to assist in debugging this error.

1. Grant ASPNET user full permissions to the folder containing the Microsoft Access MDB file.  You can do this by going to Windows Explorer, right mouse clicking the folder containing the Microsoft Access database file and selecting Properties, selecting the security tab, and then check to see if ASPNET user exists in the Group or user names section - and whether it has full permissions.  If the ASPNET user does not exist in the list, click Add and then select your local machine name, and type ASPNET and press Check Names.  Press OK on this dialog and add Full Permissions for this user.  Press OK to save.

2. Go to your application’s Web.config file and look for a line as shown below:

<identity impersonate="true" />

Change this to:

<identity impersonate="false" />

3. Compile and run your application.

See the following articles for additional information:

http://support.businessobjects.com/library/kbase/articles/c2010371.asp

See Also

Part VII:  Troubleshooting Applications

Application Will Not Run

Application Runs But No Data is Displayed

Application Error Messages