Error Message
When attempting to retrieve a Web page from a MapObjects IMS MapServer, the following error may appear:"MapServer No Longer Connected"
Cause
One possible cause is an excessive number of WriteString statements.
Solution or Workaround
To create the HTML document on the client, we recommend the following solution. Do not use WriteString.
- Use the file editing functions available in your programming environment to write the lines of HTML into a new text file with a .html extension.
- Use the MOIMS WebLink.WriteFile method to send the .html file to the client. For example:
Code:
Dim bWorked as Boolean
bWorked = WebLink1.WriteFile "C:\temp\topframe.html"
- Use the file management functions available in your programming environment to delete the .html file. It is OK to delete the .html file immediately after using the WriteFile method.