Hi Nighthawk,
I have some error when I load my pics. Sometimes it works but most of the time I have the below error message. The sightings is well recorded but not the picture with it.
Could you let me know?
Server Error in '/' Application. Parameter is not valid. 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: System.ArgumentException: Parameter is not valid.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Parameter is not valid.]
System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) +483
PlaneLogger.Core.SightingFunctions.resizeImage(Byte[] original, Int32 width, Int32 height) in C:\Users\Gavin Coates\Documents\Projects\PlaneLogger\PlaneLogger.Core\SightingFunctions.cs:272
PlaneLogger.Controllers.SightingController.Add(Sighting sighting, HttpPostedFileBase[] files) in C:\Users\Gavin Coates\Documents\Projects\PlaneLogger\PlaneLogger\Controllers\SightingController.cs:126
lambda_method(Closure , ControllerBase , Object[] ) +171
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +270
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +35
System.Web.Mvc.<>c_DisplayClass13.b_10() +80
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +474
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +3182
System.Web.Mvc.Controller.ExecuteCore() +113
PlaneLogger.Controllers.BaseController.ExecuteCore() in C:\Users\Gavin Coates\Documents\Projects\PlaneLogger\PlaneLogger\Controllers\BaseController.cs:107
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
System.Web.Mvc.Async.<>c_DisplayClass1.b_0() +25
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +10
System.Web.Mvc.<>c_DisplayClass8.b_3(IAsyncResult asyncResult) +44
System.Web.Mvc.Async.<>c_DisplayClass4.b_3(IAsyncResult ar) +25
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +10
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +5247
System.Web.<>c__DisplayClass285_0.b__0() +41
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +155
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +1401
Hi Erazkiel
Ive tried logging in as yourself, and I'm able to view the images in your sightings without issue. Is it a specific image or sighting that is causing a problem?
Hi Nighthawk,
Viewing is not an issue, loading a pic is. As per my guess, I think it's the photo extension that might be an issue. some pics are in .HEIC from the iPhone. Maybe it's linked.
Ah.. that's your error right there. We only support jpeg and png for photo uploads.
I'll try and tidy that error page up though, and give a more friendly response that explains what the issue is. I've never came across .HEIC format photos before!
I have the same issue when I click on the view tab. And all of my pictures are jpeg, But this seems to only happen when I am trying from the My Sightings tab.
I believe I found the problem. It only happens on pictures that are not in the database, those in red.
Thanks for the update - I'll double check that and see what's happening.
You need to log in to post a reply to this topic.