Solved

Sharepoint 2010: UnauthorizedAccessException was handled by user code

Posted on 2013-01-01
2
573 Views
Last Modified: 2013-01-02
I'm having error, when deploying mga custom webpart made in visual studio 2010 that has crystal report on my sharepoint 2010 website, when i'm trying to debug my webpart, it shows an error UnauthorizedAccessException was handled by user code "Access to the path \temp\[filename].rpt is denied", when im looking for the .rpt i its not exist. what seems to be the problem on this? did i missed something?

thanks and regards.
0
Comment
Question by:LiezleRagaas
2 Comments
 
LVL 38

Expert Comment

by:Justin Smith
ID: 38736391
Is it trying to deploy a report file to the file system on your web server?  If so, verify your user has access to the folder.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 38738295
Crystal Reports needs access to the Temp files. Make sure the user account used to run your app pool has write access to temp folder.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question