• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Access Not Granted to the Report File

  I am adding some pages to our existing intranet.  I have a web page with a crystal report file incorporated into the page.  As a project itself it works but as when the  web page is put into the intranet collection it does not work.  Here is the error:

Error in File C:\WINDOWS\TEMP\YAT_OnPremises {853764C4-B582-4744-A78D-A0137653BD6E}.rpt:
Access to report file denied. Another program may be using it.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Error in File C:\WINDOWS\TEMP\YAT_OnPremises {853764C4-B582-4744-A78D-A0137653BD6E}.rpt:
Access to report file denied. Another program may be using it.

    I have tried shutting down VS 2005, deleting the file and readding it.  I've deleted the temp files but it keeps creating them.  I've checked the access of the file and assigned proper permissions.  Yet my attempts are not successful.  
    Any help is appreciated!  Thank you in advance!
 
0
spinone_owner
Asked:
spinone_owner
  • 5
  • 3
  • 2
1 Solution
 
AkisCCommented:
Try changing the path from
C:\WINDOWS\TEMP\YAT_OnPremises
-to-
C:\TEMP\YAT_OnPremises

\WINDOWS\ and \Program Files\  folders have restrictions to be accessed from browsers -intranet or Internet
0
 
mlmccCommented:
Does the user have permissions to write to teh temp directories?

mlmcc
0
 
spinone_ownerAuthor Commented:
Ok.... I went in and ganrted the user permissions to write to the temp directories... but that did not work.   I do not have a temp folder under the c: to move the file to.   I have an outstanding crystal report file (from couple of weeks ago) that will not let delete it.  Any suggestions on how to get the temp file to be released?
0
Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

 
AkisCCommented:
For the delete part
If you can login as Administrator, take Ownership of the dir or file and try to delete it

as for the c:\temp, a silly question. Can't you create one?
0
 
spinone_ownerAuthor Commented:
I do have ownership of that temp file.  Please excuse me for asking a "silly question" I've been looking at this stuff so long, I've my brain tends to leave me.
0
 
spinone_ownerAuthor Commented:
 As I stated before the web page I am trying to incorporate, was orginally working on my local host.  The temp pages keep appearing I set the caching to =60 sec.  For whatever reason it also keeps referencing line 37 of my code.  I have posted this below:  Any help?

Line 35:
Line 36:     Private Sub setdblogonforreport(ByVal myconnectioninfo As ConnectionInfo)
Line 37:         Dim mytablelogoninfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
Line 38:         For Each mytablelogoninfo As TableLogOnInfo In mytablelogoninfos
Line 39:             mytablelogoninfo.ConnectionInfo = myconnectioninfo
 

Source File: D:\InetPub\yatintranet-dev\Shopvue\On_Premises.aspx.vb    Line: 37
0
 
mlmccCommented:
What Crystal dlls or merge modules did you install on the server?

mlmcc
0
 
spinone_ownerAuthor Commented:
Crystal Report Server 10 and merge modules 10
0
 
spinone_ownerAuthor Commented:
Mlmcc directed me in the correct direction.  

I found the specifics to solve my problem.
This site specified the permissions that needed to be set is:
http://aspadvice.com/blogs/rjdudley/archive/2005/03/15/2567
.aspx

Thanks for your help!
0
 
mlmccCommented:
Glad i could help

mlmcc
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

  • 5
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now