1633865 - ReportDocument.SaveAs() throws an error "Access is denied" using Crystal Reports .NET SDK

SAP Knowledge Base Article - Public

1633865 - ReportDocument.SaveAs() throws an error "Access is denied" using Crystal Reports .NET SDK

Symptom

  • Using the ReportDocument.SaveAs() method to save or update a Crystal Report at existing location with same name using Crystal Reports .NET SDK.
  • Error is thrown: Access is denied.

SaveAs.JPG

Environment

  • Crystal Reports 2008
  • Web application using .Net Framework 3.5
  • Windows XP

Reproducing the Issue

  • Create a report & save it on a desired location.
  • Using SDK save/update the existing report to same location with same name.

 

Cause

  • The ASP.NET Machine Account (ASPNET) account was not given enough rights to access/write the report.

Resolution

  • Select the report in the question. Go to properties.
  • Select ASP.NET Machine Account (ASPNET) in Security tab from the Group or user names.
  • Allow Write or Full Control to this account.

Keywords

.net , cr 2008 vs rights, com , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

Crystal Reports 2008 V1