04-13-2017 05:50 AM
We make use of the function "m_objMS.SetCoordinateSystem (coordSys)" on a Mapserver object.
In a clients environment (WebMap 2016, WIN Server 2012) the function-call returns an error '80010105'. The string stored in the variable coordSys points to a valid csf-file.
Does anybody know what the previously mentioned error code stands for? Is the described behavior possibly already well known?
Thanks in advance,
Solved! Go to Solution.
04-14-2017 05:42 AM
The HRESULT 0x80010105 is a standard COM error code. As per https://msdn.microsoft.com/library/ee824990(CS.10).aspx it means that there was an unhandled exception thrown and it bubbled up all the way to the COM message queue.
Is there anything of interest stored in the Windows Event Log? What were the last lines written to the detailed GWMLog when this happened? Are you sure the path you pass is accessible for the MapSvr.exe process, remembering it being a 32-bit one?
04-18-2017 01:23 AM
Since the error does not occur on a regular basis (i.e. sometimes no exception is thrown) it can be assumed that path passed is accessible for the MapSvr.exe process. Furthermore, the application calling the SetCoordinateSystem-function runs in 32bit IIS app-pool.
When the error occurs the following events are registered in the Windows Event Log:
The last lines written to the detailed GWMLog are the following, when the error occurs:
Please find an event-viewer snippet and WebMap-logs in the attached zip directory "Files.zip".
04-19-2017 02:53 AM
The log files provided suggest that it's not the SetCoordinateSystem call that fails first, but a previous call to AddLibraryConnection which didn't finish successfully. I'm not sure how they can be related, but there might be state corruption taking place in the GetFromLibrary which then blows up the process entirely.
The log files indicate that you might be experiencing an issue related http://community.hexagongeospatial.com/t5/Developer-Discussions/WebMap-AddLibraryConnection-unstable....
04-19-2017 11:19 AM
Aargh, sure, this is probably also the issue here
Advised the customer accordingly to create the necessary WPSettings-Table in conventional libraries....as soon as I get a feedback I'll forward the insights to this thread.
Anyway - thanks in advance.