All reports stay in c:\temp, how to remove them?

Post Author: [email protected]
CA Forum: .NET
Dear experts,
All the opened reports stay in the tempfile on our server.  when there are 75 files opened I get the error "Load report failed".
When I search on the net everyone suggests to use ReportDocument.Close() and ReportDocument.Dispose() on the event Page_Unload().
This doesn't work at all, all the files stay in my temp file if I close my page, close my brower or navigate to another page.
Before the report is printed, the file is 3 times loaded which uses a lot of memory from our webserver.
The file is loaded a first time when it's displayed on the screen. A second time when I click the print icon and a third time when the pdf file opens in my browser.
So in fact, I can only open and print 25 reports and then I get the error u201CLoad report failedu201D.  The only thing I can do then is restart the website in IIS.
What is the good solution to prevent those files in c:\Temp?
This is my code to load a report:    Sub LoadReport()     Dim strReportUrl as string = "../cr/appl_p04.rpt"            Dim oRpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument            If oRpt.IsLoaded Then                oRpt.Close()            End If            Dim intStudentNr As Integer = ddlStudent.SelectedItem.Value
            oRpt.Load(MapPath(strReportUrl))            oRpt.SetDatabaseLogon("myusername", "mypassword", "myserver", "mydatabase")            oRpt.SetParameterValue("StudentNr", intStudentNr)            CrystalReportViewer1.ReportSource = oRpt            CrystalReportViewer1.Visible = True    End Sub
In Page_Unload i have:    Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs)        Dim oRpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument        oRpt.Close()        oRpt.Dispose()        GC.Collect()    End Sub
Kind regards,
Bart

Post Author: Argan
CA Forum: .NET
They should get cleaned up intermittently without you having to do anything.
They are not causing your load report failed error though.
You are most likely reaching the print job limit, which is set to 75 by default.
Not knowing which version of CR you are using, just look for PrintJobLimit  in the registry.
It will be in the CrystalDecisions or Business Object section and be set to 75.  Increase it to 300-500 and give it a shot.

Similar Messages

  • SCCM 2012 SP1 - Evil Folders in Reporting Services - What Are They and How to Remove Them

    Hello All,
    There are a lot of sub-folders in the http://CentralSiteSCCM/ReportServer. They are like:
    <dir> Config_Mgr_CEN
    <dir> Config_Mgr_CEN.OLD.0
    <dir> Config_Mgr_CEN.OLD.1
    <dir> Config_Mgr_CEN.OLD.10
    <dir> Config_Mgr_CEN.OLD.100
    <dir> Config_Mgr_CEN.OLD.1000
    Only <dir> Config_Mgr_CEN is properly populated with the correct set of the default folders.
    Would you be so kind to advise on:
    What are they?
    How to remove them?
    What to do in order for them not to appear any more?
    Thank you very much in advance!

    Hi Mike,
    I ran into an issue when I did the SP1 upgrade where a majority of our reports were duplicated. I created a script to delete these duplicate reports and I've adjusted it to work for your situation. You can find the original thread here, if you're interested:
    http://social.technet.microsoft.com/Forums/en-US/configmanagergeneral/thread/dc9aa3b4-cea9-4a07-87ca-2795a2dbc04e
    You'll need to know your SCCM site code and the server name to run this script.
    # SCCM2012SP1-RemoveDuplicateSSRSFolders.ps1
    # This script will connect to SSRS on a specified server and delete all folders that end with .OLD.*
    # Used for SSRS cleanup after SCCM 2012 SP1 installation
    # Script must be run from an account that has access to modify the SSRS instance
    # 3/22/2013 - Mike Laughlin
    # Resources used in writing this script:
    # Starting point: http://stackoverflow.com/questions/9178685/change-datasource-of-ssrs-report-with-powershell
    # API Documentation: http://msdn.microsoft.com/en-us/library/ms165967%28v=sql.90%29.aspx
    # Previous script: http://social.technet.microsoft.com/Forums/en-US/configmanagergeneral/thread/dc9aa3b4-cea9-4a07-87ca-2795a2dbc04e
    # Define variables
    $SiteCode = ""
    $serverName = ""
    # Set the value of $noConfirm to $True only if you don't want to manually confirm folder deletion. Use with caution.
    $noConfirm = $False
    # Safeguard
    If ( $SiteCode -eq "" -or $serverName -eq "" ) { Write-Host "Enter the required information for the SiteCode and serverName variables before running this script." -ForegroundColor Red -BackgroundColor Black ; Exit }
    # Connect to SSRS
    $ssrs = New-WebServiceProxy -uri http://$serverName/ReportServer/ReportService2005.asmx?WSDL -UseDefaultCredential
    # Get a listing of all folders in SSRS
    $reportFolders = $ssrs.ListChildren("/", $True)
    # Find all folders containing .OLD.*
    $foldersToDelete = $reportFolders | Where { $_.Name -like "ConfigMgr_" + $SiteCode + ".OLD.*"}
    # Quit if no folders are found
    If ( $foldersToDelete.Count -eq 0 ) { Write-Host "No folders with .OLD.* found. Quitting." ; Exit }
    # Show a listing of the folders that will be deleted
    Write-Host "The following folders will be deleted from SSRS on" $serverName":`n"
    $foldersToDelete.Name
    Write-Host "`nTotal number of folders to delete:" $foldersToDelete.Count "`n"
    # Get confirmation before deleting if $noConfirm has not been changed
    If ( $noConfirm -eq $False )
    $userConfirmation = Read-Host "Delete these folders from" $serverName"? Enter Y or N"
    If ( $userConfirmation.ToUpper() -ne "Y" ) { Write-Host "Quitting, folders have not been deleted." ; Exit }
    # Delete the folders
    $deletedFolderCount = 0
    Write-Host "Beginning to delete folders now. Please wait."
    ForEach ( $folder in $foldersToDelete ) { $ssrs.DeleteItem($folder.Path) ; $deletedFolderCount++ }
    Write-Host "Folders have been deleted. Total number of deleted folders:" $deletedFolderCount
    Standard disclaimer: While this script worked just fine for me in my environment, I make no guarantees that it will work anywhere else. I've attempted to make this script as user friendly and generic as possible, but it may require slight tweaking to work properly.

  • HT1386 The first time I synced my iphone with my mac, I didn't realize that all of my photos from iphoto would transfer over to the phone.   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the

    The first time I synced my iphone 4 with my mac, I didn't realize that all of my photos from the iphoto library would transfer over to the phone (more than 3,000).   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the phone.  I tried to uncheck boxes and sync again, but I get a message that there is no room on the iphone.  I've read as many articles as I can find, but still cannot manage this.  Thanks for any help.

    Open itunes, connect iphone, select what you want, sync

  • I have 0,3€ credits. How can remove them so that I can change to the app store of another country?

    I have 0,3€ credits. How can remove them so that I can change to the app store of another country? I need to change to the Chinese app store as the apps I am looking for can be only found there. Thanks for all answer in advance!

    Click here and ask the iTunes Store staff to zero your account balance. Note that if you're not in China, you won't be able to use the Chinese App Store.
    (125951)

  • ICal prints times in front of event entries, I don't want these times entered. How to remove them?

    iCal prints times in front of event entries, I don't want these times entered. How to remove them?

    Go to your Flagged Photos Smrt Album on the Left.
    Command - a will select All
    Then File -> New -> Album
    Regards
    TD

  • Dead links - not another "how to remove them" thread

    I know this question has been answered a few times but the question is not a "how to remove them" or "what do they mean" question.
    I would like to know how this happens other than changing the file directory or information outside of iTunes. Here is a couple things I could think of that I would like some input on.
    1. All of my songs that have a ! by them were downloaded off of the internet for free (no shareware, just an actual web site).
    2. These songs were already in mp3 format prior to importing them.
    3. I made a copy of my iTunes folder on another harddrive, but still run iTunes from the orginal drive.
    4. Since I have 2 copies of iTunes song files, I deleted the original source of these files in My Music, which were in WMA format.
    Again, I did not change the file information to any of these songs. Any help would be great! Thanks!

    Thanks for the information.
    This is where you created the '!' links:
    "I have 2 harddrive in my PC. "C" is my main drive and "D" is my backup drive. iTunes stores everything on my C drive. I copied this iTunes folder (including songs, playlist info, etc) and pasted it on my D drive."
    iTunes operates as a database of information for your music files. The actual music files are stored on your PC, not within iTunes. iTunes keeps absolute references of the music file location and other information in its database file. This allows iTunes to use music files from any location on the PC: different directories/folders on the main HD, another internal drive, an external drive, or a network drive (or any combination of the above). Each song reference has a specific and hardcoded path so iTunes can find and play (or sync) it. Move the file, change the path, re-map the drive it is on, and iTunes will lose the file (giving you the '!' of a ‘Broken Link’). Lose, move or corrupt the ‘iTunes Music.itl’ file and your complete Library will ‘vanish’.
    Changing (or designating) the 'iTunes Music folder' location in the Preferences does not instruct iTunes where to look for existing songs it currently knows about. It directs iTunes where to store any new songs it Imports, or 'Adds' and copies to its Library organization (if that attribute is selected). This is an important distinction.
    You can do one of two things:
    1) Move all the files back to the C: drive where the iTunes program expect them to be, and then move them to the D: drive using iTunes
    OR
    2) Delete all the broken song references within iTunes and Rebuild the Library
    The first method will preserve your Library information: Playlists, Ratings, Last Played, Play Count. The second method will lose these attributes.
    Song attributes stored directly in each music file are as follows: Artist, Album, Song Title, Year, Comments, Compilation tag, Lyrics, Genre , Grouping, Composer, BPM, Album Artwork, Bit Rate & Kind (Both not tags - inherent to the file itself). You will not lose any of these attributes regardless of the method used to recover your Library.
    Either method should be relatively easy to accomplish as long as you can maintain some control over the file moving (it's not rocket science). If your C: drive cannot accept the temporary move of your files, you may be stuck with option 2. If you do not have many important playlists, or care about ratings, playcounts, etc., then option 2 is a bit easier.
    Post back with more questions...or with your 'choice'. We'll go from there.

  • Whenever I use google chrome or safari Macshop ads come up does anyone know how to remove them?!

    I'm not sure how to remove them and they are very annoying! Any help would be greatly appreciated!

    1.  Use  free  AdwareMedic by clicking “Download ” from here
         http://www.adwaremedic.com/index.php
         Install , open,  and run it by clicking “Scan for Adware” button   to remove adware.
         Once done, quit AdwareMedic by clicking AdwareMedic in the menu bar and selecting
        “Quit AdwareMedic”.
      2. Safari > Preferences > Extensions
        Turn those off and relaunch Safari.
        Turn those on one by one and test.
                   or
        Remove the adware  manually  by following the “HowTo” from Apple.
        “Remove Genieo, also known as InstallMac”
        http://support.apple.com/en-us/HT203987

  • I have an Ipad and several Ipods. We have deleted some songs from our devices but they still show up gray shaded. They don't play but I'd like to know how you remove them from your devices completly?

    I have several Ipods and an Ipad. We have all deleted music from our devices and the problem we are having is the song itself is gone which is what we wanted but the song title is still on the devices. It's grey and it won't play but I want to know how to remove the deleted songs completely off my devices.

    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                             
    - Restore to factory settings/new iOS device.

  • If the virus entered in iphone how to remove them

    if the virus entered in iphone how to remove them

    virus's are not cross platform and there are no known IOS virus's

  • I do not want to utilize ADDONS but do not see how to remove them from my computer. Please advise.

    I just do not want to utilize the program. Since accepting addons, my computer locks up, a pop up opens before I even see my browser page. I JUST DO NOT WANT TO MESS WITH THIS OPTION. I simply want to remove the option from my computer. Thank you. K

    For details of how to remove add-ons see https://support.mozilla.com/kb/Uninstalling+add-ons

  • Whenever Firefox28 is started all youtube downloads also start. How to cancel them?

    These downloads were started with the help of an add-on 'download helper'. Disabling this add-on does not help. Start Firefox. Downloads start! Download button and "show all downloads" don't show any downloads though they continue and are being saved in the specified directory. How to cancel such downloads.

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. <br>
    '''Note''': ''This will cause you to lose any Extensions and some Preferences.''
    *Open websites will not be saved in Firefox versions lower than 25.
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • All my contacts have the same birthday... how to remove them?

    HI all,
    I have had this issue for a few years... in fact, since the very DAY I switched from Windows to MAC! All my contacts have that date entered as their birthday as well as their aniversary. Sounds funny perhaps but.... is not, really.
    How can I just deletes all birthdays and anniversaries in bulk or (even better) only do that for those ocntacts that have that specific date entered as thier birthday/anniversary (as I do have some contacts with correcth birthday which Iñd love to conserve). Thanks.

    Thanks Bro. I have backup. and I did the same thing twice but only 26 contacts appear on the device. Now again yesterday after your suggestion again I restored the device but the result was same. Then I thought a new thing. I restored the device one more time but after restoring I didn't configure the icloud account. Surprisingly all my old contacts are there in the device but those 26 contacts are not there. Now I will tell you how this must have happened? I had 3gs earlier. that was stolen 3 months ago. I put the device in lost mode. I purchased new iphone4. I restored with itune. All my data came back. After that I saved these 26 new contacts to my device which also saved in icloud but when I tried to backup on my pc it was not happening. the messege coming device disconnected. 2 days back my stolen device came online. Lost mode was activated by icloud. But what I think in between that time the other fellow must have deleted the phone contacts. And as per icloud also deleted the same. Only the 26 contacts which I saved in these 3 months remained in icloud. Now bro can u help me out? What I should do? I have 26 contacts in icloud and < 500 in my device. I don't understand when all other Co's mobile you can import contacts from any backup file iphone can not. This is the DRAWBACK OF IPHONE.

  • All desktop icons are itunes icons how to change them

    how to change desktop icons back to original, as all are iTunes icons now

    First I'd set up a System Restore point. Then try applying the LNK registry fix from the following document:
    File Association Fixes for Windows 7
    Does that get your icons back to normal?

  • I lost all my contacts details any idea how to get them back?

    I have quite suddenly lost all my contact details they were there and then all disapeared?
    when tried to sych to restore the itune authomatically backed up, so now i dont even know how to get the back up to restore my contacts!!!!
    Can anyone help me?
    thanks

    if you set itunes to sync contacts to and from outlook or other mail programs then syncing it with itunes should be restored

  • HT4059 How can I trsnfer CD books so disc 1 is followed by disk 2 and so on? now they are all over the place and not how I loaded them

    How can I load CD books so they are in sequence 1 followed by 2 and so on nowthe load so they are scattered all out of sequence?

    In Preferences check "scale strokes and effects"

Maybe you are looking for

  • Required attribute not getting created

    Ok, here is a wierd one. I have some custom ID management code (an SSO plug-in cert mapper and a WAR file I deploy to OC4J_SECURITY). The application provides a registration process that creates user entries and RADs for Oracle Forms app users. Every

  • How to handle the word document which is already opened(Add content to it) using VbScript using "Word.Application" method

    Hello, I want to add some content to the word document which is opened already and active using vbscript. Here is the sample code to have an idea.Kindly Help. Set oWord = CreateObject("Word.Application") oWord.Documents.Open "c:\test.docx" ----->Here

  • How can i get monthly base pay rate for the past 5 months ??

    i need to get monthly base payrate for all employees. for eg;  the month salary for a particular employee  is listed as follows.                 mar-4500                 apr-4800                 may-4800                 jun- 5000                july-

  • Windows 7 DVD Maker "Error Synchronizing Project"

    I installed Windows 7 RC 7100 on a new hard disk and did not install any other software. I tried to create a DVD-Video by inserting JPG images, AVI files and some MP3 files as slide background music. I was not able to Preview the movie and when I tri

  • Logging inbound and outbound connections through my Linksys router

    Hi There, I have a  Linksys wireless router (WRT54G series) that I use to connect to the internet with my cable modem. I would like to be able to configure my home network to log inbound and outbound connections through my router.  My router, which I