<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Alguien sabe a que se debe este error?<br><br><b>An unclassified exception occurred.<br>An unclassified exception occurred. Exception occurred in method MgWebLayout.ParseWebLayoutDefinition at line 293 in file d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\web\src\webapp\WebLayout.cpp </b><br><br>Me lo devuelve mapguide. En la aplicación en la que se produce el error, hago una modificación de un weblayout. Este es el código:<br><br><%@ Page language="c#" %><br><%@ Import Namespace="System.IO" %><br><%@ Import Namespace="System.Collections.Specialized" %><br><%@ Import Namespace="System.Text" %><br><%@ Import Namespace="System.Xml" %><br><%@ Import Namespace="System.Globalization" %><br><%@ Import Namespace="OSGeo.MapGuide" %><br><br><br><script runat="server"><br> //String webLayout = "Library%3a%2f%2fPDPT%2fApp_pdpt.WebLayout";<br> String webLayout = "Library://PDPT/App_pdpt.WebLayout";<br> String sessionId = "";<br></script><br><br><%<br> try<br> {<br> String realPath = Request.ServerVariables["APPL_PHYSICAL_PATH"];<br> String configPath = realPath + "..\\webconfig.ini";<br> MapGuideApi.MgInitializeWebTier(configPath);<br> <br> MgUserInformation userInfo = new MgUserInformation("Anonymous", "");<br> MgSite site = new MgSite();<br> NameValueCollection requestParams = Page.Request.HttpMethod == "GET" ? Page.Request.QueryString : Request.Form;<br> <br> site.Open(userInfo);<br> sessionId = site.CreateSession();<br> HttpContext.Current.Session.Add("sessionId", sessionId);<br> <br> if (requestParams.Count > 0)<br> {<br> String strX = requestParams["X"];<br> String strY = requestParams["Y"];<br><br> MgSiteConnection siteconection = new MgSiteConnection();<br> siteconection.Open(new MgUserInformation(sessionId));<br> MgResourceService resourceService = (MgResourceService)siteconection.CreateService(MgServiceType.ResourceService) as MgResourceService;<br><br> MgResourceIdentifier wlresourceId = new MgResourceIdentifier(webLayout);<br> MgByteReader wlreader = resourceService.GetResourceContent(wlresourceId);<br> String wlXML = wlreader.ToString();<br> XmlDocument doc = new XmlDocument();<br> doc.LoadXml(wlXML);<br><br> XmlNode NodeCenterx = doc.GetElementsByTagName("CenterX").Item(0);<br> NodeCenterx.LastChild.Value = strX;<br> XmlNode NodeCenterY = doc.GetElementsByTagName("CenterY").Item(0);<br> NodeCenterY.LastChild.Value = strY;<br> XmlNode NodeScale = doc.GetElementsByTagName("Scale").Item(0);<br> NodeScale.LastChild.Value = "2000";<br><br> MemoryStream streamSave = new MemoryStream();<br> doc.Save(streamSave);<br> byte[] byteArr = streamSave.ToArray();<br> MgByteSource Bytesource = new MgByteSource(byteArr, byteArr.Length);<br><br> //Creamos un weblayout en la sesion para actualizar la nueva versión<br> String sessionmapName = wlresourceId.GetName();<br> String sessionWebLayout = "Session:" + sessionId + "//PDPT/" + sessionmapName + ".WebLayout";<br> MgResourceIdentifier sessionResourceId = new MgResourceIdentifier(sessionWebLayout);<br> <br> // Escribimos a la session<br> resourceService.SetResource(sessionResourceId, Bytesource.GetReader(), Bytesource);<br> webLayout = sessionWebLayout; <br> }<br> else<br> {<br> HttpContext.Current.Session.Add("inicio_coordenadas", false);<br> }<br> }<br> catch (Exception e)<br> {<br> Response.Write(e.Message);<br> }<br>%><br><br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><br><br><html xmlns="http://www.w3.org/1999/xhtml" ><br><head><br> <title>Xeoportal PDPT</title><br><br></head><br><br><frameset rows="40,*" frameborder="no" framespacing="0"><br> <frame id="titleFrame" frameborder="no" marginwidth="0" marginheight="0" scrolling="no" src="cabeceira.html"><br> <frame id="viewerFrame" frameborder="no" marginwidth="0" marginheight="0" scrolling="no" src="../mapviewernet/ajaxviewer.aspx?SESSION=<%=sessionId%>&WEBLAYOUT=<%=webLayout%>"><br></frameset><br><body><br></body><br></html><br><br>Os agradezco la ayuda!! Gracias!!                                            <br /><hr />El NUEVO Internet Explorer 8 es el navegador más rápido y seguro <a href='http://www.vivelive.com/internetexplorer8/' target='_new'> ¡Descárgalo gratis!</a></body>
</html>