Always when I try came in here I get the message
Server Error in '/test' Application. --------------------------------------------------------------------------------
not a jpeg file Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: com.drew.imaging.jpg.JpegProcessingException: not a jpeg file
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration> <system.web> <compilation debug="true"/> </system.web> </configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[JpegProcessingException: not a jpeg file] com.drew.imaging.jpg.JpegSegmentReader.ReadSegments() +276 com.drew.imaging.jpg.JpegSegmentReader..ctor(FileInfo aFile) +74 com.drew.metadata.exif.ExifReader..ctor(FileInfo file) +50 Bleroy.Photo.ImageInfo.GetImageData(FileInfo pictureFileInfo) +122 Bleroy.Photo.ImageInfo.GetImageDate(FileInfo pictureFileInfo) +137 Bleroy.Photo.Album.<GetImages>b__0(FileInfo x, FileInfo y) +28 System.FunctorComparer`1.Compare(T x, T y) +19 System.Collections.Generic.ArraySortHelper`1.QuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer) +282 System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) +105
[InvalidOperationException: Failed to compare two elements in the array.] System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) +349 System.Array.Sort(T[] array, Int32 index, Int32 length, IComparer`1 comparer) +207 System.Array.Sort(T[] array, IComparer`1 comparer) +60 System.Array.Sort(T[] array, Comparison`1 comparison) +119 Bleroy.Photo.Album.GetImages(String path, Boolean includesubFolders) +136 Bleroy.Photo.Album.get_Images() +41 Bleroy.Photo.Album.GenerateFolderPage(HtmlTextWriter writer, String dirPath, String dirPhysicalPath) +1300 Bleroy.Photo.Album.RenderPrivate(HtmlTextWriter writer) +300 Bleroy.Photo.Album.RenderControl(HtmlTextWriter writer) +77 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 System.Web.UI.Page.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
_________________ EX475
|