Hello,
I have been using mapsuite since v4 and I think this has been happening for at least a few versions. I am sure there is an issue in my code, but any advise is greatly appreciated.
Basically when I let a page with a map control in it sit for too long, when I try to perform any interaction with the page, I get the an invalid map unit exception. If I refresh the page, all is good again and the page will function normally. Is there a timeout somewhere causing this? How can I code this to refresh the map/page as needed and avoid this exception?
Thanks
Dave
Page timeout - Map unit is invalid exception
Hi, David
Thanks for your post.
It maybe caused by session’s lifespan? Would you please try to set the session’s lifespan longer?
if you have any more question , please feel free to let us know.
Summer
Thanks for the response. I will look at the sessions lifespan, but even with this set at a few hours, I would like to handle the exception when the session times out and just refresh the map. Where would be a good place to catch this invalid map unit exception on a session timeout?
Hi David,
The session will automatically refresh every 15 minutes, so would you please set
(sessionState mode="InProc" timeout=>15) (/sessionState)
So that the session will not end before it is refreshed.
Please replace above () with <>
Hope it helps
Summer