This project is read-only.
1

Closed

'File contains corrupted data.' exception appears

description

I have opened cs file, then I select ContentType->Open XML Editor and have an exception:
File contains corrupted data.
at MS.Internal.IO.Zip.ZipIOEndOfCentralDirectoryBlock.FindPosition(Stream archiveStream)
at MS.Internal.IO.Zip.ZipIOEndOfCentralDirectoryBlock.SeekableLoad(ZipIOBlockManager blockManager)
at MS.Internal.IO.Zip.ZipArchive..ctor(Stream archiveStream, FileMode mode, FileAccess access, Boolean streaming, Boolean ownStream)
at MS.Internal.IO.Zip.ZipArchive.OpenOnFile(String path, FileMode mode, FileAccess access, FileShare share, Boolean streaming)
at System.IO.Packaging.ZipPackage..ctor(String path, FileMode mode, FileAccess access, FileShare share, Boolean streaming)
at System.IO.Packaging.Package.Open(String path, FileMode packageMode, FileAccess packageAccess, FileShare packageShare, Boolean streaming)
at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.OpenCore(String path, Boolean readWriteMode)
at DocumentFormat.OpenXml.Packaging.WordprocessingDocument.Open(String path, Boolean isEditable, OpenSettings openSettings)
at DocumentFormat.OpenXml.Packaging.WordprocessingDocument.Open(String path, Boolean isEditable)
at UniversalEditor.OpenXml.OpenXmlEditor.GetText(FileWrapper file) in c:\Projects\CodePlex\UniversalEditor\branches\work\UniversalEditor.OpenXml\OpenXmlEditor.cs:line 47
at UniversalEditor.OpenXml.OpenXmlEditor..ctor(IEditorOwner owner, FileWrapper file) in c:\Projects\CodePlex\UniversalEditor\branches\work\UniversalEditor.OpenXml\OpenXmlEditor.cs:line 24
at UniversalEditor.Formats.OpenXmlFormat.CreateNewEditor(IEditorOwner owner, FileWrapper file) in c:\Projects\CodePlex\UniversalEditor\branches\work\UniversalEditor\Formats\OpenXmlFormat.cs:line 17
at UniversalEditor.DomainModel.ChangeContentType(IFormat arg) in c:\Projects\CodePlex\UniversalEditor\branches\work\UniversalEditor\DomainModel.cs:line 313
at UniversalEditor.Base.Mvvm.SimpleCommand`1.Execute(Object parameter) in c:\Projects\CodePlex\UniversalEditor\branches\work\UniversalEditor.Base\Mvvm\SimpleCommand.cs:line 73
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Closed Sep 1, 2013 at 2:47 PM by AndreyDavidchyk
Fixed in 0.4.39.16

comments

Artem_Taradeiko wrote Aug 27, 2013 at 10:46 AM

The same for another types. For example, I select 'Video' then press 'Play' button:
Error in the application.
at Microsoft.DirectX.AudioVideoPlayback.Video.Open(String fileName, Boolean autoRun)
at Microsoft.DirectX.AudioVideoPlayback.Video..ctor(String fileName)
at UniversalEditor.Video.Viewer.VideoViewerView.Play() in c:\Projects\CodePlex\UniversalEditor\branches\work\UniversalEditor.Video\Viewer\VideoViewerView.xaml.cs:line 129
at UniversalEditor.Video.Viewer.VideoViewerView.OnPlayClick(Object sender, RoutedEventArgs e) in c:\Projects\CodePlex\UniversalEditor\branches\work\UniversalEditor.Video\Viewer\VideoViewerView.xaml.cs:line 119
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)

Artem_Taradeiko wrote Aug 27, 2013 at 10:46 AM

Version: 0.4.38.15

wrote Sep 1, 2013 at 2:47 PM

AndreyDavidchyk wrote Sep 1, 2013 at 2:47 PM

fixed in Fixed in 0.4.39.16