Hi, my ASP.NET 2.0 web app works fine on several windows servers and on my dev vista machine, but on a new Vista laptop it will not run the Crystal Reports. When selecting a report from within the app it pauses for approx. 30 seconds and then instead of presenting the report it redirects the browser to the app's login screen (the start page). The reports themselves when opened up in CR XI R2 on the same laptop run perfectly well, so I suspect access / security issues are behind my problem. I have researched the problem on the web and applied whatever tips I have found already, but the problem persists. For example, I have tried to give full permissions to the Windows\Temp folder to the NETWORK SERVICE account (which is apparently the account that the ASP.NET worker process runs in), and also trapped the line in the code that fails. It is the LOAD method from code below:
rptX = New CrystalDecisions.CrystalReports.Engine.ReportDocument
rptX.Load(strX)
where strX contains a valid path to the .rpt document.
Sometimes this generates an error in the event viewer (for w3wp.exe process), but not always. After granting full permissions to the Windows\Temp folder as described above it actually worked once(!), but I can't get it to work again no matter what I do. As said, I think the problem is down to security / permissions as the code works elsewhere without a problem, and the report files definitely exist correctly.
I'd be very, very grateful if anyone out there can suggest any way forward with this one. I have since learned that CR XI R2 is not officially compatible with Vista, but it clearly does run OK on it as I can demonstrate. Vista has SP-1 applied on the laptop.
Any ideas? Or things to check?
With thanks, Ian
rptX = New CrystalDecisions.CrystalReports.Engine.ReportDocument
rptX.Load(strX)
where strX contains a valid path to the .rpt document.
Sometimes this generates an error in the event viewer (for w3wp.exe process), but not always. After granting full permissions to the Windows\Temp folder as described above it actually worked once(!), but I can't get it to work again no matter what I do. As said, I think the problem is down to security / permissions as the code works elsewhere without a problem, and the report files definitely exist correctly.
I'd be very, very grateful if anyone out there can suggest any way forward with this one. I have since learned that CR XI R2 is not officially compatible with Vista, but it clearly does run OK on it as I can demonstrate. Vista has SP-1 applied on the laptop.
Any ideas? Or things to check?
With thanks, Ian