Last post Dec 06, 2005 08:30 AM by matchbx27
Dec 05, 2005 01:47 PM|matchbx27|LINK
I have a report that I created that works fine as long as I'm logged in under the Host Account. Once I login as a regular user I receive this error:
An error has occurred.
Error: is currently unavailable
On this line of Code:
I double checked the permissions and the Network Service user has full permission on the Folder that contains the reports.
Dec 05, 2005 04:28 PM|matchbx27|LINK
The Actual Error is this:
CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
Which I know is a very generic Crystal Error. But is there any reason why the Host Account would beable to open the report but not a normal user. I even gave the normal user Admin rights and the report still failed to open.
Dec 05, 2005 08:15 PM|garylm|LINK
Dec 06, 2005 08:18 AM|matchbx27|LINK
No. I using a dataset. I created a dataset file, tied the CR to the dataset. Then in code I populated a the dataset object and used this code:
The CR should not need to access the database as all of the data is in the dataset being assigned to the report.
I'm thinking the problem might be related to file access. Yesterday I moved the DataSet (.xsd's) to the same directory as the .rpt files, but this did not solve the problem.
It almost seems as thought a normal user (even with Admin Rights) doesn't have the Rights to access the reports.
Dec 06, 2005 08:30 AM|matchbx27|LINK
Boy don't I feel stupid. The app I'm working on persists the current record for each user logged in. This way whenever you log back in the last record you were working with is displayed for you.
My Host User was working with one record and my normal User was working with another record. The problem is with the record the normal user is working with. If I select the same record the Host user is working with then everything works fine.
User Error. Now I get to troubleshoot why a CR for a particular record has a problem being displayed.
Couldn't see the forest for the trees.