Error on server when trying to show Crystal Report

14,806

Solution 1

"Access to report file denied. Another program may be using it."

This is a very misleading error message, and usually has nothing to do with another program. The actual filename will differ based on your configuration, but the entire error message will be the same, similar to what's shown below.

Usually, the ASPNET user does not have write permission granted to it, and especially not on the root directory. The solution in this case was to change the output directory to a subfolder of the web root, and grant ASPNET Modify permissions on that folder. If you're using Windows Server 2003, you need to grant permissions to Network Service, not ASPNET.

If you have configured your application to run as a user other than ASPNET, you need to make sure that user has the permissions described above. On Windows Server 2003, you need to grant permissions to NetworkService user, not ASPNET. The .NET Framework on Win2K3 uses NetworkService, while on Win2K, ASPNET.

provide write permission on c:\windows\temp

Dot forgot to restart IIS after setting permissions on folder: go to run type iisreset and press enter.

Please Refer to below link for full description.....

http://dotnetacademy.blogspot.com/2010/09/crystal-reports-net-error-access-to.html

Solution 2

I know the questioner was using Windows 2008, but in case anyone, like I, finds this question when searching for this error in a Windows 2012/IIS8 world. The name of the account that needs access to C:\Windows\Temp is now IIS_USRS.

Share:
14,806
Dr. Rajesh Rolen
Author by

Dr. Rajesh Rolen

Over 15 years of successful experience in development of multi-tier applications and system integration solutions as application architect, project leader, technical lead, and software engineer. Very good understanding of application analysis and design concepts. Strong ability to apply proven design patterns to the system design and employ extreme programming and SCRUM techniques to the robust implementations. PhD (Computer Science & Engineering), MCA, BCA, MCTS, MCP, SCJP. Experience of working in the complete Software development life cycle involving SRS, Software architecture design, database design, Code Reviews, development, and documentation. Capable to delve into the new leading Technologies. Ability to work well in both a team environment and individual environment. Ability to train the team. Areas of Expertise Strong in Architecture design, Design Principles, Design Patterns and OOPs concepts. Capable of developing cross-platform code and managing project. Web applications and web services development using ASP.NET MVC with C#.NET/ VB.NET. Client-Server based applications developed using C#.NET and VB.NET Strong in Business requirement analysis and functional specification design and documentation. Through knowledge of Object Oriented Analysis and Design OOAD and N - Tier Architecture Strong in front-end GUI development using ASP.Net, HTML, JavaScript, JQuery. Strong in backend database development including designing and administering databases, - writing stored procedures, SQL and triggers for SQL Server, Oracle, and My-SQL databases. Strong Analytical Skills. Strong oral and written communication skills Download CV

Updated on June 10, 2022

Comments

  • Dr. Rajesh Rolen
    Dr. Rajesh Rolen almost 2 years

    I am getting below error while generating report using crystal report: Error in File C:\Windows\TEMP\repEnquiry {095737EB-07B4-437D-9E86-85780B7417B0}.rpt: Access to report file denied. Another program may be using it.

    For this i did google and found some solutions but still its not working: what i tried: -given full access to aspnet and network services on my root directory and reports folder and then restarted iis.

    OS:windows server 2008(64) vs2008 application.

    but still getting same error.