Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

"Stream ended after reading 27 bytes out of 545" #21

Open
snoopydeveloper opened this issue Nov 15, 2016 · 1 comment
Open

"Stream ended after reading 27 bytes out of 545" #21

snoopydeveloper opened this issue Nov 15, 2016 · 1 comment

Comments

@snoopydeveloper
Copy link

When I run both the executables & source I receive the message "Stream ended after reading 27 bytes out of 545"

Error manifests on t.GetAwaiter().GetResult();
Output
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\work\QLess\SqlServerTimeZoneSupport-1.0.1\SqlServerTimeZoneSupport-1.0.1\SqlTzLoader\bin\Debug\SqlTzLoader.vshost.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x2ae8 has exited with code 0 (0x0).
The thread 0x4f78 has exited with code 0 (0x0).
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\work\QLess\SqlServerTimeZoneSupport-1.0.1\SqlServerTimeZoneSupport-1.0.1\SqlTzLoader\bin\Debug\SqlTzLoader.exe'. Symbols loaded.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'. Cannot find or open the PDB file.
Step into: Stepping over non-user code 'SqlTzLoader.Program.<>c__DisplayClass0_0..ctor'
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\work\QLess\SqlServerTimeZoneSupport-1.0.1\SqlServerTimeZoneSupport-1.0.1\SqlTzLoader\bin\Debug\NodaTime.CurrentTzdbProvider.dll'. Symbols loaded.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\work\QLess\SqlServerTimeZoneSupport-1.0.1\SqlServerTimeZoneSupport-1.0.1\SqlTzLoader\bin\Debug\NodaTime.dll'. Cannot find or open the PDB file.
'SqlTzLoader.vshost.exe' (CLR v4.0.30319: SqlTzLoader.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Exception thrown: 'NodaTime.Utility.InvalidNodaDataException' in NodaTime.dll
Exception thrown: 'NodaTime.Utility.InvalidNodaDataException' in mscorlib.dll
Exception thrown: 'NodaTime.Utility.InvalidNodaDataException' in mscorlib.dll
Exception thrown: 'NodaTime.Utility.InvalidNodaDataException' in mscorlib.dll

Call stack

SqlTzLoader.exe!Microsoft.Threading.AsyncPump.Run(System.Func<System.Threading.Tasks.Task> func) Line 35 C#
SqlTzLoader.exe!SqlTzLoader.Program.Main(string[] args) Line 17 C#

@mbtaylor1982
Copy link

I had this problem, turned out top be a corrupted download in
C:\Users\*UserName*\AppData\Local\Temp\

Look for a file like tzdb2018c.nzd delete it and try again.

Looks like if the file exists but is corrupt there is no exception handling to delete it and download a clean copy.

Maybe there could be a mechanism added to verify the file using a SHA1 checksum if there is one available online for the latest file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants