Hexagon Geospatial
MENU

M.App Enterprise

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Frequent Contributor
Posts: 155
Registered: ‎01-14-2018
Accepted Solution

Internal Server Error in mobile app

Dears,

 

I configured a mobile app as attached, but I get (internal server error) as following:

Untitled.png

 

as you can see I can't figure out what causes the error, so could you help please?

Note: I am using HTTP to get rid of the SSL certifcate issues.

 

Regards

Khaled

Staff
Posts: 59
Registered: ‎10-25-2016

Re: Internal Server Error in mobile app

Hi Khaled,

 

can you also check if you have an error in Security --> Logs?

 

If not, is there a related error in Windows Event Viewer?

 

Regards

Christian

Frequent Contributor
Posts: 155
Registered: ‎01-14-2018

Re: Internal Server Error in mobile app

Hi Christian,

 

I get the security log:

Authority Code not found.
Parameter name: authority
System.ArgumentOutOfRangeException: Authority Code not found.
Parameter name: authority
at DotSpatial.Projections.ProjectionInfo.FromAuthorityCode(String authority, Int32 code)
at AppShell.Services.Core.GeometryExtensions.Transform(List`1 points, Int32 sourceEpsgCode, Int32 targetEpsgCode)
at AppShell.Services.Core.GeometryExtensions.Transform(LinearRing linearRing, Int32 sourceEpsgCode, Int32 targetEpsgCode)
at AppShell.Services.Core.GeometryExtensions.Transform(Polygon polygon, Int32 sourceEpsgCode, Int32 targetEpsgCode)
at AppShell.Services.Core.GeometryExtensions.Transform[T](T geometry, Int32 sourceEpsgCode, Int32 targetEpsgCode)
at AppShell.Services.Controllers.EntityController.TransformClient(Entity entity, IDictionary`2 values, Int32 dataSourceEpsgCode)
at AppShell.Services.Controllers.EntityController.<GetEntities>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AppShell.Services.Controllers.EntityController.<GetEntities>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()

Frequent Contributor
Posts: 155
Registered: ‎01-14-2018

Re: Internal Server Error in mobile app

Staff
Posts: 59
Registered: ‎10-25-2016

Re: Internal Server Error in mobile app

It looks like an issue with the coordinate system.

 

Which coordinate system have you specified on your data source?

Frequent Contributor
Posts: 155
Registered: ‎01-14-2018

Re: Internal Server Error in mobile app

Staff
Posts: 59
Registered: ‎10-25-2016

Re: Internal Server Error in mobile app

There is currently no support for custom coordinate systems in mobile.

 

Can you try to change epsg code manually in sx_datasource to 22992 and see if it works?

 

It should be support on mobile side, but it is disabled in UI, because of accuracy differences between desktop and server.

 

Regards

Christian

Frequent Contributor
Posts: 155
Registered: ‎01-14-2018

Re: Internal Server Error in mobile app

Hi Christian,

 

I changed it in the database and it now worked,

 

Thanks

Khaled

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Development Ticket through our Development Ticket Portal.