English

Error: MapServer no longer connected

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.

  1. 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.
  2. 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"

  3. 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.

Related Information