Hi all
I have added crystalreportviewer using ASP .net (VB .net)
I was able to view the report when I run the web page on
my server. Everything seems fine on the server.
However, if I access the crystal report on a client machine,
it will prompt for guest login and password to the server machine.
I am using anonymous access for my IIS setting.
I can access the rest of the .net webpage without any problem.
However, when I enter the webpage with the crystalreportviewer,
it will prompt for guest password.
Even after I have keyed in the guest password, mutiple prompts appear again. The server event log show this error -
The server was unable to logon the Windows NT account 'IUSR_Machinename' due to the following error: Logon failure: unknown user name or bad password. The data is the error code.
After canceling the prompt a few times, it will show the page with
the report and its data but the sort tree and reportviewer
functions bar on top will show all weird marking. :(
For testing, I have tried adding just a crystalreportviewer object
on a empty webpage. I did not link the crystalreportviewer to
any .rpt file and the same prompt appear. Its seems that the
crystalreportviewer object need to be authenticated on the server
when accessing from the client machine.
I am using MS studio 2003 and IIS 5.1 on XP professional server.
Please help advice.
Thanks.
DerekHi all,
I have found the solution myself.
Give access rights to this folder
C:\Program Files\Microsoft Visual Studio .NET 2003\Crystal Reports
to the IUSR_<MACHINENAME> anonymous account.
This is because all the .net dll for crystal report is installed in
this folder. Hence the correct access should be provided to this
folder.
Regards,
Derek
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment