By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,676 Members | 1,334 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,676 IT Pros & Developers. It's quick & easy.

GZipStream in .NET is throwing an exception

P: n/a
Folks,

The GZipStream class in .NET is throwing an exception during an OS
unseal/power up (first boot experience). The .NET system is fully up as
other apps seem to run fine.

Our code works fine when testing it on a PC that is already up.

After googling we found some people having similar issues when using
SQLServer ... but we are not using it.

Has anyone seen this?

-jeff

.........

I think we could use some advice/analysis from Microsoft on this stack
trace, which is showing an exception from the GZipStream implementation. I
have Googled this and only found issues with people apparently misusing
SQLServer, nothing relating to compression/decompression. This occurs
occasionally during an OS unseal/power up:

......................Module: System.Runtime.Remoting.Proxies.RealProxy

Exception 1: System.IndexOutOfRangeException

Message: Index was outside the bounds of the array.

Source: System

Site: Void CreateTable()

*** Stack Trace ***

Server stack trace:

at System.IO.Compression.HuffmanTree.CreateTable()

at System.IO.Compression.HuffmanTree..ctor(Byte[] codeLengths)

at System.IO.Compression.Inflater.DecodeDynamicBlockH eader()

at System.IO.Compression.Inflater.Decode()

at System.IO.Compression.Inflater.Inflate(Byte[] bytes, Int32 offset,
Int32 length)

at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset,
Int32 count)

at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset,
Int32 count)

Jan 3 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
You'll have to be more specific. What is the GZipStream instance attempting
to do? When exactly does the application start? What is the exception?

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Arnie" <je*****************@msn.comwrote in message
news:8E**********************************@microsof t.com...
Folks,

The GZipStream class in .NET is throwing an exception during an OS
unseal/power up (first boot experience). The .NET system is fully up as
other apps seem to run fine.

Our code works fine when testing it on a PC that is already up.

After googling we found some people having similar issues when using
SQLServer ... but we are not using it.

Has anyone seen this?

-jeff

........

I think we could use some advice/analysis from Microsoft on this stack
trace, which is showing an exception from the GZipStream implementation.
I have Googled this and only found issues with people apparently misusing
SQLServer, nothing relating to compression/decompression. This occurs
occasionally during an OS unseal/power up:

.....................Module: System.Runtime.Remoting.Proxies.RealProxy

Exception 1: System.IndexOutOfRangeException

Message: Index was outside the bounds of the array.

Source: System

Site: Void CreateTable()

*** Stack Trace ***

Server stack trace:

at System.IO.Compression.HuffmanTree.CreateTable()

at System.IO.Compression.HuffmanTree..ctor(Byte[] codeLengths)

at System.IO.Compression.Inflater.DecodeDynamicBlockH eader()

at System.IO.Compression.Inflater.Decode()

at System.IO.Compression.Inflater.Inflate(Byte[] bytes, Int32 offset,
Int32 length)

at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset,
Int32 count)

at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset,
Int32 count)

Jan 4 '08 #2

P: n/a
See the exception at the end of the thread.

"Index was outside the bounds of the array" ...

It is doing a simple unzip of a compressed file/data.

It works fine when running on a PC ... it is failing during the "unseal"
phase of the first boot experience (when a customer gets their new PC and
turns it on the first time ... we run a few things).

I'm assuming this is more of a system question than a .NET question but
wanted to try here anyways.

-jeff
"Kevin Spencer" <un**********@nothinks.comwrote in message
news:OF**************@TK2MSFTNGP02.phx.gbl...
You'll have to be more specific. What is the GZipStream instance
attempting to do? When exactly does the application start? What is the
exception?

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Arnie" <je*****************@msn.comwrote in message
news:8E**********************************@microsof t.com...
>Folks,

The GZipStream class in .NET is throwing an exception during an OS
unseal/power up (first boot experience). The .NET system is fully up as
other apps seem to run fine.

Our code works fine when testing it on a PC that is already up.

After googling we found some people having similar issues when using
SQLServer ... but we are not using it.

Has anyone seen this?

-jeff

........

I think we could use some advice/analysis from Microsoft on this stack
trace, which is showing an exception from the GZipStream implementation.
I have Googled this and only found issues with people apparently misusing
SQLServer, nothing relating to compression/decompression. This occurs
occasionally during an OS unseal/power up:

.....................Module: System.Runtime.Remoting.Proxies.RealProxy

Exception 1: System.IndexOutOfRangeException

Message: Index was outside the bounds of the array.

Source: System

Site: Void CreateTable()

*** Stack Trace ***

Server stack trace:

at System.IO.Compression.HuffmanTree.CreateTable()

at System.IO.Compression.HuffmanTree..ctor(Byte[] codeLengths)

at System.IO.Compression.Inflater.DecodeDynamicBlockH eader()

at System.IO.Compression.Inflater.Decode()

at System.IO.Compression.Inflater.Inflate(Byte[] bytes, Int32 offset,
Int32 length)

at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset,
Int32 count)

at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset,
Int32 count)

Jan 4 '08 #3

P: n/a
Arnie wrote:
See the exception at the end of the thread.

"Index was outside the bounds of the array" ...

It is doing a simple unzip of a compressed file/data.
Are you sure it can access that file? Might there be an issue with
permissions not having yet been set during the "unseal" phase?
It works fine when running on a PC ... it is failing during the
"unseal" phase of the first boot experience (when a customer gets
their new PC and turns it on the first time ... we run a few things).

I'm assuming this is more of a system question than a .NET question
but wanted to try here anyways.
You could try SharpZipLib instead
http://www.icsharpcode.net/OpenSource/SharpZipLib/

Andrew
Jan 8 '08 #4

P: n/a
Thanks for the ideas Andrew. We'll check on the permissions.

Here is a bit more details in case it triggers something for the group.
What is the GZipStream instance attempting to do?
> as shown in the stack trace, we are attempting to read compressed data
using GZipStream from a SecureStorage stream that was written using
GZipStream:
at System.IO.Compression.GZipStream.Read(Byte[] array, Int32 offset,
Int32 count)

When exactly does the application start?
>"This occurs occasionally during an OS unseal/power up"; the Agilent
License service is started automatically by SCM.
What is the exception?"
>as shown in the stack trace: "Exception 1:
System.IndexOutOfRangeException"

It should be sufficient for Microsoft to see that we are simply calling
System.IO.Compression.GZipStream.Read().

"Andrew Morton" <ak*@in-press.co.uk.invalidwrote in message
news:uM**************@TK2MSFTNGP04.phx.gbl...
Arnie wrote:
>See the exception at the end of the thread.

"Index was outside the bounds of the array" ...

It is doing a simple unzip of a compressed file/data.

Are you sure it can access that file? Might there be an issue with
permissions not having yet been set during the "unseal" phase?
>It works fine when running on a PC ... it is failing during the
"unseal" phase of the first boot experience (when a customer gets
their new PC and turns it on the first time ... we run a few things).

I'm assuming this is more of a system question than a .NET question
but wanted to try here anyways.

You could try SharpZipLib instead
http://www.icsharpcode.net/OpenSource/SharpZipLib/

Andrew
Jan 8 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.