Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8395517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:19:14+00:00 2026-06-09T20:19:14+00:00

I have Windows 2008 Server 64 bits, Sql Server Reporting Services 2008 R2. I

  • 0

I have Windows 2008 Server 64 bits, Sql Server Reporting Services 2008 R2.
I use ReportService web Service to upload RDLs files. I use script ps1 Powershell for upload reports like:

http://randypaulo.wordpress.com/2012/02/21/how-to-install-deploy-ssrs-rdl-using-powershell/

I get errors when uploading reports. The first 5 rdls is uploaded right, but next wrong.
REP_ACCESO_AIRNET04_R_09, REP_ACCESO_AIRNET04_R_10, REP_ACCESO_AIRNET04_R_11, REP_ACCESO_AIRNET04_R_12 are uploaded right.

REP_ACCESO_AIRNET04_R_13 not, then I get the error.

If use 3-4 reports rdl, not problem. But using more rdls files, I get errors.

I check SQL Server Reporting Services and it is running

I get several errors in powershell, that uses my script ps1 to install – upload reports rdls in SSRS:

Exception of type 'System.OutOfMemoryException' was thrown.

Failed. The error was: 'Error al procesar los datos de un comando remoto. Mensa
je de error: <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/w
smanfault" Code="3762507597" Machine="DESCASRPSW01"><f:Message><f:ProviderFault
 provider="microsoft.powershell" path="C:\Windows\system32\pwrshplugin.dll"></f
:ProviderFault></f:Message></f:WSManFault> Para obtener m s informaci¢n, consul
te el tema de la Ayuda about_Remote_Troubleshooting.'.


Failed. The error was: 'Error al procesar los datos de un comando remoto. Mensa
je de error: The WSMan provider host process did not return a proper response. 
 A provider in the host process may have behaved improperly. Para obtener m s i
nformaci¢n, consulte el tema de la Ayuda about_Remote_Troubleshooting.'.

And logs in c:\Program Files\Microsoft SQL Server\MSRS10_50.REPORTING\Reporting Services\LogFiles

library!ReportServer_0-107!1118!08/09/2012-08:46:59:: Call to
SetItemDataSourcesAction(/Reale/REP_ACCESO_AIRNET04_R_12).

webserver!ReportServer_0-107!7fc!08/09/2012-08:47:11:: i INFO:
Reporting Web Server stopped
appdomainmanager!DefaultDomain!14c!08/09/2012-08:47:16:: i INFO:
Appdomain:152 ReportServer_REPORTING_0-107-129889682211300455
unregistered.

I active VERBOSE log and this messages key for me:

  • ReportServer_REPORTING_0-1-129889760220267707 is about to be
    unloaded.
  • ShutDownMessage: Change Notification for critical
    directories. bin dir change or directory rename
  • HostingEnvironment initiated shutdown
  • Change Notification for critical directories.
  • INFO: Reporting Web Server stopped
  • ReportServer_REPORTING_0-1-129889760220267707 unregistered.

pipeline=0x0000000000F1FA30, id=13907115651467581232, connid=13907115650930710318 …

runningrequests!ReportServer_0-1!123c!08/09/2012-11:06:57:: v VERBOSE: User map’DESCASRPSW01\instalador
http://descasrpsw01/ReportServer_REPORTING/ReportService2005.asmx?WSDL1′

rshost!rshost!123c!08/09/2012-11:06:57:: v VERBOSE: HttpPipelineCallback::EndOfRequest(): continue pipeline=0x0000000000F1FA30.

rshost!rshost!e3c!08/09/2012-11:06:57:: v VERBOSE: HttpPipeline::DisconnectCallback: releasing pipeline=0x0000000000F1FA30.

rshost!rshost!fbc!08/09/2012-11:06:57:: v VERBOSE: ThreadContinuePipeline: processing request on pipeline=0x0000000000F1FA30, state=2, IOError=0, node=0.

rshost!rshost!fbc!08/09/2012-11:06:57:: v VERBOSE: State machine disconnected pipeline=0x0000000000F1FA30, state=4 …

rshost!rshost!fbc!08/09/2012-11:06:57:: v VERBOSE: HttpPipeline::DoStateDisconnected: releasing pipeline=0x0000000000F1FA30.

rshost!rshost!fbc!08/09/2012-11:06:57:: v VERBOSE: HttpPipeline::ReleaseOnce: releasing pipeline=0x0000000000F1FA30.

rshost!rshost!fbc!08/09/2012-11:06:57:: v VERBOSE: Destroying pipeline=0x0000000000F1FA30, callback=0x0000000000F1C660 …

appdomainmanager!ReportServer_0-1!13e4!08/09/2012-11:07:03:: v VERBOSE: Appdomain:3 ReportServer_REPORTING_0-1-129889760220267707 is about to be unloaded.

ShutDownMessage: Change Notification for critical directories.

bin dir change or directory rename

HostingEnvironment initiated shutdown

Change Notification for critical directories.

bin dir change or directory rename

Change Notification for critical directories.

bin dir change or directory rename

Change Notification for critical directories.

bin dir change or directory rename

webserver!ReportServer_0-1!13e4!08/09/2012-11:07:03:: i INFO: Reporting Web Server stopped

appdomainmanager!DefaultDomain!b30!08/09/2012-11:07:08:: i INFO: Appdomain:3 ReportServer_REPORTING_0-1-129889760220267707 unregistered.

rshost!rshost!b30!08/09/2012-11:07:08:: i INFO: Application domain type ReportServer
statistics: created: 1, unloaded: 1, failed:

UPDATE: the problem-issue is using PSRemoting and Get-Content for get bytes of a RDL file.
The same script ps1 without PSRemoting is right.

For some RDL files, I get error using psremoting.

#Load the RDL Binary 
[Byte[]]$rptContent = Get-Content $rptReference -Encoding byte

Solution: use [System.IO.File]::ReadAllBytes($sourceFile)

References:

http://www.vistax64.com/powershell/203663-get-content-encoding-byte-problem-v1-v2-ctp3.html

Get-Content is very memory hungry and inefficient when loading binary file. Every byte gets wrapped intoPSObject. I suggest to use .Net functions (.Net v4 has File.ReadAllBytes method) – @user1578107

Powershell FTP Send large file System.OutOfMemoryException

“Having hit a similar issue myself with RAM usage hitting the GB’s uploading a 3MB file, I found that replacing:”

 $content = gc -en byte $sourceFile

With:

 $content = [System.IO.File]::ReadAllBytes($sourceFile)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:19:15+00:00Added an answer on June 9, 2026 at 8:19 pm

    Use [System.IO.File]::ReadAllBytes($sourceFile)

    References:

    Get-Content is very memory hungry and inefficient when loading binary
    file. Every byte gets wrapped intoPSObject. I suggest to use .Net
    functions (.Net v4 has File.ReadAllBytes method) – @user1578107

    http://www.vistax64.com/powershell/203663-get-content-encoding-byte-problem-v1-v2-ctp3.html

    “Having hit a similar issue myself with RAM usage hitting the GB’s uploading a 3MB file, I found that replacing:”

     $content = gc -en byte $sourceFile
    

    With:

     $content = [System.IO.File]::ReadAllBytes($sourceFile)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a brand new server with Windows 2008 Server 64 bit + SQL
We have a Windows 2008 server with SQL Server 2005 SP3 with a bunch
I have Windows Server 2008 R2 with IIS7 on it. I deployed WCF service
I have SQL Server 2008 installed on Windows 2008 Server. I've disabled built-in administrator
I have a Windows 2008 Server with IIS7 on it and a web page
I have a timeclock database setup on a Windows 2008 server, SQL Server. It
I have a Windows 2008 R2 Server running IIS 7.5. Currently, I use WCF
I have a Windows Server 2008 x64 machine. I have the Microsoft SQL Server
We have set up a Windows 2008 server with MS SQL 2005 (default instance),
I have a dedicated Windows 2008 server with several websites and 1 windows service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.