I have created a crystal report in one of the sub folders on my web app. I have created a web page with a button on it. When the button is clicked the report should load up in a pdf format on the web browser.
The thing is I seem to be encountering a permissions issue but do not know how to reslove it.
When i click on the button i get the
System.Runtime.InteropServices.COMException: Access is denied.
I looked it up on google and tried an example which worked but is not what i need.
The article said to make sure in the web config file that impersonate was on and that the username and password were also stated
so i added
<identity impersonate="true" userName="Office\myusername" password="mypassword"/>
but tihs is not ideal if I am going to have multiple users logging onto the page to print view the report.
I then thought I would add the actual report into a sub folder and make that folder a virtual folder and on the folder permissions give Network Service complete access but this did not work either.
Many thanks in advance