Home › Forums › .NET libraries › Xceed Zip & Real-Time Zip for .NET › Issues Under Non-Administrator Accounts
-
AuthorPosts
-
#19511 |
I compiled the sample application and tried compressing files with it. The sample application compresses and decompresses files normally under an administrator account, but throws an error under the other accounts. Normally, everything is fine as I program under my normal user account, but Xceed Streaming Compression for .NET just gives strange behavior. I spent a lot of time looking at my own code to see if I did anything wrong, until I came up with the idea of using your sample application as a test.
Sample Used: \Xceed Components\Xceed Streaming Compression for .NET 1.0\Samples\CSharp\Manager
Compression Options: ZLib/Deflate64/Maximum
The sample gives “An unexpected internal failure occurred in the compression engine.”I’m using 1.0
Imported from legacy forums. Posted by EIwm380X (had 3006 views)
Can you tell us what is the InnerException of this exception?
Imported from legacy forums. Posted by Martin (had 391 views)
This is the error text I got after removing all the TRY blocks
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************
Xceed.Compression.CompressionInternalException: An unexpected internal failure occurred in the compression engine. —> Xceed.Compression.CompressionInternalException: An unexpected internal failure occurred in the compression engine. —> System.NullReferenceException: Object reference not set to an instance of an object.
at Xceed.Compression.CompressionEngine.Managed.XDeflate.CLEAR_HASH64(internal_state s)
at Xceed.Compression.CompressionEngine.Managed.XDeflate.lm_init(internal_state s)
at Xceed.Compression.CompressionEngine.Managed.XDeflate.deflateReset(z_stream_s strm)
at Xceed.Compression.CompressionEngine.Managed.XDeflate.DeflateInit(z_stream_s strm, Int32 level, Int32 method, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy)
at Xceed.Compression.ManagedDeflateCompressor..ctor(Int32 compressionLevel, Boolean useZlibHeaders)
— End of inner exception stack trace —
at Xceed.Compression.ManagedDeflateCompressor..ctor(Int32 compressionLevel, Boolean useZlibHeaders)
at Xceed.Compression.CompressedStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Xceed.Compression.CompressedStream.Flush()
at Xceed.Compression.CompressedStream.Dispose(Boolean disposing)
— End of inner exception stack trace —
at Xceed.Compression.CompressedStream.Dispose(Boolean disposing)
at Xceed.Compression.CompressedStream.Close()
at Xceed.Compression.Formats.FormattedCompressedStream.Dispose(Boolean disposing)
at Xceed.Compression.Formats.FormattedCompressedStream.Close()
at System.IO.Stream.System.IDisposable.Dispose()
at Manager.Manager.CompressFile(String sourceFileName, String compressedFileName) in c:\program files\xceed components\xceed streaming compression for .net 1.0\samples\csharp\manager\manager.cs:line 499
at Manager.Manager.btnCompress_Click(Object sender, EventArgs e) in c:\program files\xceed components\xceed streaming compression for .net 1.0\samples\csharp\manager\manager.cs:line 385
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
—————————————-
Manager
Assembly Version: 1.0.2141.28038
Win32 Version: 1.0.2141.28038
CodeBase: file:///C:/Program%20Files/Xceed%20Components/Xceed%20Streaming%20Compression%20for%20.NET%201.0/Samples/CSharp/Manager/bin/Debug/Manager.exe
—————————————-
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
—————————————-
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
—————————————-
Xceed.Compression.Formats
Assembly Version: 1.0.4579.0
Win32 Version: 1.0.4579.0
CodeBase: file:///c:/windows/assembly/gac/xceed.compression.formats/1.0.4579.0__ba83ff368b7563c6/xceed.compression.formats.dll
—————————————-
Xceed.Compression
Assembly Version: 2.1.4579.0
Win32 Version: 2.1.4579.0
CodeBase: file:///c:/windows/assembly/gac/xceed.compression/2.1.4579.0__ba83ff368b7563c6/xceed.compression.dll
—————————————-
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
—————————————-
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
—————————————-************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.For example:
<configuration>
<system.windows.forms jitDebugging=”true” />
</configuration>When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.Imported from legacy forums. Posted by EIwm380X (had 3745 views)
-
AuthorPosts
- You must be logged in to reply to this topic.