Go PREMIUM to remove Ads

Server error when loading pics

Premium Posted by Erazkiel on 01 December 2025 - 11:47:54
Local Airport: VAF

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

Admin Posted by nighthawk on 02 December 2025 - 15:21:37
Local Airport: CAX

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?

Premium Posted by Erazkiel on 02 December 2025 - 18:29:21
Local Airport: VAF

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.

Admin Posted by nighthawk on 05 December 2025 - 10:09:37
Local Airport: CAX

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!

Premium Posted by KLAR on 05 December 2025 - 17:01:02
Local Airport: TUS

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.


Post Edited By KLAR on 05/12/2025 - 21:27:39
Premium Posted by KLAR on 10 December 2025 - 16:14:34
Local Airport: TUS

I believe I found the problem. It only happens on pictures that are not in the database, those in red.


Post Edited By KLAR on 10/12/2025 - 16:21:41
Admin Posted by nighthawk on 11 December 2025 - 13:59:24
Local Airport: CAX

Thanks for the update - I'll double check that and see what's happening.




Reply To Topic

You need to log in to post a reply to this topic.


<- Back To Forum